.status-cockpit {
  max-width: 1820px;
  margin: 0 auto;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.metric {
  min-height: 92px;
  padding: 14px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
}

.metric span {
  display: block;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.error-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 12px;
  padding: 10px 12px;
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
}

.error-panel[hidden] {
  display: none;
}

.status-table-shell {
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
}

.status-table {
  width: 100%;
  min-width: 1000px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.col-status {
  width: 122px;
}

.col-group {
  width: 134px;
}

.col-name {
  width: 190px;
}

.col-company {
  width: 116px;
}

.col-latency {
  width: 96px;
}

.col-checked {
  width: 172px;
}

.status-table th,
.status-table td {
  height: 38px;
  padding: 0 11px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #334155;
  background: var(--surface-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-table tbody tr:hover {
  background: var(--surface-subtle);
}

.status-table td {
  color: #1f2937;
  white-space: nowrap;
}

.status-table td:nth-child(6) {
  color: #334155;
}

.status-table td:nth-child(7) {
  color: #475569;
}

.status-table .is-number,
.status-table td.is-number {
  text-align: right;
}

.skeleton-row span {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #edf2f7 0%, #f8fafc 45%, #e5edf6 100%);
  background-size: 220% 100%;
  animation: skeleton-shift 1.15s linear infinite;
}

.skeleton-row td:first-child span {
  width: 72px;
}

.skeleton-row td:nth-child(5) span {
  width: 58px;
  margin-left: auto;
}

@keyframes skeleton-shift {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.debug-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 11px;
  color: #475569;
  font-size: 12px;
}

.debug-footer strong {
  color: #111827;
  font-weight: 800;
}

.copy-flash {
  border-color: #86efac;
  color: #166534;
  background: #dcfce7;
}

@media (min-width: 1800px) {
  .workspace {
    padding: 24px;
  }

  .metric {
    min-height: 98px;
  }
}

@media (max-width: 760px) {
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric {
    min-height: 86px;
  }
}
