/* Current /bcos consumer adapters. Component owners keep their source and layout. */
:root[data-bcos-theme="dark"] body.bcos-uniform-intake-page {
  background:var(--bcos-color-canvas)!important; color:var(--bcos-color-text);
}
:root[data-bcos-theme="dark"] body .bcos-theme-toolbar {
  padding:10px 14px; background:var(--bcos-color-surface-raised); color:var(--bcos-color-text);
}

/* Home's navy hero/photo treatments retain their paired brand colors. */
:root[data-bcos-theme="dark"] body.bcos-home-body main.bcos-home,
:root[data-bcos-theme="dark"] body [data-bcos-react-home-root][data-bcos-react-home-mounted="1"] {
  background:var(--bcos-color-canvas)!important; color:var(--bcos-color-text)!important;
}
:root[data-bcos-theme="dark"] body .bcos-home-tools,
:root[data-bcos-theme="dark"] body .bcos-home-quick-access {
  background:var(--bcos-color-surface-raised)!important; color:var(--bcos-color-text)!important;
  border-color:var(--bcos-color-border)!important;
}
:root[data-bcos-theme="dark"] body .bcos-home-tools__eyebrow,
:root[data-bcos-theme="dark"] body .bcos-home-quick-access__scope,
:root[data-bcos-theme="dark"] body .bcos-home-quick-access__status { color:var(--bcos-color-text-muted)!important; }
:root[data-bcos-theme="dark"] body .bcos-home-quick-access :is(h2,h3,li,li>span) { color:var(--bcos-color-text)!important; }
:root[data-bcos-theme="dark"] body .bcos-home-quick-access li>span::before { color:var(--bcos-color-text-muted); }
:root[data-bcos-theme="dark"] body .bcos-home-quick-access__editor li {
  background:var(--bcos-color-surface)!important; border-color:var(--bcos-color-border)!important;
}
:root[data-bcos-theme="dark"] body .bcos-home-quick-access button {
  background:var(--bcos-color-surface)!important; color:var(--bcos-color-accent)!important;
  border-color:var(--bcos-color-field-border)!important; white-space:normal; overflow:visible; text-overflow:clip;
}
:root[data-bcos-theme="dark"] body .bcos-home-quick-access__edit,
:root[data-bcos-theme="dark"] body .bcos-home-quick-access__editor-actions button:first-child {
  background:var(--bcos-color-accent)!important; color:var(--bcos-color-accent-text)!important;
}
:root[data-bcos-theme="dark"] body .bcos-home-quick-access button:hover:not(:disabled) { background:var(--bcos-color-hover)!important; color:var(--bcos-color-text)!important; }
:root[data-bcos-theme="dark"] body .bcos-home-quick-access button:disabled {
  background:var(--bcos-color-disabled-surface)!important; color:var(--bcos-color-disabled)!important; opacity:1;
}
:root[data-bcos-theme="dark"] body .bcos-home-quick-access :is(button,a):focus-visible {
  outline:3px solid var(--bcos-color-focus)!important; outline-offset:2px;
}

