.panel {
    width: 520px;
    min-width: 320px;
    max-width: 50dvw;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 16px;
    gap: 16px;
}

@media (max-width: 768px) {
    .panel {
        width: 100%;
        max-width: unset;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

.sectionTitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.username {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-alt);
    margin-bottom: 10px;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat {
    background: var(--bg-active);
    border-radius: var(--radius);
    padding: 8px 10px;

    dt {
        font-size: 11px;
        color: var(--text-muted);
        margin-bottom: 2px;
    }

    dd {
        font-size: 14px;
        color: var(--text);
        font-weight: bold;
    }
}

.userStats,
.networkStats {
    display: flex;
    flex-direction: column;
}

.modelsSection {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.tableWrapper {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

.table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 12px;

    th,
    td {
        padding: 5px 6px;
        text-align: left;
        border-bottom: 1px solid var(--border);
    }

    th {
        color: var(--text-muted);
        cursor: pointer;
        user-select: none;
        white-space: nowrap;
        position: sticky;
        top: 0;
        background: var(--bg-panel);

        &:hover {
            color: var(--text);
        }
    }

    td {
        color: var(--text-dim);
        overflow-wrap: break-word;
    }

    tr:hover td {
        color: var(--text);
        background: var(--bg-hover);
    }
}

.ownModel td {
    color: var(--accent-alt) !important;
}

.colNum {
    width: 52px;
    text-align: right;
    white-space: nowrap;
}