/* ServerNox dropdown standard: one selector surface across desktop and phones. */
.panel-select-native[hidden] { display: none !important; }
.panel-select-trigger { min-width: 0; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--bg); text-align: left; font-weight: 500; }
.panel-select-trigger:hover { background: var(--selected-bg); border-color: var(--cyan); }
.panel-select-trigger:disabled { opacity: .45; cursor: not-allowed; }
.panel-select-trigger[aria-expanded="true"] { border-color: var(--cyan); }
.panel-select-trigger > svg { color: var(--muted); width: 16px; height: 16px; transition: transform .15s; }
.panel-select-trigger[aria-expanded="true"] > svg { transform: rotate(180deg); }
.panel-select-value { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
label > .panel-select-trigger { display: flex; width: 100%; margin-top: 6px; }
.filters .panel-select-trigger { flex: 0 1 200px; }
.panel-select-layer { position: relative; z-index: 11000; }
.panel-select-popup { position: fixed; z-index: 11001; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 20px 60px rgba(0,0,0,.24); animation: selector-appear .12s ease-out; }
/* JS updates this external rule through CSSOM, preserving the strict CSP. */
.panel-select-popup-position { left: 12px; top: 12px; width: 260px; max-height: min(480px, calc(100dvh - 24px)); }
.panel-select-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex: none; }
.panel-select-header > div { min-width: 0; }
.panel-select-title { display: block; color: var(--text); font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.panel-select-count { display: block; font-size: 11px; color: var(--muted); margin: 2px 0 0; }
.panel-select-close { min-height: 36px; width: 36px; padding: 8px; border: 1px solid var(--secondary-line); background: var(--secondary); color: var(--secondary-text); border-radius: 12px; flex: none; transition: background .15s, border-color .15s, color .15s; }
.panel-select-close:hover { color: var(--nav-active); background: var(--selected-bg); border-color: var(--selected-line); }
.panel-select-layer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-select-trigger > svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-select-list { padding: 6px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.panel-select-option { display: flex; width: 100%; min-height: 44px; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; font-weight: 400; text-align: left; font-size: 14px; }
.panel-select-option:hover, .panel-select-option:focus-visible { background: var(--bg); }
.panel-select-option:focus-visible { outline-offset: -2px; }
.panel-select-option[aria-selected="true"] { background: color-mix(in srgb, var(--cyan) 12%, var(--panel)); color: var(--cyan); font-weight: 600; }
.panel-select-option:disabled { opacity: .4; cursor: not-allowed; }
.panel-select-option-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.panel-select-search { position: relative; flex: none; padding: 8px; }
.panel-select-search > svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.panel-select-search > input { width: 100%; min-height: 40px; padding: 8px 12px 8px 36px; border-radius: 12px; font-size: 14px; }
.panel-select-group { padding: 10px 12px 4px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.panel-select-empty { padding: 18px 12px; text-align: center; color: var(--muted); font-size: 13px; }
.panel-select-backdrop { position: fixed; inset: 0; z-index: 11000; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: rgba(0,0,0,.35); backdrop-filter: blur(1px); cursor: default; }
.panel-select-backdrop:hover { background: rgba(0,0,0,.35); }
.panel-select-backdrop:active { transform: none; }
body.panel-select-open { overflow: hidden; }
@keyframes selector-appear { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width:639px) {
  .panel-select-popup-position { left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 76px); width: auto; max-height: min(544px, calc(100dvh - env(safe-area-inset-top) - 100px)); }
  .filters .panel-select-trigger { flex: 1 1 100%; }
}
@media(prefers-reduced-motion:reduce) { .panel-select-popup { animation: none; } .panel-select-trigger > svg { transition: none; } }

.panel-select-trigger{display:inline-flex;align-items:center;min-height:44px;border:1px solid var(--line);border-radius:12px;max-width:100%;color:var(--text)}.panel-select-option{color:var(--text)}.panel-select-trigger:focus-visible,.panel-select-option:focus-visible{outline:2px solid var(--cyan)}

/* Public product pages use the same selector with their shared appearance tokens. */
html[data-nox-appearance] .panel-select-layer,
html[data-nox-appearance] .panel-select-trigger {
  --bg:var(--nox-bg);--panel:var(--nox-surface);--text:var(--nox-text);
  --muted:var(--nox-muted);--line:var(--nox-line);--cyan:var(--nox-action);
  --selected-bg:color-mix(in srgb,var(--nox-action) 12%,var(--nox-surface));
  --secondary:var(--nox-raised);--secondary-line:var(--nox-line);
  --secondary-text:var(--nox-text);--selected-line:var(--nox-action);--nav-active:var(--nox-action);
}
.panel-select-trigger,.panel-select-layer,.panel-select-layer * { box-sizing:border-box; }
.panel-select-trigger,.panel-select-layer button,.panel-select-layer input { font-family:inherit;line-height:1.5;margin:0; }
.panel-select-trigger { cursor:pointer;font-size:inherit; }
.panel-select-layer button { cursor:pointer;box-shadow:none;letter-spacing:normal;text-transform:none; }
.panel-select-layer .panel-select-close { display:flex;align-items:center;justify-content:center;min-height:44px;width:44px; }
.panel-select-layer .panel-select-search input { background:var(--bg);color:var(--text);border:1px solid var(--line); }
.panel-select-layer .panel-select-option:active { transform:none; }