/* Current Home scope, timeline tools and work-queue panels. */
:root[data-bcos-theme="dark"] body :is(.bcos-home__body,.bcos-home-timeline,.bcos-home-scope-notice) {
  background:var(--bcos-color-canvas)!important; color:var(--bcos-color-text)!important;
}
:root[data-bcos-theme="dark"] body .bcos-home-scope-notice :is(span,strong),
:root[data-bcos-theme="dark"] body .bcos-home-timeline :is(.bcos-home-section__title p,.bcos-home-section__head span,.bcos-home-timeline__month) { color:var(--bcos-color-text-muted)!important; }
:root[data-bcos-theme="dark"] body .bcos-home-timeline .bcos-home-section__head h2 { color:var(--bcos-color-text)!important; }
:root[data-bcos-theme="dark"] body .bcos-home-work-queue,
:root[data-bcos-theme="dark"] body .bcos-home-work-queue :is(button,.bcos-home-work-queue__sections,.bcos-home-work-queue__section,.bcos-home-work-queue__category-body,.bcos-home-work-queue__item),
:root[data-bcos-theme="dark"] body .bcos-home-timeline-filter__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-home-work-queue :is(span,strong,small,i) { color:var(--bcos-color-text)!important; }
:root[data-bcos-theme="dark"] body .bcos-home-work-queue em { color:var(--bcos-color-text-muted)!important; }
:root[data-bcos-theme="dark"] body .bcos-home-work-queue :is(.bcos-home-work-queue__count,b) { background:var(--bcos-color-accent)!important; color:var(--bcos-color-accent-text)!important; }
:root[data-bcos-theme="dark"] body .bcos-home-timeline__month>span { background:var(--bcos-color-canvas)!important; color:var(--bcos-color-text-muted)!important; }
:root[data-bcos-theme="dark"] body .bcos-home-timeline-filter__menu :is(span,strong,label,em,.bcos-home-timeline-filter__section-title) { color:var(--bcos-color-text)!important; }
:root[data-bcos-theme="dark"] body .bcos-home-timeline-filter__option { background:var(--bcos-color-surface)!important; }
:root[data-bcos-theme="dark"] body .bcos-home-timeline-filter__option:has(input:checked) { background:var(--bcos-color-hover)!important; }
:root[data-bcos-theme="dark"] body .bcos-home-timeline-filter__archive-toggle>em { background:var(--bcos-color-surface-raised)!important; color:var(--bcos-color-text-muted)!important; }
:root[data-bcos-theme="dark"] body .bcos-home-timeline-filter__search :is(label,small) { color:var(--bcos-color-text-muted)!important; }
:root[data-bcos-theme="dark"] body .bcos-home-timeline-filter__search>div,
:root[data-bcos-theme="dark"] body .bcos-home-timeline-filter :is(input,select,textarea,button) {
  background:var(--bcos-color-surface)!important; color:var(--bcos-color-text)!important; border-color:var(--bcos-color-field-border)!important; color-scheme:inherit!important;
}
:root[data-bcos-theme="dark"] body .bcos-home-timeline-filter input::placeholder { color:var(--bcos-color-text-muted)!important; opacity:1; }
:root[data-bcos-theme="dark"] body .bcos-home-timeline-filter button.is-active { background:var(--bcos-color-accent)!important; color:var(--bcos-color-accent-text)!important; }
:root[data-bcos-theme="dark"] body .bcos-home-timeline-filter button:hover:not(:disabled) { background:var(--bcos-color-hover)!important; color:var(--bcos-color-text)!important; }
:root[data-bcos-theme="dark"] body :is(.bcos-home-timeline-filter,.bcos-home-work-queue) :is(input,select,textarea,button,a):focus-visible { outline:3px solid var(--bcos-color-focus)!important; outline-offset:2px; }

