/* Dropdowns (nselect.js): the owner portal shell and the partner join pages load this. Chip mode in toolbars, field mode
   (a select with .input) in forms; the list opens right under its button. */
/* The select stays in the form, hidden: page styles that give it a display (e.g. .input) must not show it again. */
select[data-nselect-on][hidden] { display: none !important; }
.no-dd { display: inline-flex; min-width: 0; }
.no-dd-btn { display: inline-flex; align-items: center; gap: 6px; max-width: 170px; min-height: 30px; padding: 0 2px; border: 0; border-radius: 8px; background: transparent; color: var(--tx); font: inherit; font-weight: 800; cursor: pointer; }
.no-dd-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no-dd-chev { flex: none; width: 16px; height: 16px; color: var(--mu); transition: transform .15s; }
.no-dd-btn[aria-expanded="true"] .no-dd-chev { transform: rotate(180deg); }
.no-dd-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.no-dd-btn:disabled { cursor: not-allowed; opacity: .75; }
.no-dd.is-field { display: flex; width: 100%; }
.no-dd-btn.is-field { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: none; min-height: 44px; padding: 0 12px; border: 1px solid var(--bd); border-radius: var(--r); background: var(--sf); font-weight: 600; text-align: start; }
.no-dd-btn.is-field:focus-visible { outline: none; border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.no-dd-btn.is-field[aria-expanded="true"] { border-color: var(--brand); }
.no-dd.is-empty .no-dd-btn.is-field > span { color: var(--mu2); }

.no-dd-list { position: fixed; z-index: 140; display: flex; flex-direction: column; min-width: 180px; max-height: 340px; overflow: hidden; border: 1px solid var(--bd); border-radius: var(--r-md); background: var(--sf); color: var(--tx); box-shadow: 0 14px 34px #0f172a29; animation: no-dd-in .12s; }
.no-dd-list.is-up { animation-name: no-dd-up; }
.no-dd-list ul { flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 4px; list-style: none; outline: none; }
.no-dd-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.no-dd-list.is-field li { white-space: normal; }
.no-dd-list li:hover, .no-dd-list li.is-active { background: var(--soft); }
.no-dd-list li[aria-selected="true"] { background: var(--brand-soft); color: var(--brand-tx); font-weight: 800; }
.no-dd-list li[aria-selected="true"]::after { content: ""; flex: none; width: 8px; height: 8px; border-radius: 99px; background: currentColor; }
.no-dd-list li[hidden] { display: none; }
.no-dd-list li[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.no-dd-search { padding: 6px 6px 2px; border-bottom: 1px solid var(--bd); }
.no-dd-search input { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid var(--bd); border-radius: 9px; background: var(--bg); color: var(--tx); font: inherit; font-size: 13.5px; outline: none; }
.no-dd-search input:focus { border-color: var(--brand); }
/* iPhones zoom into a field under 16px when it takes focus. */
@media (pointer: coarse) { .no-dd-search input { font-size: 16px; } }
.no-dd-none { padding: 12px; color: var(--mu); text-align: center; }
@keyframes no-dd-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes no-dd-up { from { opacity: 0; transform: translateY(4px); } }
