.themed-select {
  display: inline-flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}
.themed-select select.themed-select-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  max-width: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip-path: inset(50%) !important;
}
.themed-select .themed-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  cursor: pointer;
}
.themed-select-trigger::after {
  content: '';
  width: .4rem;
  height: .4rem;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
  flex-shrink: 0;
}
.themed-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.themed-select .themed-select-trigger:hover,
.themed-select .themed-select-trigger[aria-expanded="true"] { border-color: var(--cyan); }
.themed-select .themed-select-trigger:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}
.themed-select .themed-select-trigger:disabled { opacity: .55; cursor: not-allowed; }
.themed-select-menu {
  position: fixed;
  z-index: 10010;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .35rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font: inherit;
  font-size: .875rem;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.themed-select-menu[hidden] { display: none; }
.themed-select-option {
  padding: .65rem .75rem;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 2px;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.themed-select-option[aria-selected="true"] { color: var(--cyan); background: var(--cyan-subtle); font-weight: 700; }
.themed-select-option[aria-disabled="false"]:hover,
.themed-select-option[data-highlighted="true"] { border-color: var(--cyan); background: var(--cyan-subtle); }
.themed-select-option[aria-disabled="true"] { color: var(--text-muted); cursor: not-allowed; }
.themed-select-group { padding: .6rem .75rem .25rem; color: var(--text-secondary); font-size: .75rem; }
.themed-select-error { color: var(--red); font-size: .8rem; line-height: 1.5; margin-top: .35rem; white-space: normal; }
.themed-select-error[hidden] { display: none; }
.appearance-picker .themed-select { width: 140px; font-size: .75rem; }
.toolbar > .themed-select { width: 200px; min-width: min(180px, 100%); max-width: 100%; }
html[data-appearance="hackerman"] :is(.themed-select-trigger, .themed-select-menu) { border-radius: 0; }
html[data-appearance="pretty-pink"] :is(.themed-select-trigger, .themed-select-menu) { border-radius: 12px; }
@media (max-width: 600px) {
  .appearance-picker .themed-select { width: 124px; }
  .themed-select .themed-select-trigger { font-size: 1rem; }
  .appearance-picker .themed-select-trigger { font-size: .75rem; }
}
