/* Mirrors Pilot Desk's current common/StyledSelect.tsx. */
.pilot-select {
  position: relative;
  width: 100%;
  min-width: 0;
}
.pilot-select[hidden], .pilot-select__popup[hidden] { display: none !important; }
.pilot-select > select.pilot-select__native {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.pilot-select__trigger {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.pilot-select__trigger[data-empty="true"] { color: var(--color-text-muted); }
.pilot-select__trigger:disabled { opacity: .5; cursor: not-allowed; }
.pilot-select__trigger:focus-visible {
  outline: 2px solid var(--color-focus, var(--color-primary));
  outline-offset: 2px;
}
.pilot-select__trigger[aria-invalid="true"] { border-color: var(--color-error, #ef4444); }
.pilot-select__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pilot-select__arrow {
  width: 14px;
  height: 14px;
  transform: rotate(0deg);
  transition: transform .15s ease;
  opacity: .6;
  flex-shrink: 0;
  margin-left: 8px;
}
.pilot-select__trigger[aria-expanded="true"] .pilot-select__arrow { transform: rotate(180deg); }
.pilot-select__popup {
  box-sizing: border-box;
  position: fixed;
  inset: auto;
  margin: 0;
  z-index: 100;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
  color: var(--color-text-primary);
  font-family: inherit;
  line-height: 1.5;
}
.pilot-select__option {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-primary);
  overflow-wrap: anywhere;
}
.pilot-select__option[aria-selected="true"] {
  background: var(--dark-primary-bg, rgba(52,169,83,.12));
  font-weight: 600;
}
.pilot-select__option[data-active="true"]:not([aria-selected="true"]) { background: rgba(0,0,0,.04); }
@media (hover: hover) {
  .pilot-select__option:hover:not([aria-selected="true"]):not([aria-disabled="true"]) { background: rgba(0,0,0,.04); }
}
.pilot-select__option[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.pilot-select__group-label {
  padding: 8px 10px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-text-muted);
}
.review-tools__body > .pilot-select { margin-bottom: 12px; }
@media (pointer: coarse), (max-width: 767px) {
  .pilot-select__trigger, .pilot-select__option { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .pilot-select__arrow { transition: none !important; }
}
