/* (tlselect1) The TradeLabs dropdown (js/select-menu.js): the list every <select> opens. Always a dark box, on dark pages
   and light ones alike (the owner's light look is dark boxes on a white page). It pours down out of the box it came from
   (up when there is no room), rows arrive one after another, a highlight glides between rows, the chosen row's check
   draws itself, and on a phone it is a sheet from the bottom. No coloured glow, no blur (lag rule). */
.tlsm{
  --tlsm-accent:#3b74ff;--tlsm-ink:#eef2f6;--tlsm-mid:#aab4bf;--tlsm-lo:#7c8794;--tlsm-ease:cubic-bezier(.22,1,.36,1);--tlsm-spring:cubic-bezier(.16,1.12,.3,1);
  position:fixed;z-index:2147483000;display:flex;flex-direction:column;box-sizing:border-box;min-width:168px;max-width:360px;padding:6px;
  border-radius:14px;color:var(--tlsm-ink);font-size:13px;line-height:1.3;text-align:left;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums;
  background:linear-gradient(180deg,#171a20,#0e1014 46px);
  box-shadow:0 0 0 1px rgba(255,255,255,.085) inset,0 1px 0 rgba(255,255,255,.05) inset,0 24px 56px -18px rgba(0,0,0,.72),0 6px 16px -6px rgba(0,0,0,.45);
  opacity:0;transform:translateY(-6px) scale(.965);
  clip-path:inset(-40px -40px 100% -40px round 18px);
  transition:opacity .16s ease,transform .38s var(--tlsm-spring),clip-path .34s var(--tlsm-ease);
  will-change:transform,clip-path}
.tlsm.up{transform:translateY(6px) scale(.965);clip-path:inset(100% -40px -40px -40px round 18px)}
.tlsm.in{opacity:1;transform:none;clip-path:inset(-40px -40px -40px -40px round 18px)}
.tlsm.out{opacity:0;transform:translateY(-3px) scale(.985);clip-path:inset(-40px -40px -40px -40px round 18px);transition:opacity .14s ease,transform .17s ease}
.tlsm.up.out{transform:translateY(3px) scale(.985)}
.tlsm *{box-sizing:border-box}

/* the rows */
.tlsm-list{position:relative;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;outline:none;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent}
.tlsm-list::-webkit-scrollbar{width:8px}
.tlsm-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border:2px solid transparent;border-radius:8px;background-clip:padding-box}
.tlsm-list::-webkit-scrollbar-track{background:transparent}
.tlsm-hl{position:absolute;left:0;right:0;top:0;height:34px;border-radius:9px;background:rgba(255,255,255,.075);box-shadow:0 0 0 1px rgba(255,255,255,.04) inset;opacity:0;pointer-events:none;
  transition:transform .22s var(--tlsm-ease),height .22s var(--tlsm-ease),opacity .12s}
.tlsm-hl::before{content:"";position:absolute;left:4px;top:50%;width:3px;height:14px;margin-top:-7px;border-radius:3px;background:var(--tlsm-accent);transform:scaleY(.4);opacity:0;transition:transform .25s var(--tlsm-spring),opacity .15s}
.tlsm-list:hover .tlsm-hl::before,.tlsm-list:focus-within .tlsm-hl::before{transform:none;opacity:1}
.tlsm-o{position:relative;z-index:1;display:flex;align-items:center;gap:10px;min-height:34px;padding:7px 10px 7px 14px;border-radius:9px;cursor:pointer;color:rgba(238,242,246,.8);
  transition:color .15s;-webkit-user-select:none;user-select:none;
  animation:tlsmIn .34s var(--tlsm-ease) both;animation-delay:calc(var(--i,0) * 16ms + 40ms)}
