/* Native select semantics, with a shared control and progressive popup styling. */
select:not([multiple]):not([size]) {
  appearance: none;
  min-height: 44px;
  max-width: 100%;
  border: 1px solid #cde7e4;
  border-radius: 8px;
  padding: 10px 13px;
  padding-inline-end: 40px;
  background-color: #ffffff;
  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='%2355968f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  color: #34706a;
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
select:not([multiple]):not([size]):dir(ltr) {
  background-position: right 12px center;
}
select:not([multiple]):not([size]):hover:not(:disabled) {
  border-color: #3faba0;
}
select:not([multiple]):not([size]):focus,
select:not([multiple]):not([size]):focus-visible {
  outline: none;
  border-color: #3daea2;
  box-shadow: 0 0 0 3px rgb(15 118 110 / 12%);
}
select:not([multiple]):not([size]):disabled {
  background-color: #f1f8f7;
  border-color: #e0efee;
  color: #638884;
  cursor: not-allowed;
}
select option { color: #34706a; background: #ffffff; }
select option:disabled { color: #638884; }
@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: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: start;
    background-image: none;
    padding-inline-end: 13px;
    gap: 16px;
  }
  select:not([multiple]):not([size])::picker-icon {
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-inline-start: auto;
    content: "";
    background: center / 16px 16px no-repeat 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='%2355968f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    color: #55968f;
    transition: rotate .15s;
  }
  select:not([multiple]):not([size]):open::picker-icon { rotate: 180deg; }
  select:not([multiple]):not([size])::picker(select) {
    /* Keep the popup below its implicit select anchor; never flip upward. */
    top: calc(anchor(bottom) + 6px);
    bottom: auto;
    position-try-fallbacks: none;
    position-try-order: normal;
    margin-block: 0;
    padding: 6px;
    border: 1px solid #dbedec;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgb(36 75 70 / 14%);
    max-height: max(44px, min(320px, calc(100dvh - anchor(bottom) - 18px)));
    overflow-y: auto;
    scrollbar-width: thin;
  }
  select:not([multiple]):not([size]) option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 6px;
    font: inherit;
    cursor: pointer;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  select:not([multiple]):not([size]) option:checked {
    background: #f1f8f7;
    color: #38a095;
    font-weight: 600;
  }
  select:not([multiple]):not([size]) option:hover:not(:disabled),
  select:not([multiple]):not([size]) option:focus-visible {
    outline: none;
    background: #f2f9f8;
    color: #2f857d;
  }
  select:not([multiple]):not([size]) option:disabled {
    color: #638884;
    cursor: not-allowed;
  }
  select:not([multiple]):not([size]) option::checkmark { color: #0f766e; }
}
@media (prefers-reduced-motion: reduce) {
  select:not([multiple]):not([size]),
  select:not([multiple]):not([size])::picker-icon { transition: none; }
}
@media (forced-colors: active) {
  select:not([multiple]):not([size]) { appearance: auto; background-image: none; }
  select:not([multiple]):not([size]):focus-visible { outline: 2px solid Highlight; }
}
