.hm-icons-selector {
    display: grid;
    gap: 0.9rem;
}

.hm-icons-selector-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 56px;
}

.hm-icons-selector-trigger {
    width: 56px;
    height: 56px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.hm-icons-selector-trigger img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hm-icons-selector-meta {
    display: grid;
    gap: 0.18rem;
}

.hm-icons-selector-title {
    margin: 0;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 800;
}

.hm-icons-selector-text {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
}

.hm-icons-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 0.65rem;
}

.hm-icons-selector-item {
    appearance: none;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    min-height: 64px;
    padding: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.hm-icons-selector-item:hover {
    transform: translateY(-1px);
    border-color: #93c5fd;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.hm-icons-selector-item.is-active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18), 0 10px 22px rgba(15, 23, 42, 0.1);
}

.hm-icons-selector-item img {
    width: 100%;
    height: 100%;
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
}

.hm-icons-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hm-icons-swatch {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: var(--swatch, #3b82f6);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.9);
}
