/* Custom-drawn open lists for every <select> (Nov 17 2026).
   Black background, white text, gray #333 highlight on the hovered and selected row.
   The closed control stays a native <select>; this only styles the open list. */
.bwm{position:fixed;z-index:2147483000;box-sizing:border-box;overflow:auto;background:#000;color:#fff;border:2px solid #fff;border-radius:12px;padding:4px;
  box-shadow:0 12px 32px rgba(0,0,0,.85);font:inherit;font-size:15px;line-height:1.3;color-scheme:dark;overscroll-behavior:contain}
.bwm[hidden]{display:none}
.bwm-opt{display:block;padding:9px 12px 9px 28px;border-radius:8px;background:#000;color:#fff;font-weight:700;cursor:pointer;white-space:normal;overflow-wrap:anywhere;position:relative}
.bwm-opt.in{padding-left:34px}
.bwm-opt.sel::before{content:"✓";position:absolute;left:9px;color:#fff}
.bwm-opt.act,.bwm-opt:hover{background:#333;color:#fff}
.bwm-opt.dis{color:#8b8b8b;cursor:default}
.bwm-opt.dis:hover{background:#000}
.bwm-grp{padding:8px 10px 4px;color:#fff;font-weight:900;background:#000;cursor:default;overflow-wrap:anywhere}
select.bwm-open{border-color:#fff!important}

/* Native <option> colors used when a list is opened as a size>1 listbox (and as a fallback).
   Unselected rows stay #000; the selected / hovered row is distinct gray #333. */
html body select option,html body select optgroup,select option,select optgroup,option,optgroup{
  background-color:#000!important;color:#fff!important}
html body select option:checked,html body select option:hover,html body select option:focus,
html body select option:focus-visible,select option:checked,select option:hover,option:checked,option:hover,
html body select option[data-bw="hi"],select option[data-bw="hi"]{
  background-color:#333!important;background:#333!important;color:#fff!important;
  box-shadow:inset 0 0 0 100vmax #333!important}
html body select option[data-bw="base"],select option[data-bw="base"]{
  background-color:#000!important;background:#000!important;color:#fff!important;box-shadow:none!important}
select[size],select[size]:not([size=""]){background-color:#000!important;color:#fff!important;appearance:auto!important;color-scheme:dark}
