body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1118;
  color: #f9fafb;
}

.top-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #020617;
  border-bottom: 1px solid #111827;
  font-size: 0.95rem;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
}

.kpi-block {
  line-height: 1.3;
}

.kpi-block strong {
  font-size: 0.95rem;
}

#warehouseTimer {
  font-weight: 700;
  font-size: 1.2rem;
}

#modeLabel,
#roundLabel {
  font-weight: 600;
}

.sku-vertical {
  margin-top: 0.25rem;
  white-space: pre;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
}

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 1rem;
  padding: 1rem;
}

.left-panel,
.right-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.panel-card {
  background: #020617;
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #111827;
  font-size: 0.9rem;
}

.panel-card h2 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.stage-summary-text {
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

#instructions {
  margin-top: 0.5rem;
  background: #020617;
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #111827;
  font-size: 0.9rem;
}

.battle-canvas.hidden {
  display: none;
}
