:root{--choice-bg:#252628;--choice-fg:#f0ebe4;--choice-accent:#d9b58e}
:root[data-choice-theme=forma]{--choice-bg:#233a63;--choice-fg:#edf3ff;--choice-accent:#ffbd66}
:root[data-choice-theme=kroshka]{--choice-bg:#fff2db;--choice-fg:#471b24;--choice-accent:#90233b}
:root[data-choice-theme=lak]{--choice-bg:#242124;--choice-fg:#faf1eb;--choice-accent:#e9a698}
:root[data-choice-theme=mora]{--choice-bg:#f6f0e5;--choice-fg:#302c23;--choice-accent:#576745}
:root[data-choice-theme=objet]{--choice-bg:#f7dfcb;--choice-fg:#3d1828;--choice-accent:#732440}
:root[data-choice-theme=ploshchad]{--choice-bg:#f5f3ec;--choice-fg:#232621;--choice-accent:#273fc3}
:root[data-choice-theme=povod]{--choice-bg:#232520;--choice-fg:#f1f2ed;--choice-accent:#d9ff37}
:root[data-choice-theme=sloy]{--choice-bg:#ecece2;--choice-fg:#29322e;--choice-accent:#87402d}
:root[data-choice-theme=tish]{--choice-bg:#25483c;--choice-fg:#fff5dc;--choice-accent:#f6be71}
:root[data-choice-theme=smena]{--choice-bg:#f3f0e7;--choice-fg:#24231e;--choice-accent:#a63420}
html body select:not([multiple]):not([size]){
  color:var(--choice-fg);background-color:var(--choice-bg);border:1px solid color-mix(in srgb,var(--choice-fg) 34%,var(--choice-bg));
  border-radius:9px;min-height:44px;padding:.52em .85em;cursor:pointer;
}
html body select:focus-visible{outline:2px solid var(--choice-accent);outline-offset:2px}
.choice-menu{position:fixed;inset:auto;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;margin:0;padding:5px;z-index:2147483647;color:var(--choice-fg);background:var(--choice-bg);border:1px solid color-mix(in srgb,var(--choice-fg) 30%,var(--choice-bg));border-radius:12px;box-shadow:0 12px 36px #0004}
.choice-item{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:42px;padding:7px 12px;box-sizing:border-box;line-height:1.3;cursor:pointer;border-radius:7px}
.choice-item[data-active],.choice-item:hover{background:color-mix(in srgb,var(--choice-accent) 16%,var(--choice-bg))}
.choice-item[aria-selected=true]::after{content:"✓";font-weight:700;color:var(--choice-accent)}
.choice-item[aria-disabled=true]{opacity:.5}
@supports (appearance:base-select) and selector(select::picker(select)){
  html body select:not([multiple]):not([size]),html body select::picker(select){appearance:base-select}
  html body select::picker-icon{color:var(--choice-accent);align-self:center}
  html body select::picker(select){margin-block:5px;padding:5px;max-height:min(22rem,52dvh);overflow:auto;border:1px solid color-mix(in srgb,var(--choice-fg) 30%,var(--choice-bg));border-radius:12px;background:var(--choice-bg);color:var(--choice-fg);box-shadow:0 12px 36px #0004}
  html body select option{padding:8px 12px;min-height:42px;box-sizing:border-box;border-radius:7px;align-items:center;color:var(--choice-fg)!important;background:var(--choice-bg)!important;font:inherit}
  html body select option:is(:checked,:hover,:focus-visible){background:color-mix(in srgb,var(--choice-accent) 16%,var(--choice-bg))!important;color:var(--choice-fg)!important}
  html body select option::checkmark{order:1;margin-inline-start:auto;color:var(--choice-accent)}
}
