/* Dark-only pairs for real Evaluation content and the body-mounted Practice detail.
   Light deliberately receives no tokens, paint or native-control overrides here. */
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) {
  --eval-ink:var(--bcos-color-text)!important; --eval-muted:var(--bcos-color-text-muted)!important;
  --eval-line:var(--bcos-color-border)!important; --eval-panel:var(--bcos-color-surface)!important;
  --eval-soft:var(--bcos-color-surface-raised)!important; --eval-blue:var(--bcos-color-accent)!important;
}
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) :is(.bcos-evaluation-controls,.bcos-evaluation-mode__queues,.bcos-evaluation-search,.bcos-evaluation-search-results,.bcos-evaluation-comparison,.bcos-evaluation-roster button,.bcos-evaluation-player-card,.bcos-evaluation-player-card dl div,.bcos-evaluation-panel__grid div,.bcos-evaluation-form__summary,.bcos-evaluation-benchmark-controls,.bcos-eval-slider,.bcos-evaluation-history__list button,.bcos-evaluation-history__body>.bcos-skill-radar,.bcos-skill-radar__legend>div) {
  background:var(--bcos-color-surface)!important; color:var(--bcos-color-text)!important;
  border-color:var(--bcos-color-border)!important;
}
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) :is(.bcos-evaluation-roster button.is-active,.bcos-evaluation-history__list button.is-selected) {
  background:var(--bcos-color-hover)!important; border-color:var(--bcos-color-accent)!important;
}
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) :is(.bcos-evaluation-mode__toolbar strong,.bcos-evaluation-history>summary strong,.bcos-evaluation-history__list strong,.bcos-evaluation-form__summary strong,.bcos-evaluation-benchmark-controls strong,.bcos-evaluation-comparison__summary strong,.bcos-evaluation-notes>span,.bcos-eval-slider__head>span) {
  color:var(--bcos-color-text)!important;
}
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) :is(.bcos-evaluation-history>summary small,.bcos-evaluation-history__body>p,.bcos-evaluation-history__list small,.bcos-evaluation-history__list em,.bcos-evaluation-results__privacy-note p,.bcos-evaluation-results--hero p,.bcos-evaluation-benchmark-controls small,.bcos-evaluation-comparison__summary em,.bcos-evaluation-search span,.bcos-evaluation-queue-picker span,.bcos-feedback-picker__selected em,.bcos-feedback-picker__title small,.bcos-eval-slider__behavior-anchors,.bcos-eval-slider__context,.bcos-eval-slider__rubric) {
  color:var(--bcos-color-text-muted)!important;
}
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) :is(.bcos-evaluation-history>summary b,.bcos-evaluation-benchmark-controls span,.bcos-evaluation-benchmark-controls legend,.bcos-eval-slider__head strong,.bcos-eval-slider__context button,.bcos-eval-slider__rubric strong) {
  color:var(--bcos-color-accent)!important;
}
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) :is(.bcos-evaluation-tabs button,.bcos-evaluation-mode__queues button,.bcos-evaluation-comparison__filters button) {
  background:var(--bcos-color-surface)!important; color:var(--bcos-color-text)!important; border-color:var(--bcos-color-field-border)!important;
}
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) :is(.bcos-evaluation-tabs button.is-active,.bcos-evaluation-mode__queues button.is-active,.bcos-evaluation-panel__head button) {
  background:var(--bcos-color-accent)!important; color:var(--bcos-color-accent-text)!important; border-color:var(--bcos-color-accent)!important;
}
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) .bcos-evaluation-mode__queues button span {
  background:var(--bcos-color-surface-raised)!important; color:var(--bcos-color-text)!important;
}
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),select,textarea) {
  background:var(--bcos-color-surface)!important; color:var(--bcos-color-text)!important;
  border-color:var(--bcos-color-field-border)!important; color-scheme:dark!important;
}
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) :is(input,textarea)::placeholder { color:var(--bcos-color-text-muted)!important; opacity:1; }
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) :is(input[type="checkbox"],input[type="radio"]) { accent-color:var(--bcos-color-accent); }
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) :is(button,input,select,textarea):disabled {
  background:var(--bcos-color-disabled-surface)!important; color:var(--bcos-color-disabled)!important;
  border-color:var(--bcos-color-field-border)!important;
}
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) :is(button,input,select,textarea,summary,[role="slider"]):focus-visible {
  outline:3px solid var(--bcos-color-focus)!important; outline-offset:3px;
}
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) :is(.bcos-evaluation-tabs button,.bcos-evaluation-mode__queues button,.bcos-evaluation-roster button,.bcos-evaluation-history__list button):hover:not(:disabled) {
  background:var(--bcos-color-hover)!important; color:var(--bcos-color-text)!important;
}
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) .bcos-eval-slider__track:before { background:var(--bcos-color-field-border)!important; }
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) .bcos-eval-slider__rubric { background:var(--bcos-color-surface-raised)!important; }
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) :is(.bcos-evaluation-controls__meta,.bcos-evaluation-form__summary>span) { color:var(--bcos-color-text-muted)!important; }
:root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-quick-evaluation) .bcos-skill-radar__legend i { background:linear-gradient(90deg,var(--bcos-color-chart-series) var(--skill-level),var(--bcos-color-field-border) var(--skill-level)); }

