/* Keep the real form control, including validation and programmatic updates. */
html body select:not([multiple]):not([size]),
html body select[size="1"] {
  appearance: none;
  border: 1px solid var(--border2, #d6deea);
  border-radius: 10px;
  background-color: var(--surface, #fff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238694a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding: 9px 34px 9px 12px;
  color: var(--text, #172338);
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
html body select:not([multiple]):hover { border-color: var(--accent, #2563eb); }
html body select:focus-visible, html body select[aria-expanded="true"] {
  outline: none;
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 3px var(--accent-s2, #2563eb20);
}
html body select:disabled { opacity: .55; cursor: not-allowed; }
.blyp-select-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 6px;
  box-sizing: border-box;
  z-index: 2147483000;
  border: 1px solid var(--border, #dde4ee);
  border-radius: 13px;
  background: var(--surface, #fff);
  color: var(--text, #172338);
  box-shadow: 0 12px 36px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .06);
  font: 400 .85rem/1.4 var(--font, sans-serif);
  overflow: hidden;
}
.blyp-select-search {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 5px;
  padding: 9px 11px;
  border: 1px solid var(--border, #dde4ee);
  border-radius: 8px;
  background: var(--surface2, #f4f7fb);
  color: inherit;
  font: inherit;
  outline: none;
}
.blyp-select-search:focus { border-color: var(--accent, #2563eb); }
.blyp-select-options { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.blyp-select-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 37px;
  padding: 8px 10px;
  box-sizing: border-box;
  border-radius: 8px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.blyp-select-option span { flex: 1; min-width: 0; }
.blyp-select-option svg { width: 16px; height: 16px; flex-shrink: 0; }
.blyp-select-option[aria-selected="true"] { color: color-mix(in srgb, var(--accent, #2563eb) 72%, var(--text, #172338)); font-weight: 650; }
.blyp-select-option.is-active { background: var(--accent-s2, #2563eb12); }
.blyp-select-option[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.blyp-select-group, .blyp-select-empty { padding: 9px 10px; color: var(--text3, #8290a4); font-size: .75rem; }
.blyp-select-group { font-weight: 700; }
@media (max-width: 760px) {
  .blyp-select-option { min-height: 44px; }
  .blyp-select-search { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html body select { transition: none !important; }
}
