/* System status page — bound to status.html */

.status-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.status-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.75rem 1rem;
}

.status-card .label {
    color: var(--muted, #888);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.status-card .value {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
}

.status-card .value.ok { color: var(--ok, #4ade80); }
.status-card .value.warn { color: #fbbf24; }
.status-card .value.err { color: #f87171; }
.status-card .value.optimize { color: #60e5fa; }

.grid-section { margin: 1.5rem 0 2rem; }

.status-section { margin: 1.5rem 0 2rem; }
.status-section h2,
.grid-section h2 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.grid-section .muted { margin-bottom: 0.75rem; }

/* 7×24 grid. 1 label column + 24 cell columns */
.grid-7x24 {
    display: grid;
    grid-template-columns: 80px repeat(24, minmax(0, 1fr));
    grid-auto-rows: 1.4em;
    gap: 2px;
    width: 100%;
}

.grid-7x24 .day-label {
    color: var(--muted, #888);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    font-size: 0.75rem;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.grid-7x24 .cell {
    border-radius: 2px;
    cursor: default;
    min-width: 0;
    min-height: 100%;
}

.grid-7x24 .cell.ok { background: var(--ok, #4ade80); }
.grid-7x24 .cell.partial { background: #fbbf24; }
.grid-7x24 .cell.optimize { background: #60e5fa; }
.grid-7x24 .cell.missing { background: rgba(255, 255, 255, 0.15); }
.grid-7x24 .cell[title]:hover { outline: 1px solid var(--accent); }

.grid-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--muted, #888);
}

.grid-legend .swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}

.grid-legend .swatch.ok { background: var(--ok, #4ade80); }
.grid-legend .swatch.partial { background: #fbbf24; }
.grid-legend .swatch.optimize { background: #60e5fa; }
.grid-legend .swatch.missing { background: rgba(255, 255, 255, 0.15); }