/* Keep the existing modal/focus owner and geometry; pair the portal's explicit light islands. */
:root[data-bcos-theme="dark"] body .bcos-quick-evaluation {
  background:var(--bcos-color-canvas)!important; color:var(--bcos-color-text)!important;
}
:root[data-bcos-theme="dark"] body .bcos-quick-evaluation :is(.bcos-quick-evaluation__form,.bcos-quick-evaluation__actor,.bcos-quick-profile__card,.bcos-quick-profile__facts>div,.bcos-quick-profile__note) {
  background:var(--bcos-color-surface)!important; color:var(--bcos-color-text)!important; border-color:var(--bcos-color-border)!important;
}
:root[data-bcos-theme="dark"] body .bcos-quick-evaluation :is(.bcos-quick-evaluation__actor strong,.bcos-quick-evaluation__metric-heading strong,.bcos-quick-profile__identity>strong,.bcos-quick-profile__facts strong,.bcos-quick-profile__note p) { color:var(--bcos-color-text)!important; }
:root[data-bcos-theme="dark"] body .bcos-quick-evaluation :is(.bcos-quick-evaluation__metric-heading span,.bcos-quick-profile__identity>span,.bcos-quick-profile__facts span,.bcos-quick-profile__note summary small) { color:var(--bcos-color-text-muted)!important; }
:root[data-bcos-theme="dark"] body .bcos-quick-evaluation :is(.bcos-quick-profile__identity small,.bcos-quick-profile__facts button) { color:var(--bcos-color-accent)!important; }
:root[data-bcos-theme="dark"] body .bcos-quick-evaluation .bcos-evaluation-profile-provenance { color:var(--bcos-color-text-muted)!important; }
:root[data-bcos-theme="dark"] body .bcos-quick-evaluation .bcos-evaluation-profile-provenance strong { color:var(--bcos-color-text)!important; }
:root[data-bcos-theme="dark"] body .bcos-quick-evaluation .bcos-evaluation-profile-provenance summary { color:var(--bcos-color-accent)!important; }
/* The same HistoryPanel also renders outside Evaluation, in Player Quick portals. */
:root[data-bcos-theme="dark"] body .bcos-evaluation-history,
:root[data-bcos-theme="dark"] body .bcos-evaluation-history :is(.bcos-evaluation-history__list button,.bcos-evaluation-history__body>.bcos-skill-radar,.bcos-skill-radar__legend>div) {
  background:var(--bcos-color-surface)!important; color:var(--bcos-color-text)!important; border-color:var(--bcos-color-border)!important;
}
:root[data-bcos-theme="dark"] body .bcos-evaluation-history :is(summary strong,.bcos-evaluation-history__list strong,h3) { color:var(--bcos-color-text)!important; }
:root[data-bcos-theme="dark"] body .bcos-evaluation-history :is(summary small,.bcos-evaluation-history__body>p,.bcos-evaluation-history__list small,.bcos-evaluation-history__list em) { color:var(--bcos-color-text-muted)!important; }
:root[data-bcos-theme="dark"] body .bcos-evaluation-history .bcos-evaluation-history__list button.is-selected { background:var(--bcos-color-hover)!important; border-color:var(--bcos-color-accent)!important; }
:root[data-bcos-theme="dark"] body .bcos-evaluation-history :is(button,summary):focus-visible { outline:3px solid var(--bcos-color-focus)!important; outline-offset:3px; }
:root[data-bcos-theme="dark"] body .bcos-universal-timeline-card.is-muted { opacity:1!important; filter:none!important; }
:root[data-bcos-theme="dark"] body .bcos-universal-timeline-card .bcos-universal-timeline-card__status {
  background:var(--bcos-color-surface-raised)!important; color:var(--bcos-color-text)!important; opacity:1!important;
}
:root[data-bcos-theme="dark"] body .bcos-universal-timeline-card .bcos-going-question { color:var(--bcos-color-text)!important; }
:root[data-bcos-theme="dark"] body .bcos-team-practice.bcos-practice-detail {
  background:var(--bcos-color-surface)!important; color:var(--bcos-color-text)!important;
  border-color:var(--bcos-color-border)!important;
}
:root[data-bcos-theme="dark"] body .bcos-practice-detail :is(.bcos-home-modal__head,.bcos-home-modal__facts>div,.bcos-home-modal__context,.bcos-participation,.bcos-practice-duplicate-menu .bcos-home-modal__menu) {
  background:var(--bcos-color-surface)!important; color:var(--bcos-color-text)!important; border-color:var(--bcos-color-border)!important;
}
:root[data-bcos-theme="dark"] body .bcos-practice-detail :is(h2,h3,h4,label,legend,summary,.bcos-home-modal__facts strong,.bcos-home-modal__context strong,.bcos-home-modal__context p) { color:var(--bcos-color-text)!important; }
:root[data-bcos-theme="dark"] body .bcos-practice-detail :is(.bcos-home-modal__head span,.bcos-home-modal__facts span) { color:var(--bcos-color-text-muted)!important; }
:root[data-bcos-theme="dark"] body .bcos-practice-detail .bcos-participation__summary { color:var(--bcos-color-text)!important; border-color:var(--bcos-color-border)!important; }
:root[data-bcos-theme="dark"] body .bcos-practice-detail .bcos-participation__summary>strong { color:var(--bcos-color-text)!important; }
:root[data-bcos-theme="dark"] body .bcos-practice-detail .bcos-participation__summary>small { color:var(--bcos-color-text-muted)!important; }
:root[data-bcos-theme="dark"] body .bcos-practice-detail :is(a,.bcos-home-modal__facts button) { color:var(--bcos-color-accent)!important; }
:root[data-bcos-theme="dark"] body .bcos-practice-detail :is(button,input,select,textarea) {
  background:var(--bcos-color-surface-raised)!important; color:var(--bcos-color-text)!important;
  border-color:var(--bcos-color-field-border)!important; color-scheme:dark!important;
}
:root[data-bcos-theme="dark"] body .bcos-practice-detail :is(button[type="submit"],button[aria-pressed="true"]) {
  background:var(--bcos-color-accent)!important; color:var(--bcos-color-accent-text)!important;
}
:root[data-bcos-theme="dark"] body .bcos-practice-detail button:hover:not(:disabled) { background:var(--bcos-color-hover)!important; color:var(--bcos-color-text)!important; }
:root[data-bcos-theme="dark"] body .bcos-practice-detail :is(input,textarea)::placeholder { color:var(--bcos-color-text-muted)!important; opacity:1; }
:root[data-bcos-theme="dark"] body .bcos-practice-detail :is(button,input,select,textarea,a,summary):focus-visible { outline:3px solid var(--bcos-color-focus)!important; outline-offset:3px; }
@media(forced-colors:active) {
  :root[data-bcos-theme="dark"] body :is(.bcos-evaluation-mode,.bcos-practice-detail) :focus-visible { outline-color:Highlight!important; }
}