/* Uniform intake: pair the complete contained form/table palette, including states. */
:root[data-bcos-theme="dark"] body .bcos-uniform-intake {
  background:var(--bcos-color-surface-raised)!important; color:var(--bcos-color-text)!important; color-scheme:inherit!important;
}
:root[data-bcos-theme="dark"] body .bcos-uniform-intake :is(h1,h2,h3,h4,p,label,legend,strong,span,summary,thead,tbody,tr,th,td) { color:var(--bcos-color-text)!important; }
:root[data-bcos-theme="dark"] body .bcos-uniform-intake :is(fieldset,legend,table,thead,tbody,tr,th,td,.bcos-uniform-intake__result,.bcos-uniform-intake__options article) {
  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-uniform-intake thead th { background:var(--bcos-color-surface-raised)!important; }
:root[data-bcos-theme="dark"] body .bcos-uniform-intake :is(input,select,textarea) {
  background:var(--bcos-color-surface)!important; color:var(--bcos-color-text)!important;
  border-color:var(--bcos-color-field-border)!important; accent-color:var(--bcos-color-accent); color-scheme:inherit!important;
}
:root[data-bcos-theme="dark"] body .bcos-uniform-intake :is(input,textarea)::placeholder { color:var(--bcos-color-text-muted); opacity:1; }
:root[data-bcos-theme="dark"] body .bcos-uniform-intake :is(button,a) {
  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 .bcos-uniform-intake :is(button,a):hover:not(:disabled) { background:var(--bcos-color-accent-hover)!important; }
:root[data-bcos-theme="dark"] body .bcos-uniform-intake :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 .bcos-uniform-intake small { color:var(--bcos-color-text-muted)!important; }
:root[data-bcos-theme="dark"] body .bcos-uniform-intake .bcos-uniform-intake__notice {
  background:var(--bcos-color-warning-surface)!important; color:var(--bcos-color-text)!important; border-color:var(--bcos-color-warning)!important;
}
:root[data-bcos-theme="dark"] body .bcos-uniform-intake [aria-invalid="true"] { border-color:var(--bcos-color-danger)!important; }
:root[data-bcos-theme="dark"] body .bcos-uniform-intake :is(button,input,select,textarea,a,summary):focus-visible {
  outline:3px solid var(--bcos-color-focus)!important; outline-offset:3px;
}

/* Current internal Calendar consumers; public-page heads and activation gates are not integrated here. */
:root[data-bcos-theme="dark"] body:has(.universal-calendar) { background:var(--bcos-color-canvas); }
:root[data-bcos-theme="dark"] body .universal-calendar {
  --bcos-blue:var(--bcos-color-accent); --bcos-silver:var(--bcos-color-border);
  background:var(--bcos-color-canvas); color:var(--bcos-color-text);
}
:root[data-bcos-theme="dark"] body .universal-calendar :is(.calendar-day,.calendar-event,.calendar-public-review,.calendar-public-review__footer,.bcos-team-color-key) {
  background:var(--bcos-color-surface); color:var(--bcos-color-text); border-color:var(--bcos-color-border);
}
:root[data-bcos-theme="dark"] body .universal-calendar :is(.calendar-status,.calendar-bulk-bar,.calendar-day.is-adjacent) {
  background:var(--bcos-color-surface-raised); color:var(--bcos-color-text);
}
:root[data-bcos-theme="dark"] body .universal-calendar .calendar-days { background:var(--bcos-color-border); border-color:var(--bcos-color-border); }
:root[data-bcos-theme="dark"] body .universal-calendar :is(.calendar-event__kind,.calendar-day__empty) { color:var(--bcos-color-text-muted); }
:root[data-bcos-theme="dark"] body .universal-calendar :is(.calendar-warning,.calendar-event--resource) {
  background:var(--bcos-color-warning-surface); color:var(--bcos-color-text);
}
:root[data-bcos-theme="dark"] body .universal-calendar :is(button,input,select,textarea) {
  background:var(--bcos-color-surface); color:var(--bcos-color-text); border-color:var(--bcos-color-field-border); color-scheme:inherit;
}
:root[data-bcos-theme="dark"] body .universal-calendar :is(input,textarea)::placeholder { color:var(--bcos-color-text-muted); opacity:1; }
:root[data-bcos-theme="dark"] body .universal-calendar button:hover:not(:disabled) { background:var(--bcos-color-hover); color:var(--bcos-color-text); }
:root[data-bcos-theme="dark"] body .universal-calendar :is(button[aria-pressed=true],button.calendar-public-review__confirm) {
  background:var(--bcos-color-accent); color:var(--bcos-color-accent-text);
}
:root[data-bcos-theme="dark"] body .universal-calendar :is(button,input,select,textarea):disabled {
  background:var(--bcos-color-disabled-surface); color:var(--bcos-color-disabled); opacity:1;
}
:root[data-bcos-theme="dark"] body .universal-calendar .calendar-public-review a { color:var(--bcos-color-accent); }
:root[data-bcos-theme="dark"] body .universal-calendar :is(button,input,select,textarea,a,summary):focus-visible {
  outline:3px solid var(--bcos-color-focus); outline-offset:2px;
}
@media(forced-colors:active) {
  :root[data-bcos-theme="dark"] body .universal-calendar :is(button,input,select,textarea,a,summary):focus-visible { outline-color:Highlight; }
}

/* Opt in this evaluated reminder; unconverted Home dialogs keep their existing paired palette. */
:root[data-bcos-theme="dark"] body .bcos-activity-reminder-layer .bcos-home-modal__panel.bcos-participation {
  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-activity-reminder-layer .bcos-participation :is(.bcos-participation__field,.bcos-participation__check,legend,h2,p) { color:var(--bcos-color-text)!important; }
:root[data-bcos-theme="dark"] body .bcos-activity-reminder-layer .bcos-participation .bcos-home-modal__head {
  background:var(--bcos-color-surface-raised); color:var(--bcos-color-text);
}
:root[data-bcos-theme="dark"] body .bcos-activity-reminder-layer .bcos-participation .bcos-home-modal__head>span { color:var(--bcos-color-text-muted); }
:root[data-bcos-theme="dark"] body .bcos-activity-reminder-layer .bcos-participation :is(select,input,textarea,.bcos-home-modal__close) {
  background:var(--bcos-color-surface); color:var(--bcos-color-text); border-color:var(--bcos-color-field-border); color-scheme:inherit;
}
:root[data-bcos-theme="dark"] body .bcos-activity-reminder-layer .bcos-participation select { appearance:auto; background-image:none; }
:root[data-bcos-theme="dark"] body .bcos-activity-reminder-layer .bcos-participation input[type=checkbox] { appearance:auto; accent-color:var(--bcos-color-accent); }
:root[data-bcos-theme="dark"] body .bcos-activity-reminder-layer .bcos-participation fieldset { border-color:var(--bcos-color-field-border); }
:root[data-bcos-theme="dark"] body .bcos-activity-reminder-layer .bcos-participation button.bcos-participation__button {
  background:var(--bcos-color-accent); color:var(--bcos-color-accent-text); border-color:var(--bcos-color-accent);
}
:root[data-bcos-theme="dark"] body .bcos-activity-reminder-layer .bcos-participation button:hover:not(:disabled) { background:var(--bcos-color-accent-hover); color:var(--bcos-color-accent-text); }
:root[data-bcos-theme="dark"] body .bcos-activity-reminder-layer .bcos-participation :is(button,input,select,textarea):disabled {
  background:var(--bcos-color-disabled-surface); color:var(--bcos-color-disabled); border-color:var(--bcos-color-field-border); opacity:1;
}
:root[data-bcos-theme="dark"] body .bcos-activity-reminder-layer .bcos-participation :is(button,input,select,textarea):focus-visible { outline:3px solid var(--bcos-color-focus); outline-offset:3px; }
@media(forced-colors:active) {
  :root[data-bcos-theme="dark"] body .bcos-activity-reminder-layer .bcos-participation :is(button,input,select,textarea):focus-visible { outline-color:Highlight; }
}

/* Shared feedback controls keep paired surfaces when evaluation ink follows Dark. */
:root[data-bcos-theme="dark"] body .bcos-feedback-picker {
  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-feedback-picker :is(.bcos-feedback-picker__add-toggle,.bcos-feedback-picker__suggestions button:not([data-badge-color])),
:root[data-bcos-theme="dark"] body .bcos-feedback-picker--neutral button:not([data-badge-color]) {
  background:var(--bcos-color-surface-raised)!important; color:var(--bcos-color-text)!important; border:1px solid var(--bcos-color-field-border);
}
:root[data-bcos-theme="dark"] body .bcos-feedback-picker .bcos-feedback-picker__drawer input {
  background:var(--bcos-color-surface)!important; color:var(--bcos-color-text)!important; border-color:var(--bcos-color-field-border)!important; color-scheme:inherit;
}
:root[data-bcos-theme="dark"] body .bcos-feedback-picker input::placeholder { color:var(--bcos-color-text-muted); opacity:1; }
:root[data-bcos-theme="dark"] body .bcos-feedback-picker :is(button,input):focus-visible { outline:2px solid var(--bcos-color-focus); outline-offset:2px; box-shadow:0 0 0 2px var(--bcos-color-surface); }
@media(forced-colors:active) {
  :root[data-bcos-theme="dark"] body .bcos-feedback-picker :is(button,input):focus-visible { outline-color:Highlight; box-shadow:none; }
}
