/* Gemeinsame Dropdowns; Farben und Kontraste folgen dem globalen Theme. */
.studly-select { position:relative; display:inline-flex; flex-wrap:wrap; width:100%; min-width:0; color:var(--color-text); }
.studly-select>select[hidden], .studly-select-options[hidden], .studly-select-option[hidden], .studly-select-error[hidden] { display:none; }
.studly-select-trigger { display:flex; align-items:center; justify-content:space-between; gap:.75rem; width:100%; min-width:0; min-height:2.875rem; padding:.625rem .75rem; border:1px solid var(--color-control-border); border-radius:.375rem; background:var(--color-background); color:inherit; font:inherit; text-align:left; cursor:pointer; }
.studly-select-trigger:focus-visible { outline:2px solid var(--color-accent); outline-offset:3px; }
.studly-select-trigger[aria-expanded=true], .studly-select-trigger[aria-invalid=true] { border-color:var(--color-accent); }
.studly-select-trigger:disabled { color:var(--color-muted); background:var(--color-surface); cursor:default; }
.studly-select-label { display:inline-flex; align-items:center; gap:8px; min-width:0; overflow-wrap:anywhere; }
.studly-select-icon { flex:none; width:1.0625rem; height:1.0625rem; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.studly-select-trigger>.studly-select-icon { color:var(--color-muted); }
.studly-select-trigger[aria-expanded=true]>.studly-select-icon { transform:rotate(180deg); }
.studly-select-options { position:absolute; z-index:20; inset:calc(100% + 6px) 0 auto; width:100%; max-height:min(14.5rem,40dvh); overflow-y:auto; overscroll-behavior:contain; padding:.3125rem; border:1px solid var(--color-option-border); border-radius:.4375rem; background:var(--color-background); box-shadow:0 6px 20px var(--color-shadow); }
.studly-select-options.studly-select-opens-up { inset:auto 0 calc(100% + 6px); }
.studly-select-option { display:flex; align-items:center; justify-content:space-between; gap:.75rem; width:100%; min-height:44px; padding:9px 10px; border:0; border-radius:4px; font:inherit; font-size:.875rem; line-height:1.5; color:var(--color-text); background:var(--color-background); text-align:left; cursor:pointer; }
.studly-select-option:hover, .studly-select-option-active { background:var(--color-surface); }
.studly-select-option[aria-selected=true] { color:var(--color-accent); font-weight:550; background:var(--color-accent-tint); }
.studly-select-option:disabled { color:var(--color-muted); cursor:default; }
.studly-select-option>.studly-select-icon { visibility:hidden; }
.studly-select-option[aria-selected=true]>.studly-select-icon { visibility:visible; }
.studly-select-group { padding:.5rem .625rem; font-weight:600; color:var(--color-muted); }
.studly-select-error { width:100%; margin-top:.375rem; color:var(--color-error); font-size:.8125rem; }
@media (forced-colors:active) {
    .studly-select-option-active, .studly-select-option[aria-selected=true] { outline:1px solid Highlight; }
}
