select[data-themed-select] { display: none !important; }
.themed-select-error { display: none; }
.themed-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; width: 100%; min-height: 44px; padding: 10px 14px; font-size: 14px; font-weight: 400; text-align: left; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--card-strong); }
.themed-select-trigger > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.themed-select-trigger > :last-child { flex: 0 0 auto; color: var(--accent); }
.themed-select-trigger:hover { transform: none; }
.themed-select-trigger:disabled { cursor: not-allowed; }
.themed-select-trigger[aria-expanded=true] { border-color: var(--accent); }
.themed-select-trigger[aria-expanded=true] > :last-child { transform: rotate(180deg); }
.themed-select-trigger[aria-invalid=true] { border-color: var(--danger); }
.themed-select-error:not([hidden]) { display: block; color: var(--danger); font-size: 12px; }
.theme-select .themed-select-trigger { width: auto; max-width: 115px; min-height: 36px; padding: 4px 10px; font-size: 12px; }
.themed-select-dialog { position: fixed; inset: auto; z-index: 80; box-sizing: border-box; color: var(--ink); background: var(--navigation-surface, var(--paper-strong)); width: 224px; max-width: calc(100vw - 24px); max-height: 360px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 16%, #16233218); margin: 0; }
.themed-select-dialog h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.themed-select-options { display: grid; gap: 2px; max-height: 358px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; scrollbar-width: thin; }
.themed-select-options button { display: flex; align-items: center; gap: 12px; justify-content: space-between; text-align: left; min-height: 44px; width: 100%; border-radius: 8px; padding: 10px 12px; font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--ink); background: transparent; }
.themed-select-options button > :first-child { min-width: 0; overflow-wrap: anywhere; }
.themed-select-options button:hover, .themed-select-options button:focus-visible, .themed-select-options button[aria-selected=true] { color: var(--accent-strong); background: var(--theme-soft); transform: none; }
.themed-select-check { flex: 0 0 18px; color: var(--accent); }
.themed-select-group { margin: 8px 12px 2px; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .theme-select .themed-select-trigger { width: auto; max-width: 170px; min-height: 40px; padding: 8px 10px; font-size: 12px; }
}
