/* Smooth dropdown menus: a panel that unfolds from the box, with each choice as a bubble. */
select:not([multiple]){cursor:pointer;transition:border-color .18s,box-shadow .18s}
select.zsel-active{border-color:var(--green)!important;box-shadow:0 0 0 3px var(--green-soft)!important;outline:none}

.zsel-pop{position:fixed;inset:auto;margin:0;z-index:2147482000;display:none;box-sizing:border-box;width:max-content;min-width:180px;max-width:440px;max-height:360px;
  overflow:auto;overscroll-behavior:contain;padding:8px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);
  box-shadow:0 22px 60px #0008,0 0 0 1px #ffffff08 inset;font:inherit;
  opacity:0;clip-path:inset(0 0 100% 0 round 18px);transform:translateY(-4px) scaleY(.96);
  transition:clip-path .3s cubic-bezier(.2,.85,.25,1),opacity .2s ease,transform .3s cubic-bezier(.2,.85,.25,1);
  scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.zsel-pop:popover-open{display:block}
.zsel-pop.zsel-up{clip-path:inset(100% 0 0 0 round 18px);transform:translateY(4px) scaleY(.96)}
.zsel-pop.zsel-open{opacity:1;clip-path:inset(0 0 0 0 round 18px);transform:none}
.zsel-pop.zsel-closing{transition-duration:.17s,.15s,.17s}
.zsel-pop::-webkit-scrollbar{width:8px}
.zsel-pop::-webkit-scrollbar-thumb{background:var(--line);border-radius:8px}

.zsel-list{display:flex;flex-direction:column;gap:6px}
.zsel-group{padding:8px 10px 2px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase}
.zsel-bubble{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:38px;padding:8px 12px 8px 16px;
  border:1px solid var(--line);border-radius:999px;background:var(--surface2,var(--surface));color:var(--ink);
  font:inherit;font-size:13.5px;line-height:1.3;text-align:left;cursor:pointer;
  transition:background .16s,border-color .16s,color .16s,transform .16s}
.zsel-bubble .zsel-text{min-width:0;overflow-wrap:anywhere}
.zsel-in-group{margin-left:8px;width:calc(100% - 8px)}
.zsel-tick{flex:none;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;opacity:0;transform:scale(.4);transition:opacity .18s,transform .22s cubic-bezier(.3,1.6,.5,1)}
.zsel-bubble.zsel-hot{border-color:var(--green);background:var(--green-soft);transform:translateX(3px)}
.zsel-bubble.zsel-on{background:var(--green);border-color:var(--green);color:var(--on-accent,#06201c);font-weight:650}
.zsel-bubble.zsel-on .zsel-tick{opacity:1;transform:scale(1);background:#ffffff33}
.zsel-bubble.zsel-on.zsel-hot{filter:brightness(1.06)}
.zsel-bubble:disabled{opacity:.45;cursor:not-allowed}
.zsel-bubble:focus-visible{outline:2px solid var(--green);outline-offset:2px}

/* each bubble floats in a moment after the one before it */
.zsel-open .zsel-bubble,.zsel-open .zsel-group{animation:zsel-bubble .34s cubic-bezier(.2,.9,.3,1.25) both;animation-delay:calc(var(--i,0) * 24ms + 50ms)}
.zsel-up.zsel-open .zsel-bubble,.zsel-up.zsel-open .zsel-group{animation-name:zsel-bubble-up}
.zsel-bubble.zsel-picked{animation:zsel-pick .22s ease-out both!important}
@keyframes zsel-bubble{from{opacity:0;transform:translateY(-8px) scale(.9)}to{opacity:1;transform:none}}
@keyframes zsel-bubble-up{from{opacity:0;transform:translateY(8px) scale(.9)}to{opacity:1;transform:none}}
@keyframes zsel-pick{0%{transform:scale(1)}45%{transform:scale(.95)}100%{transform:scale(1.02)}}

@media (max-width:520px){.zsel-bubble{min-height:44px;font-size:14.5px}}
.zsel-calm,.zsel-calm .zsel-bubble,.zsel-calm .zsel-group{transition:none!important;animation:none!important}
@media (prefers-reduced-motion:reduce){.zsel-pop,.zsel-bubble,.zsel-tick{transition:none}.zsel-open .zsel-bubble,.zsel-open .zsel-group,.zsel-bubble.zsel-picked{animation:none!important}}
