/* Searchable dropdowns (public/js/searchable-select.js). The select keeps its
   look; clicks go to the script, which opens .ss-panel at the end of <body>.
   Shared by both layouts, so colours fall back from app.css's tokens to
   auth.css's. */
html.ss-on select:not([multiple]):not([data-native]) { pointer-events: none; }

.ss-panel {
    position: fixed; z-index: 10000; display: flex; flex-direction: column;
    background: var(--surface, var(--card-bg, #fff)); color: var(--ink, #1f2937);
    border: 1px solid var(--line, #e5e7eb); border-radius: 10px;
    box-shadow: 0 12px 32px var(--shadow-lg, rgba(17, 24, 39, .16));
    overflow: hidden; font-size: 0.92rem; outline: none;
}
.ss-search {
    flex: none; margin: 8px; padding: 0.5em 0.7em; font: inherit; color: inherit;
    background: var(--surface-2, var(--field-bg, #f9fafb)); border: 1px solid var(--line, #e5e7eb);
    border-radius: 8px; outline: none;
}
.ss-search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.ss-list { list-style: none; margin: 0; padding: 0 6px 6px; overflow-y: auto; flex: 1 1 auto; overscroll-behavior: contain; }
.ss-option { padding: 0.5em 0.7em; border-radius: 6px; cursor: pointer; line-height: 1.35; }
.ss-option.is-active { background: var(--brand-ring); }
.ss-option.is-selected { font-weight: 600; color: var(--brand); }
.ss-option.is-disabled { color: var(--muted, #6b7280); cursor: default; background: none; }
.ss-group { padding: 0.6em 0.7em 0.25em; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6b7280); }
.ss-empty { margin: 0; padding: 0.4em 1em 0.9em; color: var(--muted, #6b7280); }
