/* BRAHIMI V5.3.0 */
/* BFZ_V530_PRECISE_SYSTEM_COLOR_ONLY_DARK_BLUE */
:root{
  --bfz-v530-system:var(--user-blue,#00a3d7);
}

/*
 * V5.3 contract:
 * - only controls that were previously FILLED dark blue inherit the user system colour;
 * - white/transparent controls keep their original surface;
 * - semantic green/orange/red status colours stay semantic.
 *
 * This intentionally does not contain a generic [aria-selected], .active,
 * button, chip, option or switch recolouring rule.
 */
body.bfz-v530-theme .dp-shell :is(
  .dp-btn.primary,
  .dp-segment a.active,
  .dp-filter-chip.active,
  .dp-optimize-open,
  .dp-disposition-apply,
  .dp-optimizer-submit,
  .dp-turbo-live-result
),
body.bfz-v530-theme .dp-shell .dp-resource-palette-tabs button.is-active{
  background:var(--bfz-v530-system)!important;
  background-color:var(--bfz-v530-system)!important;
  border-color:var(--bfz-v530-system)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* BFZ_V530_WHITE_SWITCH_SURFACE_RESTORED
 * Exact V3.5-style switch surface: the button itself is transparent/white by
 * context. Only the inner iOS track is grey or semantic green. */
body.bfz-v530-theme .bfz-v350-filter-switch,
body.bfz-v530-theme .bfz-v350-filter-switch.is-active,
body.bfz-v530-theme .bfz-v350-filter-switch[aria-checked="true"]{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  border-color:transparent!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:#285a78!important;
  -webkit-text-fill-color:currentColor!important;
}
body.bfz-v530-theme .bfz-v350-filter-switch>i{
  background:var(--bfz-v270-switch-off,#e5e7eb)!important;
  border:1px solid rgba(0,0,0,.04)!important;
}
body.bfz-v530-theme .bfz-v350-filter-switch.is-active>i,
body.bfz-v530-theme .bfz-v350-filter-switch[aria-checked="true"]>i{
  background:var(--bfz-v270-green,#34c759)!important;
}
body.bfz-v530-theme .bfz-v350-filter-switch>i::after{
  background:var(--bfz-v270-switch-knob,#fff)!important;
}

/* Never let the V5.3 primary bridge repaint semantic states. */
body.bfz-v530-theme :is(.danger,.error,.is-danger,.is-error,.warning,.is-warning,.success,.is-success,.is-negative,.is-positive){
  --bfz-v530-semantic-preserve:1;
}