.tlsm.up .tlsm-o{animation-name:tlsmInUp}
.tlsm-o.hi{color:#fff}
.tlsm-o.on{color:#fff}
.tlsm-o.on .tlsm-t{font-weight:600}
.tlsm-o.off{opacity:.38;cursor:default}
.tlsm-o[hidden],.tlsm-g[hidden],.tlsm-none[hidden]{display:none}
.tlsm-tx{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.tlsm-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tlsm-tx small{font-size:11.5px;color:var(--tlsm-lo);white-space:normal}
.tlsm-b{flex:none;display:inline-flex;align-items:center;height:19px;padding:0 7px;border-radius:99px;background:rgba(255,255,255,.07);box-shadow:0 0 0 1px rgba(255,255,255,.07) inset;color:var(--tlsm-mid);font-size:10.5px;font-weight:600;letter-spacing:.02em;white-space:nowrap}
.tlsm-o.hi .tlsm-b{color:#fff;background:rgba(255,255,255,.11)}
.tlsm-c{flex:none;width:15px;height:15px;fill:none;stroke:var(--tlsm-accent);stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:15;stroke-dashoffset:15;opacity:0;
  transition:stroke-dashoffset .34s cubic-bezier(.65,0,.35,1) .1s,opacity .1s .1s}
.tlsm-o.on .tlsm-c{stroke-dashoffset:0;opacity:1}
.tlsm-o.pick{animation:tlsmPick .3s var(--tlsm-ease)}
.tlsm-o.pick .tlsm-c{transition-delay:0s}
.tlsm-g{padding:10px 14px 5px;color:var(--tlsm-lo);font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;animation:tlsmIn .3s var(--tlsm-ease) both}
.tlsm-none{padding:16px 12px;text-align:center;color:var(--tlsm-lo);font-size:12.5px}

/* the search box on a long list */
.tlsm-q{flex:none;display:flex;align-items:center;gap:8px;height:36px;margin:0 0 6px;padding:0 10px;border-radius:10px;background:rgba(255,255,255,.05);box-shadow:0 0 0 1px rgba(255,255,255,.07) inset;cursor:text;transition:box-shadow .2s,background .2s}
.tlsm-q:focus-within{background:rgba(255,255,255,.07);box-shadow:0 0 0 1px var(--tlsm-accent) inset}
.tlsm-q svg{flex:none;width:14px;height:14px;fill:none;stroke:var(--tlsm-lo);stroke-width:1.7;stroke-linecap:round}
.tlsm-q input{flex:1;min-width:0;height:100%;padding:0;border:0;outline:none;background:transparent;color:#fff;font:inherit;font-size:13px}
.tlsm .tlsm-q input:focus,.tlsm .tlsm-q input:focus-visible{outline:none!important;box-shadow:none!important;border:0!important}   /* the box's own ring is enough */
.tlsm-q input::placeholder{color:var(--tlsm-lo)}

/* a phone: a sheet from the bottom with large rows */
.tlsm.tlsm-sheet{left:8px;right:8px;bottom:8px;top:auto!important;min-width:0!important;max-width:none!important;padding:4px 8px calc(10px + env(safe-area-inset-bottom,0px));border-radius:22px;font-size:15px;
  clip-path:none;opacity:1;transform:translateY(calc(100% + 16px));transition:transform .44s cubic-bezier(.2,1,.3,1)}
.tlsm.tlsm-sheet.in{transform:none}
.tlsm.tlsm-sheet.out{transform:translateY(calc(100% + 16px));transition:transform .24s cubic-bezier(.4,0,1,1)}
.tlsm-sheet .tlsm-o{min-height:48px;padding:11px 14px 11px 16px;border-radius:12px}
.tlsm-sheet .tlsm-hl{border-radius:12px}
.tlsm-sheet .tlsm-q{height:42px;font-size:15px}
.tlsm-sheet .tlsm-q input{font-size:16px}
.tlsm-grab{flex:none;width:38px;height:4px;margin:6px auto 8px;border-radius:99px;background:rgba(255,255,255,.22)}
.tlsm-head{flex:none;padding:0 14px 8px;color:var(--tlsm-mid);font-size:12.5px;font-weight:600}
.tlsm-back{position:fixed;inset:0;z-index:2147482999;background:rgba(5,7,10,.5);opacity:0;transition:opacity .28s ease;-webkit-tap-highlight-color:transparent}
.tlsm-back.in{opacity:1}

/* the select itself while its list is open, and a small settle when a choice lands */
select.tlsm-open{outline:2px solid rgba(59,116,255,.55)!important;outline:2px solid color-mix(in srgb,var(--tlsm-ring,#3b74ff) 55%,transparent)!important;outline-offset:2px}   /* the page's accent (set by the script) */
select.tlsm-bump{animation:tlsmBump .42s cubic-bezier(.2,1.5,.4,1)}

@keyframes tlsmIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
@keyframes tlsmInUp{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes tlsmPick{0%{background:rgba(255,255,255,0)}35%{background:rgba(255,255,255,.12)}100%{background:rgba(255,255,255,0)}}
@keyframes tlsmBump{0%{scale:.96}100%{scale:1}}

@media (prefers-reduced-motion:reduce){
  .tlsm,.tlsm *,.tlsm-back,select.tlsm-bump{animation:none!important;transition:none!important}
  .tlsm{clip-path:none!important}
}
.tlsm.tlsm-calm,.tlsm.tlsm-calm *,.tlsm-back.tlsm-calm{animation:none!important;transition:none!important}
