.ss-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 70;
    max-height: min(420px, 70vh);
    overflow-y: auto;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(23, 23, 23, 0.16);
    padding: 8px;
}

.ss-dropdown[hidden] {
    display: none;
}

.ss-state {
    padding: 12px 14px;
    color: #737373;
    font-size: 13px;
}

.ss-group + .ss-group {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f5f5f5;
}

.ss-group-label {
    padding: 6px 8px 4px;
    color: #a3a3a3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ss-item {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #262626;
    text-align: left;
    cursor: pointer;
}

.ss-item:hover,
.ss-item.is-active {
    background: #fef2f2;
}

.ss-icon-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #dd030e;
}

.ss-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.ss-title {
    overflow: hidden;
    color: #171717;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss-meta {
    overflow: hidden;
    color: #737373;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss-type-badge {
    border-radius: 999px;
    background: #f5f5f5;
    color: #525252;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    padding: 6px 8px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .ss-dropdown {
        max-height: 62vh;
    }

    .ss-title {
        white-space: normal;
    }

    .ss-type-badge {
        display: none;
    }
}
