:root { --alss-v116-ready: 1; }

/* Only this class hides the native source; missing CSS leaves it usable. */
select.alss-native {
  position: absolute !important;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

span.alss {
  display: inline-flex;
  flex-direction: column;
  flex: 1 1 auto;
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  box-sizing: border-box;
}

.alss .alss-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line, #b6c2ca);
  border-radius: 6px;
  background: var(--panel, #fff);
  color: var(--ink, #182731);
  font: inherit;
  line-height: 1.4;
  text-align: start;
  cursor: pointer;
}

.alss .alss-value { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: inherit; color: inherit; text-transform: none; }
.alss-error { display: block; padding-top: 4px; color: var(--red, #b3261e); font-size: 14px; overflow-wrap: anywhere; }
.alss-error[hidden] { display: none !important; }
.alss-chevron { flex: 0 0 18px; width: 18px; height: 18px; }
i.alss-chevron::after { content: "\2304"; display: block; text-align: center; }
.alss-trigger:disabled { opacity: 0.65; cursor: not-allowed; }
.alss .alss-trigger[aria-invalid="true"] { border: 2px solid var(--red, #b3261e); }

.alss .alss-panel {
  position: fixed;
  inset: auto;
  display: flex;
  flex-direction: column;
  z-index: 10000;
  box-sizing: border-box;
  min-width: 0;
  max-width: calc(100vw - 16px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line, #b6c2ca);
  border-radius: 6px;
  background: var(--panel, #fff);
  color: var(--ink, #182731);
  box-shadow: 0 6px 20px rgb(0 0 0 / 16%);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: start;
  letter-spacing: 0;
}

.alss .alss-panel[hidden] { display: none !important; }
.alss .alss-searchbar { display: flex; flex: 0 0 auto; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line, #b6c2ca); }
.alss .alss-search {
  box-sizing: border-box;
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--muted, #536273);
  border-radius: 4px;
  background: var(--panel, #fff);
  color: var(--ink, #182731);
  font: inherit;
  font-size: 16px;
}
.alss .alss-search::placeholder { color: var(--muted, #536273); opacity: 1; }
.alss .alss-clear {
  flex: 0 0 auto;
  min-width: 72px;
  min-height: 44px;
  margin: 0;
  padding: 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--brand, #123b5d);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.alss .alss-trigger:focus-visible,
.alss .alss-search:focus-visible,
.alss .alss-clear:focus-visible {
  outline: 2px solid var(--brand, #123b5d);
  outline-offset: -3px;
}
.alss .alss-list { display: block; flex: 1 1 auto; position: relative; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.alss .alss-group { display: block; font: inherit; text-transform: none; }
.alss .alss-group-label { display: block; padding: 6px 12px; color: var(--muted, #536273); font-weight: 600; overflow-wrap: anywhere; text-transform: none; }
.alss .alss-option { display: block; box-sizing: border-box; min-height: 44px; padding: 10px 12px; overflow-wrap: anywhere; white-space: normal; cursor: pointer; border-inline-start: 3px solid transparent; font: inherit; color: inherit; text-transform: none; }
.alss-option[aria-selected="true"] { font-weight: 700; border-inline-start-color: var(--brand, #123b5d); }
.alss-option[aria-selected="true"]::after { content: " \2713"; }
.alss-option.alss-active,
.alss-option:not([aria-disabled="true"]):hover { background: var(--soft, #eef4f6); outline: 1px solid var(--muted, #536273); outline-offset: -2px; }
.alss-option[aria-disabled="true"] { color: var(--muted, #536273); cursor: not-allowed; }
.alss .alss-status { display: block; flex: 0 0 auto; padding: 6px 12px; border-top: 1px solid var(--line, #b6c2ca); color: var(--muted, #536273); overflow-wrap: anywhere; font-weight: normal; text-transform: none; }

@media (forced-colors: active) {
  .alss-option.alss-active { outline-color: Highlight; }
  .alss-option[aria-selected="true"] { border-inline-start-color: Highlight; }
}
