.state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.state-panel {
  display: grid;
  min-width: 0;
  min-height: 128px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4);
  border: 1px dashed var(--color-grid);
  border-radius: var(--radius-4);
  background: var(--color-surface);
}

.state-panel__symbol {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: var(--radius-2);
  background: var(--color-slate-bg);
  color: var(--color-slate);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.state-panel__content {
  min-width: 0;
}

.state-panel h3,
.state-panel p {
  margin: 0;
}

.state-panel h3 {
  margin-bottom: var(--space-1);
  font-size: 13px;
}

.state-panel p {
  color: var(--color-ink-soft);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.state-panel .button,
.state-panel .skeleton-stack {
  margin-top: var(--space-3);
}

.state-panel--error {
  border-color: var(--color-diverge);
  background: var(--color-diverge-bg);
}

.state-panel--error .state-panel__symbol {
  background: var(--color-diverge);
  color: var(--color-surface);
}

.state-panel--conflict,
.state-panel--degraded,
.state-panel--running {
  border-color: var(--color-pending);
  background: var(--color-pending-bg);
}

.state-panel--replay {
  border-color: var(--color-match);
  background: var(--color-match-bg);
}

.state-panel--disabled,
.state-panel--not-configured {
  background: var(--color-slate-bg);
}

@media (max-width: 720px) {
  .state-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
