.panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 768px) {
    .panel {
        width: 100%;
        max-width: unset;
        height: fit-content;
        overflow: unset;
    }
}

.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 6px;
}

.count {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.sortBar {
    display: flex;
    flex-direction: row;
    gap: 2px;
    flex-wrap: wrap;
}

.sortActive {
    color: var(--accent) !important;
    background: var(--bg-active) !important;
}

.list {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    align-content: start;
    gap: 8px;
    padding: 10px;
}