.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.select-trigger:hover:not(:disabled) { border-color: #9baa9b; }
.select-trigger[aria-expanded="true"] { border-color: #789583; background: #fcfdf8; }
.select-trigger:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.select-trigger[aria-invalid="true"] { border-color: var(--orange); }
.select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-trigger svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}
.select-trigger[aria-expanded="true"] svg { transform: rotate(180deg); stroke: var(--green); }

.select-menu {
  position: fixed;
  z-index: 1000;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid #d5dcd0;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 10px 28px #24383114, 0 2px 6px #24383108;
  scrollbar-width: thin;
  scrollbar-color: #bac7b7 transparent;
  animation: select-appear .14s ease-out;
}
.select-menu[hidden] { display: none; }
.select-option {
  position: relative;
  padding: 10px 36px 10px 12px;
  border-radius: 5px;
  color: var(--ink);
  font: 400 12px/1.65 var(--body);
  overflow-wrap: anywhere;
  cursor: pointer;
}
.select-option[aria-selected="true"] { background: var(--green-pale); color: var(--green); font-weight: 600; }
.select-option[aria-selected="true"]::after {
  content: '';
  position: absolute;
  right: 15px;
  top: calc(50% - 5px);
  width: 6px;
  height: 10px;
  border: solid var(--green);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}
.select-option.is-active { background: #f0f2ea; box-shadow: inset 2px 0 #789583; }
.select-option.is-active[aria-selected="true"] { background: #e2eadd; }
.select-option[aria-disabled="true"] { color: var(--muted); opacity: .5; cursor: not-allowed; }
.filter-bar>label:not(.search) { min-width: 0; max-width: 260px; }
.filter-bar .select-trigger { gap: 10px; }

@keyframes select-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 640px) {
  .select-trigger { padding: 10px; gap: 8px; }
  .select-option { min-height: 44px; display: flex; align-items: center; }
  .select-option[hidden] { display: none; }
  .filter-bar .select-trigger { font-size: 11px; }
  .filter-bar>label:not(.search) { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .select-trigger, .select-trigger svg { transition: none; }
  .select-menu { animation: none; }
}
