.ss-field { position: relative; width: 100%; }
select.ss-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.ss-control {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line, #d5deea);
    border-radius: 8px;
    background: #fff;
    padding: 6px 8px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}
.ss-field.ss-invalid .ss-control { border-color: #dc2626; }
.ss-control:hover, .ss-field.ss-open .ss-control { border-color: #93c5fd; }
.ss-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-value.is-empty { color: #94a3b8; }
.ss-caret { color: #64748b; font-size: 12px; }
.ss-clear {
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-radius: 99px;
    width: 22px;
    height: 22px;
    line-height: 1;
}
.ss-clear:hover { background: #f1f5f9; color: #0f172a; }
.ss-panel {
    position: fixed;
    z-index: 40;
    background: #fff;
    border: 1px solid var(--line, #e6edf5);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}
.ss-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line, #e6edf5);
    color: #64748b;
}
.ss-search input {
    width: 100%;
    border: 0;
    outline: none;
    font: inherit;
    background: transparent;
    color: inherit;
}
.ss-list { max-height: 240px; overflow: auto; padding: 4px; }
.ss-option, .ss-add, .ss-status {
    width: 100%;
    display: block;
    text-align: left;
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.ss-option:hover, .ss-option.is-active { background: #eef4ff; }
.ss-option.is-selected { font-weight: 750; }
.ss-option mark { background: #fef3c7; color: inherit; padding: 0 1px; border-radius: 2px; }
.ss-status { color: #64748b; cursor: default; }
.ss-add { color: #2563eb; font-weight: 750; border-top: 1px solid var(--line, #e6edf5); border-radius: 0; }
.ss-add:hover { background: #f8fafc; }
.ss-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.35);
    display: grid;
    place-items: center;
    padding: 16px;
}
.ss-modal[hidden] { display: none; }
.ss-modal-card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
.ss-modal-card h2 { margin: 0 0 12px; font-size: 16px; }
.ss-modal-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.ss-modal-card input {
    border: 1px solid var(--line, #d5deea);
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
}
.ss-modal-error { color: #dc2626; font-weight: 650; margin: 8px 0 0; }
.ss-modal-actions { display: flex; gap: 8px; margin-top: 12px; }
.ss-modal-actions button, .ss-full {
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 750;
    cursor: pointer;
}
.ss-save { background: #2563eb; color: #fff; border: 0; }
.ss-cancel { background: #fff; border: 1px solid var(--line, #d5deea); }
.ss-full { display: inline-block; margin-top: 10px; color: #2563eb; }
.ss-switch-search {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line, #e6edf5);
    border-radius: 8px;
    padding: 6px 8px;
    margin-bottom: 6px;
    color: #64748b;
}
.ss-switch-search input { width: 100%; border: 0; outline: none; font: inherit; background: transparent; }
.switcher-menu button.is-active { background: #eef4ff; }
