.ks{position:relative}
  .ks-native{position:absolute!important;left:0;bottom:0;width:1px!important;height:1px!important;opacity:0!important;padding:0!important;border:0!important;pointer-events:none}
  .ks-trigger{
    display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;cursor:pointer;
    padding:0 10px 0 16px!important;
  }
  .ks-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ks-trigger.ks-ph .ks-label{color:#4a5c7e}
  .ks-chev{width:30px;height:30px;flex:none;border-radius:8px;display:grid;place-items:center;color:var(--cyan);background:rgba(0,229,255,.06);transition:transform .25s ease, background .2s}
  .ks-chev svg{width:16px;height:16px}
  .ks-trigger:hover .ks-chev{background:rgba(0,229,255,.12)}
  .ks.open .ks-trigger{border-color:var(--line-strong);box-shadow:0 0 0 4px rgba(0,229,255,.10),0 0 24px -6px rgba(0,229,255,.45)}
  .ks.open .ks-chev{transform:rotate(180deg);background:rgba(0,229,255,.16)}
  .ks-trigger:disabled{opacity:.55;cursor:not-allowed}
  .ks-opt.ks-dis{cursor:default;opacity:.62}
  .ks-opt.ks-dis b{font-weight:700;color:var(--muted)}
  .ks-opt.ks-dis:hover{background:transparent}
  .ks-trigger:disabled .ks-chev{background:transparent}

  .ks-pop{
    position:fixed;z-index:130;padding:6px;border-radius:14px;overflow-y:auto;overscroll-behavior:contain;
    background:rgba(8,19,43,.98);border:1px solid rgba(0,229,255,.25);backdrop-filter:blur(14px);
    box-shadow:0 26px 54px -18px rgba(0,0,0,.85),0 0 34px -16px rgba(0,229,255,.55);
    opacity:0;transform:translateY(-6px) scale(.985);transform-origin:top center;transition:opacity .16s ease,transform .16s ease;

  }
  .ks-pop.up{transform-origin:bottom center;transform:translateY(6px) scale(.985)}
  .ks-pop.in{opacity:1;transform:none}
  .ks-opt{
    position:relative;display:flex;align-items:center;gap:10px;min-height:42px;padding:8px 12px;
    padding-left:calc(12px + var(--d, 0) * 22px);border-radius:10px;cursor:pointer;color:var(--text);
  }
  .ks-opt + .ks-opt{margin-top:2px}
  .ks-t{flex:1;min-width:0}
  .ks-t b{display:block;font-weight:500;font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ks-t small{display:block;font-size:12px;color:var(--faint);margin-top:1px}
  .ks-ck{width:18px;height:18px;flex:none;color:var(--cyan);opacity:0}
  .ks-ck svg{width:18px;height:18px}
  .ks-opt.sel .ks-t b{color:var(--cyan-soft);font-weight:600}
  .ks-opt.sel .ks-ck{opacity:1}
  /* highlighted row = same gradient as the Sign in button / sidebar hover */
  .ks-opt.ks-act{background:linear-gradient(90deg,var(--cyan) 0%,#2fa8ff 55%,var(--blue) 100%);box-shadow:0 8px 20px -10px rgba(0,180,255,.8)}
  .ks-opt.ks-act .ks-t b,.ks-opt.ks-act .ks-t small,.ks-opt.ks-act .ks-ck{color:#04101f}
  .ks-opt.ks-act .ks-t small{opacity:.75}
  .ks-elbow{position:absolute;left:calc(var(--d) * 22px - 6px);top:8px;width:10px;height:13px;border-left:1.5px solid rgba(0,229,255,.4);border-bottom:1.5px solid rgba(0,229,255,.4);border-bottom-left-radius:5px}
  .ks-opt.ks-act .ks-elbow{border-color:rgba(4,16,31,.45)}
  .ks-empty{padding:14px 12px;color:var(--faint);font-size:13.5px;text-align:center}

  /* light mode */
  body.theme-light .ks-trigger.ks-ph .ks-label{color:#9aa8c2}
  body.theme-light .ks-chev{color:var(--cyan-soft);background:rgba(10,168,200,.08)}
  body.theme-light .ks.open .ks-trigger{box-shadow:0 0 0 4px rgba(10,168,200,.12)}
  body.theme-light .ks-pop{background:#fff;border-color:rgba(10,168,200,.3);box-shadow:0 24px 50px -18px rgba(13,42,107,.4)}
  body.theme-light .ks-opt.ks-act{background:linear-gradient(90deg,#00d4f0,#2fa8ff 60%,var(--blue))}
  body.theme-light .ks-elbow{border-color:rgba(10,168,200,.5)}
