/* Ticket 05 (D-04): the catalogue browsing surface. The overlay/modal shell
   itself is styles/app.css's .sym-picker-overlay / .versions-modal (already
   the Trash and Feedback modals' shell) — this file only styles what this
   feature adds. Deliberately its own grid, not a reuse of the Symbols
   panel's .hosted-asset-item/.symbols-grid: D-04 keeps the catalogue a
   separate surface, never rendered inside the library. */

.catalogue-modal {
    width: min(620px, 95vw);
    max-height: 85vh;
    overflow-y: auto;
}

.catalogue-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.catalogue-modal-head h3 {
    margin: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalogue-modal-intro {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--text-muted);
}

.catalogue-status {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.catalogue-status.error-text {
    color: var(--danger);
}

.catalogue-groups {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.catalogue-section-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.catalogue-empty-text {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 12.5px;
    color: var(--text-dim);
}

.catalogue-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
}

.catalogue-card-thumb {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.catalogue-card-thumb img {
    max-width: 82%;
    max-height: 82%;
}

.catalogue-card-name {
    font-size: 12.5px;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalogue-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.catalogue-card-badge {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--success);
}

.catalogue-card-add {
    padding: 4px 9px;
    font-size: 12px;
    white-space: nowrap;
}
