:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
body { margin: 0; background: #0b0d10; color: #e7eef8; }
.wrap { max-width: 980px; margin: 0 auto; padding: 24px; }
h1 { margin: 0 0 8px; font-size: 22px; }
.sub { margin: 0 0 18px; color: #a9b6c7; }

.card {
  background: #12161c;
  border: 1px solid #212a35;
  border-radius: 14px;
  padding: 16px;
}

button {
  margin-left: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #2a3644;
  background: #1a2230;
  color: #e7eef8;
  cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }

.row { display: grid; grid-template-columns: 520px 1fr; gap: 16px; margin-top: 16px; }
canvas { width: 512px; height: 512px; border-radius: 12px; border: 1px solid #2a3644; background: #0b0d10; }

.out { display: flex; flex-direction: column; gap: 10px; }
.status {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #2a3644;
  background: #0f141b;
  line-height: 1.3;
}
.metric {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #2a3644;
  background: #0f141b;
}

details { border: 1px solid #2a3644; background: #0f141b; border-radius: 12px; padding: 10px; }
summary { cursor: pointer; color: #cfe2ff; }
small { color: #94a6bd; }
footer { margin-top: 14px; }
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; }
  canvas { width: 100%; height: auto; }
}
.row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  margin-top: 16px;
}

.canvases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.canvasBlock .label {
  margin: 0 0 6px;
  color: #a9b6c7;
  font-size: 12px;
}

canvas {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #2a3644;
  background: #0b0d10;
}

@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; }
  .canvases { grid-template-columns: 1fr; }
}
