:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #5f6b7a;
  --line: #d9e0ea;
  --accent: #1463ff;
  --danger: #c02626;
  --ok: #138a43;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.layout {
  width: min(1120px, calc(100vw - 32px));
  margin: 24px auto;
  display: grid;
  gap: 16px;
}

.topbar,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  margin-top: 6px;
}

.status {
  min-width: 156px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  min-height: 38px;
  border: 1px solid #0e55dc;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  filter: brightness(0.96);
}

pre {
  width: 100%;
  min-height: 120px;
  margin: 12px 0 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d1220;
  color: #dbe7ff;
  font-size: 13px;
  line-height: 1.45;
}

.output-panel pre {
  min-height: 240px;
}

@media (max-width: 720px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .status {
    width: 100%;
  }
}
