/* Shared dropdown surfaces; native selects keep their semantics and form behavior. */
@media screen {
  select:not([multiple]):not([size]), select:not([multiple])[size="1"] {
    min-width: 0;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  select:focus-visible, input[data-unified-list]:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
  }
  @supports (appearance: base-select) {
    select:not([multiple]):not([size]), select:not([multiple])[size="1"],
    select:not([multiple]):not([size])::picker(select), select:not([multiple])[size="1"]::picker(select) {
      appearance: base-select;
    }
    select:not([multiple]):not([size]):not(.hidden):not([hidden]), select:not([multiple])[size="1"]:not(.hidden):not([hidden]) {
      display: inline-flex;
      align-items: center;
    }
    select.block:not([multiple]):not([size]):not(.hidden):not([hidden]), select.block:not([multiple])[size="1"]:not(.hidden):not([hidden]) { display: flex; }
    select:not([multiple]):not([size])::picker(select), select:not([multiple])[size="1"]::picker(select) {
      margin: 4px 0;
      min-width: max(100%, 15rem);
      max-width: min(36rem, calc(100vw - 1rem));
      max-height: min(18rem, 45vh);
      padding: .375rem;
      border: 1px solid #cbd5e1;
      border-radius: .75rem;
      background: #fff;
      color: #1e293b;
      box-shadow: 0 12px 30px rgb(15 23 42 / .18);
      overflow: auto;
    }
    select:not([multiple]):not([size]) option, select:not([multiple])[size="1"] option {
      padding: .625rem .75rem;
      border-radius: .5rem;
      color: #1e293b;
      background: #fff;
      white-space: normal;
      overflow-wrap: anywhere;
      line-height: 1.4;
    }
    select:not([multiple]):not([size]) option:hover, select:not([multiple])[size="1"] option:hover,
    select:not([multiple]):not([size]) option:focus, select:not([multiple])[size="1"] option:focus { background: #eef2ff; }
    select:not([multiple]):not([size]) option:checked, select:not([multiple])[size="1"] option:checked { background: #e0e7ff; color: #3730a3; font-weight: 600; }
    select:not([multiple]):not([size]) option:disabled, select:not([multiple])[size="1"] option:disabled { color: #94a3b8; }
    select:not([multiple]):not([size]) selectedcontent, select:not([multiple])[size="1"] selectedcontent { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    select::picker-icon { color: #64748b; margin-inline-start: .5rem; }
  }
  .unified-suggestions {
    position: fixed; z-index: 2147483647; box-sizing: border-box;
    max-height: min(18rem, 45vh); overflow-y: auto; overscroll-behavior: contain;
    padding: .375rem; border: 1px solid #cbd5e1; border-radius: .75rem;
    background: #fff; color: #1e293b; box-shadow: 0 12px 30px rgb(15 23 42 / .18);
    font: 500 14px/1.4 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  .unified-suggestion { display: block; width: 100%; padding: .625rem .75rem; border: 0; border-radius: .5rem; background: transparent; text-align: left; color: inherit; cursor: pointer; white-space: normal; overflow-wrap: anywhere; }
  .unified-suggestion:hover, .unified-suggestion[aria-selected="true"] { background: #eef2ff; color: #3730a3; }
  .unified-suggestion-description { display: block; margin-top: .125rem; color: #64748b; font-size: .8em; }
  .nexus-search-select { position:relative; min-width:0; }
  .nexus-search-select input { padding-right:2.5rem; }
  .nexus-search-select input[type="search"]::-webkit-search-cancel-button { display:none; }
  .nexus-search-select-arrow { position:absolute; right:.5rem; top:50%; transform:translateY(-50%); width:2rem; height:2rem; color:#64748b; border:0; background:transparent; cursor:pointer; }
  .nexus-search-select-list { position:absolute; z-index:50; top:calc(100% + 4px); left:0; right:0; max-height:12rem; overflow:auto; padding:.3rem; border:1px solid #cbd5e1; border-radius:.75rem; background:white; box-shadow:0 12px 30px rgb(15 23 42 / .18); }
  .nexus-search-select-list.opens-up { top:auto; bottom:calc(100% + 4px); }
  .nexus-search-select-list.nexus-search-select-portal { position:fixed; z-index:2147483646; right:auto; bottom:auto; }
  .nexus-search-select-list[hidden] { display:none; }
  .nexus-search-select-option { display:block; width:100%; padding:.6rem .7rem; border:0; border-radius:.5rem; background:transparent; color:#1e293b; text-align:left; font-size:.8rem; cursor:pointer; }
  .nexus-search-select-option:hover,.nexus-search-select-option[aria-selected="true"] { background:#eef2ff; color:#3730a3; }
  .nexus-search-select-option:disabled { opacity:.45; cursor:not-allowed; }
  .nexus-search-select-empty { padding:.7rem; color:#64748b; font-size:.75rem; }
}
