/* SWIPEDITOR — menus deroulants communs (Poster, Gardees, Mon compte).
   Conserve la taille, les valeurs et les evenements des <select> existants.
   Les navigateurs sans base-select gardent leur menu natif. */
@supports (appearance:base-select) and selector(::picker(select)) {
  @media (forced-colors:none) {
    :is(body.app-mode #phone, #auth) select {
      appearance:base-select;
      align-items:center;
    }
    :is(body.app-mode #phone, #auth) select::picker-icon {
      display:none;
    }
    :is(body.app-mode #phone, #auth) select::picker(select) {
      appearance:base-select;
      box-sizing:border-box;
      margin-block:5px;
      max-width:calc(100vw - 24px);
      max-height:min(340px,60vh);
      overflow:auto;
      overscroll-behavior:contain;
      padding:5px;
      border:1px solid #3b5871;
      border-radius:16px;
      background:#172638;
      color:#edf5ff;
      box-shadow:0 12px 28px #03091085;
      position-area:block-end span-inline-end;
    }
    :is(body.app-mode #phone, #auth) select option {
      display:flex;
      align-items:center;
      gap:8px;
      min-height:42px;
      padding:8px 12px;
      border-radius:10px;
      background:transparent;
      color:#edf5ff;
      font:inherit;
      cursor:pointer;
    }
    :is(body.app-mode #phone, #auth) select option:checked {
      background:#173b50;
      color:#a7ebff;
    }
    :is(body.app-mode #phone, #auth) select option:is(:hover,:focus-visible) {
      background:#28465e;
      color:#fff;
    }
    :is(body.app-mode #phone, #auth) select option::checkmark {
      order:1;
      margin-inline-start:auto;
      color:#79dfff;
    }
    :is(body.app-mode #phone, #auth) select option:disabled {
      opacity:.5;
      cursor:not-allowed;
    }
  }
  @media (forced-colors:none) and (prefers-reduced-motion:no-preference) {
    :is(body.app-mode #phone, #auth) select:open::picker(select) {
      animation:swip-post-picker-open 420ms cubic-bezier(.32,.72,.32,1) both;
    }
  }
}
body.sw-cursor-active :is(#phone, #auth) select {
  cursor:var(--post-white-cursor),pointer!important;
}
body.sw-cursor-active:has(:is(#phone, #auth) select:is(:hover,:open)) :is(.cursor-orb,.cursor-dot) {
  display:none!important;
}
