.card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color var(--transition);

    &:hover {
        border-color: var(--bg-active);
    }
}

.own {
    border-color: var(--accent-alt) !important;
}

.maintenanceBorder {
    border-color: var(--yellow) !important;
}

.ownBadge {
    background: var(--accent-alt);
    color: var(--text-dark);
}

.offline {
    opacity: 0.5;
}

.header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.name {
    font-weight: bold;
    color: var(--text);
    font-size: 13px;
    word-break: break-word;
}

.hasInfo {
    cursor: pointer;

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

.infoToggle {
    color: var(--text-muted);
    font-size: 10px;
}

.badges {
    display: flex;
    flex-direction: row;
    gap: 4px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.badge {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 2px;
    font-weight: bold;
    text-transform: uppercase;
}

.maintenance {
    background: var(--yellow);
    color: var(--text-dark);
}

.trusted {
    background: var(--accent);
    color: var(--text-dark);
}

.info {
    font-size: 12px;
    color: var(--text-dim);
    background: var(--bg-active);
    border-radius: var(--radius);
    padding: 6px 8px;
    white-space: pre-wrap;
    word-break: break-word;
}

.models {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
}

.model {
    font-size: 11px;
    background: var(--bg-active);
    border-radius: 2px;
    padding: 1px 5px;
    color: var(--text-dim);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.detail {
    dt {
        font-size: 10px;
        color: var(--text-muted);
    }

    dd {
        font-size: 12px;
        color: var(--text-dim);
    }
}