:root { --select-pop:rgba(255,255,255,.88); --select-shadow:0 20px 50px rgba(0,0,0,.18); }
@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) { --select-pop:rgba(28,28,30,.9); --select-shadow:none; }
}
:root[data-theme="dark"] { --select-pop:rgba(28,28,30,.9); --select-shadow:none; }
.select-menu-trigger,.select-menu-list { display:none; }
@media(hover:hover) and (pointer:fine) {
  select.select-menu-native { display:none !important; }
  button.select-menu-trigger {
    display:inline-flex; align-items:center; justify-content:space-between; gap:14px;
    height:42px; min-height:42px; min-width:0; max-width:100%; padding:0 12px;
    border:1px solid var(--line); border-radius:12px; background:var(--card); color:var(--ink);
    font:inherit; font-size:13px; text-align:left; cursor:pointer;
  }
  .export-popover .select-menu-trigger { max-width:190px; }
  .select-menu-trigger span { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .select-menu-trigger::after { content:''; flex:none; width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-2px) rotate(45deg); opacity:.65; }
  button.select-menu-trigger:focus-visible { outline:0; box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent); }
  .select-menu-trigger:hover { border-color:color-mix(in srgb,var(--accent) 25%,var(--line)); }
  .select-menu-list {
    display:block; position:fixed; inset:auto; z-index:100; margin:0; padding:6px;
    box-sizing:border-box; max-width:calc(100vw - 16px); max-height:292px; overflow:auto;
    overscroll-behavior:contain; border:1px solid var(--line); border-radius:16px;
    color:var(--ink); background:var(--select-pop); box-shadow:var(--select-shadow);
    backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
    font:13px/1.5 Onest,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  }
  .select-menu-list[hidden],.select-menu-trigger[hidden] { display:none; }
  .select-menu-option { position:relative; height:40px; padding:10px 32px 10px 10px; border-radius:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; cursor:pointer; }
  .select-menu-option.is-active,.select-menu-option:hover { background:var(--pill); }
  .select-menu-option[aria-selected=true] { background:var(--accent-bg); }
  .select-menu-option[aria-selected=true]::after { content:'✓'; position:absolute; right:10px; color:var(--accent); }
  .select-menu-option[aria-disabled=true] { opacity:.4; cursor:default; }
}
@media(prefers-reduced-motion:reduce) { .select-menu-trigger,.select-menu-list,.select-menu-option { animation:none; transition:none; } }