/* Shared Activity/IDP roster: change each state surface together with its ink. */
:root[data-bcos-theme="dark"] body .bcos-universal-timeline-card .bcos-rsvp-count-disclosure>strong,
:root[data-bcos-theme="dark"] body :is(.bcos-universal-timeline-card,.bcos-practice-detail) .bcos-rsvp-request-timing {color:var(--bcos-color-text)!important}
:root[data-bcos-theme="dark"] body :is(.bcos-universal-timeline-card,.bcos-practice-detail) .bcos-rsvp-request-timing>small {color:var(--bcos-color-text-muted)!important}
:root[data-bcos-theme="dark"] body .bcos-rsvp-tile.bcos-idp-session-roster-panel__item[data-response-stage] {
  background:var(--bcos-color-surface-raised)!important; color:var(--bcos-color-text)!important;
  border-color:var(--bcos-color-field-border)!important;
}
:root[data-bcos-theme="dark"] body .bcos-rsvp-tile:is(.is-yes,.is-early-attend)[data-response-stage] {
  background:var(--bcos-color-success-surface)!important; border-color:var(--bcos-color-success)!important;
}
:root[data-bcos-theme="dark"] body .bcos-rsvp-tile.is-no[data-response-stage] {
  background:var(--bcos-color-danger-surface)!important; border-color:var(--bcos-color-danger)!important;
}
:root[data-bcos-theme="dark"] body .bcos-rsvp-tile.is-early-unsure[data-response-stage] {
  background:var(--bcos-color-warning-surface)!important; border-color:var(--bcos-color-warning)!important;
}
:root[data-bcos-theme="dark"] body .bcos-rsvp-tile:is(.is-maybe,.is-early-not-attend)[data-response-stage] {border-color:var(--bcos-color-accent)!important}
:root[data-bcos-theme="dark"] body .bcos-rsvp-tile :is(.bcos-rsvp-tile__name,.bcos-rsvp-tile__name-text,.bcos-rsvp-tile__jersey,.bcos-rsvp-tile__status,.bcos-rsvp-tile__status *,summary,.bcos-rsvp-tile__full-name,.bcos-rsvp-tile__note,.bcos-rsvp-tile__affordance) {color:var(--bcos-color-text)!important}
:root[data-bcos-theme="dark"] body .bcos-rsvp-tile :is(.bcos-participation__row-body,.bcos-rsvp-tile__note) {
  background:var(--bcos-color-surface)!important; color:var(--bcos-color-text)!important; border-color:var(--bcos-color-field-border)!important;
}
:root[data-bcos-theme="dark"] body .bcos-rsvp-tile :is(summary,button,a):focus-visible {outline:3px solid var(--bcos-color-focus)!important;outline-offset:2px}
