﻿.stable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    align-items: start;
}

html.mobile-layout .stable-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
}

.stable-card {
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 3px 10px rgba(0,0,0,.06);
    background-color: white;
    border: 1px solid var(--border-color);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .stable-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 3px 10px rgba(0,0,0,.06);
    }

.stable-grid-separator {
    grid-column: 1 / -1;
}

.stable-badge {
    padding: 6px 12px;
    border-radius: 999px;
}

.stable-badge-section {
    margin-top: 12px;
    margin-bottom: 12px;
}

.stable-badge__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stable-card__header_no_trim {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 18px;
}

.stable-card__header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 18px;
}

    .stable-card__header div {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }

.stable-card__label {
    opacity: .7;
}

.stable-card__separator {
    border-top: 1px solid rgba(0,0,0,.1);
}

.stable-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,.1);
}

    .stable-card__row:last-child {
        border-bottom: none;
    }

.stable-actions {
    margin-top: 18px;
    padding-top: 12px;
}

.stable-actions__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.stable-actions__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

    .stable-actions__content.open {
        max-height: 500px;
    }

.stable-actions__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    margin-bottom: 12px;
}

.progress {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: #e5e7eb;
}

.progress__fill {
    height: 100%;
    background: linear-gradient( 90deg, #22c55e, #16a34a );
}

.telemetry-card--battery-warning {
    border-left: 6px solid #ef4444;
}

.telemetry-card--wifi-warning {
    border-right: 6px solid #f59e0b;
}