/* Progressive enhancement only: native controls remain usable without JS. */
select[data-ed-select][hidden] { display: none !important; }
.ed-select { display: block; width: 100%; min-width: 0; }
.ed-select .ed-select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-sizing: border-box; width: 100%; min-height: 44px; margin: 0;
  padding: 10px 12px; border: 1px solid var(--ed-control, #898174); border-radius: 6px;
  background: var(--ed-surface, #fffdf8); color: var(--ed-ink, #292722);
  font: inherit; line-height: 1.4; text-align: left; cursor: pointer; box-shadow: none;
}
.ed-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-select-trigger::after {
  content: ''; flex: 0 0 7px; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.ed-select-trigger[aria-expanded='true']::after { transform: translateY(2px) rotate(225deg); }
.ed-select .ed-select-trigger:hover:not(:disabled), .ed-select-trigger[aria-expanded='true'] {
  border-color: var(--ed-accent, #365a2c);
}
.ed-select .ed-select-trigger:focus-visible {
  outline: 3px solid var(--ed-accent, #365a2c); outline-offset: 3px;
}
.ed-select .ed-select-trigger:disabled { opacity: .58; cursor: not-allowed; }
.ed-select-list {
  position: fixed; z-index: 10000; box-sizing: border-box; overflow-y: auto;
  overscroll-behavior: contain; max-height: 280px; padding: 4px;
  border: 1px solid var(--ed-control, #898174); border-radius: 6px;
  background: var(--ed-surface, #fffdf8); color: var(--ed-ink, #292722);
  box-shadow: 0 8px 24px #29272218; font: inherit;
}
.ed-select-list[hidden], .ed-select-option[hidden] { display: none !important; }
.ed-select-option {
  display: flex; align-items: center; gap: 10px; min-height: 44px; box-sizing: border-box;
  padding: 9px 10px; border-radius: 4px; line-height: 1.4; cursor: pointer;
  white-space: normal; overflow-wrap: anywhere;
}
.ed-select-option::after { content: ''; margin-left: auto; flex: 0 0 12px; }
.ed-select-option[aria-selected='true']::after { content: '✓'; color: var(--ed-accent, #365a2c); }
.ed-select-option.is-active, .ed-select-option:hover:not([aria-disabled='true']) { background: var(--ed-green, #d2e5b8); }
.ed-select-option[aria-selected='true'] { color: var(--ed-accent, #365a2c); font-weight: 600; }
.ed-select-option.is-active { outline: 1px solid var(--ed-control, #898174); outline-offset: -1px; }
.ed-select-option[aria-disabled='true'] { opacity: .5; cursor: not-allowed; }
@media (forced-colors: active) {
  .ed-select-option.is-active { outline: 2px solid Highlight; }
  .ed-select-option[aria-selected='true']::after { color: Highlight; }
}
@media print { .ed-select-list { display: none !important; } }
