/* Shared dropdown theme. Native select semantics retain forms, keyboard,
   accessibility, dynamic options and the browser's top-layer positioning. */
select:not([multiple]):not([size]) {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #c6d7cb;
  border-radius: 8px;
  background-color: #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='%23145b49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 36px;
  color: #203b34;
  min-height: 44px;
  cursor: pointer;
  transition: border-color .16s, box-shadow .16s, background-color .16s;
}
select:not([multiple]):not([size]):hover:not(:disabled) {
  border-color: #8bb19b;
  background-color: #fbfdfb;
}
select:not([multiple]):not([size]):focus-visible {
  outline: 2px solid #70ad95;
  outline-offset: 2px;
  border-color: #397b60;
}
select:disabled { cursor: not-allowed; opacity: .55; background-color: #f1f5f2; }

@supports (appearance: base-select) {
  select:not([multiple]):not([size]),
  select:not([multiple]):not([size])::picker(select) { appearance: base-select; }
  select:not([multiple]):not([size]) {
    display: flex;
    align-items: center;
    gap: 10px;
    background-image: none;
    padding-right: 12px;
  }
  select::picker-icon {
    color: #44745d;
    margin-inline-start: auto;
    transition: rotate .16s;
  }
  select:open { border-color: #397b60; box-shadow: 0 0 0 3px #145b4912; }
  select:open::picker-icon { rotate: 180deg; }
  select::picker(select) {
    margin-block: 6px;
    padding: 5px;
    border: 1px solid #c6d7cb;
    border-radius: 11px;
    background: #fff;
    color: #203b34;
    box-shadow: 0 12px 32px #173c3224, 0 2px 6px #173c320d;
    font: inherit;
    max-height: min(320px, 55dvh);
    max-width: calc(100vw - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b3c9bc transparent;
  }
  select option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 6px;
    background: transparent;
    color: #203b34;
    font: inherit;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
  }
  select option:checked { color: #145b49; background: #e8f3ed; font-weight: 600; }
  select option:hover:not(:disabled),select option:focus-visible {
    background: #edf5ef;
    outline: 2px solid #8bb19b;
    outline-offset: -2px;
  }
  select option::checkmark { color: #145b49; margin-inline-start: auto; order: 1; }
  select option:disabled { color: #839289; cursor: not-allowed; }
  select optgroup { padding: 4px; color: #586d65; font: inherit; font-weight: 600; }
}
@media (pointer: coarse) { select option { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { select,select::picker-icon { transition: none !important; } }
