:root {
  color-scheme: light;
  --ink: #151a22;
  --muted: #5a6573;
  --line: #d8dee8;
  --paper: #f5f7fa;
  --panel: #ffffff;
  --blue: #285f9f;
  --green: #1f7a55;
  --red: #a43e3b;
  --yellow: #9a6b12;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.prize {
  display: grid;
  gap: 4px;
  min-width: 180px;
  border-left: 5px solid var(--green);
  background: var(--panel);
  padding: 12px;
}

.prize span,
.summary-row span {
  color: var(--muted);
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 0;
}

.summary-row article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  background: var(--panel);
  padding: 14px;
}

.summary-row article:first-child {
  border-top-color: var(--red);
}

.grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(260px, 0.85fr) minmax(300px, 1fr);
  gap: 14px;
}

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

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.log-row {
  display: grid;
  grid-template-columns: 86px 58px 1fr;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 0.9rem;
}

.log-row:last-child {
  border-bottom: 0;
}

.level-error {
  color: var(--red);
  font-weight: 900;
}

.level-warn {
  color: var(--yellow);
  font-weight: 900;
}

.level-info {
  color: var(--green);
  font-weight: 900;
}

.signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.signals article {
  border-left: 4px solid var(--blue);
  background: #fbfcfd;
  padding: 10px;
}

ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

li {
  line-height: 1.42;
}

.postmortem {
  margin-top: 14px;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  color: #263241;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .header,
  .grid {
    display: grid;
  }

  .summary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100vw - 20px, 1180px);
    padding: 18px 0;
  }

  .summary-row {
    grid-template-columns: 1fr;
  }

  .log-row {
    grid-template-columns: 1fr;
  }
}

