.select-native { display: none !important; }
.select-trigger { display: block; text-align: left; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.language-select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23909090' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; }
.language-select:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.language-select:disabled { opacity: .6; cursor: not-allowed; }
.select-menu { position: fixed; z-index: 300; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 5px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 8px 30px rgba(0,0,0,.16); }
.select-option { padding: 9px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-option.active { background: var(--surface-2); }
.select-option[aria-selected="true"] { color: var(--primary); font-weight: 600; }
.select-option[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.select-option-badge { display: inline-block; margin-inline-start: 6px; padding: 1px 5px; border-radius: 4px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-size: 11px; font-weight: 600; vertical-align: middle; }

/* Shared by both pages, including native controls and dynamically added panels. */
:root { color-scheme: light; --scroll-thumb: color-mix(in srgb, var(--muted) 48%, transparent); --scroll-thumb-hover: color-mix(in srgb, var(--muted) 76%, transparent); }
:root[data-theme="dark"] { color-scheme: dark; }
* { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track, *::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-thumb { background-color: var(--scroll-thumb); border: 2px solid transparent; border-radius: 999px; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-thumb-hover); }
