body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #222;
}

.wrap {
    max-width: 1600px;
    margin: 0 auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subtle {
    color: #667085;
    font-size: 13px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border: 1px solid #d9e0ea;
    border-radius: 12px;
    padding: 18px;
}

.stat-label {
    color: #667085;
    font-size: 13px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
}

.text-critical {
    color: #b42318;
}

.text-warning {
    color: #b54708;
}

.card {
    background: #fff;
    border: 1px solid #d9e0ea;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.release-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.release-box {
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 16px;
    background: #fafcff;
}

.bulk-bar,
.action-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 16px;
}

.table-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.table-filters input,
.table-filters select,
.bulk-bar input,
.bulk-bar select {
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

table th,
table td {
    border: 1px solid #e6ebf2;
    padding: 10px;
    vertical-align: top;
    text-align: left;
    font-size: 14px;
}

table th {
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 1;
}

.site-cell {
    min-width: 220px;
}

.actions-col {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.error-cell {
    max-width: 260px;
    color: #b42318;
    font-size: 12px;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    background: #1f4b99;
    color: #fff;
}

.btn.small {
    padding: 6px 10px;
    font-size: 12px;
}

.btn-ghost {
    background: #eef4ff;
    color: #1d4ed8;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2f6;
    color: #344054;
    font-size: 12px;
    font-weight: 600;
    text-transform: lowercase;
}

.badge-critical {
    background: #fee4e2;
    color: #b42318;
}

.badge-warning {
    background: #fffaeb;
    color: #b54708;
}

.badge-ok {
    background: #ecfdf3;
    color: #027a48;
}

.badge-info {
    background: #eff8ff;
    color: #175cd3;
}

.score {
    font-weight: bold;
}

.score-critical {
    color: #b42318;
}

.score-warning {
    color: #b54708;
}

.score-ok {
    color: #027a48;
}

pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: #111827;
    color: #f9fafb;
    padding: 16px;
    border-radius: 10px;
    overflow: auto;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .topbar,
    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .release-grid {
        grid-template-columns: 1fr;
    }
}

.toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.toggle-grid label {
    display: block;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 10px 12px;
}

.preset-box {
    margin-bottom: 18px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 14px;
    background: #fafcff;
}