/* WTWR_UNIFIED_SOFT_DIM_V1
   One visual dim level everywhere: clearly secondary, still comfortably readable.
   Reference: the softer dim treatment preferred by the user.
   Visual-only. No strategy/filter/data logic.
*/

/* ---------------------------------------------------------
   TODAY + MY DEMO + ADVANCED FILTERS
   Apply one soft dim at the cell level and explicitly prevent
   older nested dim rules from multiplying the effect.
   --------------------------------------------------------- */
#todayTable td.wtwr-strategy-side-muted,
#todayTable td.wtwr-filter-side-muted,
#demoSelections td.wtwr-demo-side-excluded,
#demoSelections td.wtwr-filter-side-muted{
  opacity:.52!important;
  filter:saturate(.46) brightness(.88)!important;
  background:rgba(2,7,13,.48)!important;
  box-shadow:inset 0 0 0 9999px rgba(2,7,13,.07)!important;
  transition:opacity .16s ease,filter .16s ease!important;
}

/* Never multiply the cell dim with an older inner-label dim. */
#demoSelections td.wtwr-demo-side-excluded .demo-pick-option,
#demoSelections td.wtwr-demo-side-excluded .demo-pick-option.wtwr-demo-nonqualifier{
  opacity:1!important;
  filter:none!important;
}

/* Qualifying / counted sides stay untouched and fully bright. */
#todayTable td.wtwr-strategy-side-qualified,
#todayTable td.wtwr-filter-side-counted,
#demoSelections td.wtwr-filter-side-counted{
  opacity:1!important;
  filter:none!important;
}

/* ---------------------------------------------------------
   RESULTS
   We cannot dim the whole TD because the real result badge
   (especially red 1ST) must stay vivid. So dim each content
   component ONCE at the same softer perceived level.
   --------------------------------------------------------- */
#resultsTable td.wtwr-results-strategy-side-context{
  opacity:1!important;
  filter:none!important;
  background:rgba(2,7,13,.48)!important;
  box-shadow:inset 0 0 0 9999px rgba(2,7,13,.07)!important;
}

#resultsTable td.wtwr-results-strategy-side-context .prediction-pick > *{
  opacity:.52!important;
  filter:saturate(.46) brightness(.88)!important;
}

/* Horse + result badge share this row: keep the row itself normal,
   dim only the horse, then leave the result badge fully bright. */
#resultsTable td.wtwr-results-strategy-side-context .prediction-pick > .horse-result-line{
  opacity:1!important;
  filter:none!important;
}
#resultsTable td.wtwr-results-strategy-side-context .horse-result-line .horse{
  opacity:.52!important;
  filter:saturate(.46) brightness(.88)!important;
}
#resultsTable td.wtwr-results-strategy-side-context .result-badge{
  opacity:1!important;
  filter:none!important;
}

/* Results advanced-filter context state uses the same soft level. */
#resultsTable td.wtwr-filter-side-muted:not(.wtwr-results-strategy-side-context){
  opacity:.52!important;
  filter:saturate(.46) brightness(.88)!important;
  background:rgba(2,7,13,.48)!important;
  box-shadow:inset 0 0 0 9999px rgba(2,7,13,.07)!important;
}

#resultsTable td.wtwr-results-strategy-side-selected,
#resultsTable td.wtwr-filter-side-counted{
  opacity:1!important;
  filter:none!important;
}
