.lui-select__native {
  position: fixed !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip-path: inset(50%) !important;
}

button.lui-select__trigger {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lui-space-2, 0.5rem);
  width: 100%;
  max-width: 100%;
  min-height: var(--lui-control-height, 2.75rem);
  margin: 0;
  border: 1px solid var(--lui-color-border-strong, var(--border-color, #b8c7d6));
  border-radius: var(--lui-radius-md, 0.75rem);
  padding: 0.55rem 0.75rem;
  appearance: none;
  background: var(--lui-color-surface, var(--surface, var(--card-bg, var(--lui-select-surface-fallback, #fff))));
  color: var(--lui-color-text, var(--text-primary, var(--text, var(--lui-select-text-fallback, #172033))));
  font: inherit;
  font-weight: inherit;
  line-height: 1.35;
  letter-spacing: inherit;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button.lui-select__trigger:hover {
  border-color: var(--lui-color-brand-border, var(--primary, #4c92c7));
}

button.lui-select__trigger:focus-visible,
button.lui-select__trigger[aria-expanded="true"] {
  border-color: var(--lui-color-brand-600, var(--primary, #2278bb));
  outline: 0;
  box-shadow: var(--lui-focus-ring, 0 0 0 3px rgb(34 120 187 / 26%));
}

button.lui-select__trigger:disabled {
  background: var(--lui-color-surface-disabled, var(--muted-bg, #f1f5f9));
  color: var(--lui-color-text-disabled, var(--muted, #7e8b98));
  cursor: not-allowed;
}

button.lui-select__trigger.is-invalid {
  border-color: var(--lui-color-danger, var(--danger, #b42318));
}

button.lui-select__trigger.is-placeholder {
  color: var(--lui-color-text-subtle, var(--muted, #65758b));
}

.lui-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lui-select__chevron {
  flex: none;
  font-size: 1.1em;
  line-height: 1;
  transition: transform 120ms ease;
}

.lui-select__trigger[aria-expanded="true"] .lui-select__chevron {
  transform: rotate(180deg);
}

.lui-select__panel {
  box-sizing: border-box;
  position: fixed;
  z-index: 2147483000;
  max-width: calc(100vw - 16px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--lui-color-border-strong, var(--border-color, #b8c7d6));
  border-radius: var(--lui-radius-md, 0.75rem);
  padding: 0.3rem;
  background: var(--lui-color-surface, var(--surface, var(--card-bg, var(--lui-select-surface-fallback, #fff))));
  color: var(--lui-color-text, var(--text-primary, var(--text, var(--lui-select-text-fallback, #172033))));
  box-shadow: var(--lui-shadow-panel, 0 8px 28px rgb(18 63 104 / 16%));
  font: inherit;
  -webkit-overflow-scrolling: touch;
}

.lui-select__panel[hidden] {
  display: none !important;
}

.lui-select__group {
  padding: 0.55rem 0.65rem 0.25rem;
  color: var(--lui-color-text-subtle, var(--muted, #65758b));
  font-size: var(--lui-font-size-xs, 0.75rem);
  font-weight: 750;
}

.lui-select__option {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  overflow: hidden;
  border-radius: var(--lui-radius-sm, 0.5rem);
  padding: 0.5rem 0.65rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}

.lui-select__option:hover,
.lui-select__option.is-active {
  background: var(--lui-color-brand-surface, var(--primary-soft, #e8f4f1));
}

.lui-select__option[aria-selected="true"] {
  background: var(--lui-select-accent, var(--lui-color-success-700, #0f8f78));
  color: #fff;
  font-weight: 750;
}

.lui-select__option[aria-selected="true"]:hover,
.lui-select__option[aria-selected="true"].is-active {
  background: var(--lui-select-accent-hover, #087765);
}

.lui-select__option.is-disabled {
  color: var(--lui-color-text-disabled, var(--muted, #7e8b98));
  cursor: not-allowed;
  opacity: 0.72;
}

:where(html[data-theme="dark"], html[data-color-scheme="dark"], html.dark, body[data-theme="dark"], body[data-color-scheme="dark"], body.dark, body.dark-mode) {
  --lui-select-surface-fallback: #172033;
  --lui-select-text-fallback: #eef4fb;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-color-scheme="light"]):not(.light)
    body:not([data-theme="light"]):not([data-color-scheme="light"]):not(.light) {
    --lui-select-surface-fallback: #172033;
    --lui-select-text-fallback: #eef4fb;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lui-select__chevron {
    transition: none;
  }
}
