:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --text: #172026;
  --muted: #60717d;
  --border: #d9e1e5;
  --accent: #0d766e;
  --accent-dark: #075e58;
  --ok: #0f7b3d;
  --pending: #946200;
  --error: #b42318;
  --blocked: #8a2a0f;
  --warn: #7a4b00;
}

* {
  box-sizing: border-box;
}

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

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 760;
}

.check-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
}

input,
button {
  height: 48px;
  border-radius: 8px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  padding: 0 14px;
  color: var(--text);
  background: var(--surface);
}

input:focus {
  outline: 3px solid rgba(13, 118, 110, 0.18);
  border-color: var(--accent);
}

button {
  border: 0;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.results {
  padding-top: 28px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.node-card {
  min-height: 172px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.node-card.wide {
  grid-column: 1 / -1;
}

.node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pill.ok {
  color: var(--ok);
  background: #e8f5ed;
}

.pill.pending,
.pill.idle {
  color: var(--pending);
  background: #fff4db;
}

.pill.warn {
  color: var(--warn);
  background: #fff4db;
}

.pill.blocked {
  color: var(--blocked);
  background: #fdebd3;
}

.pill.error {
  color: var(--error);
  background: #feecea;
}

.muted,
.resolved {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.resolved {
  margin-top: 12px;
  overflow-wrap: anywhere;
}

.verdict-text {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.error-text {
  margin: 12px 0 0;
  color: var(--error);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

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

.metrics div {
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f5f7f8;
}

.metrics span,
.metrics strong,
.metrics small {
  display: block;
}

.metrics span {
  color: var(--muted);
  font-size: 12px;
}

.metrics strong {
  margin-top: 2px;
  font-size: 15px;
}

.metrics small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

@media (max-width: 820px) {
  .shell {
    padding: 32px 0;
  }

  .hero,
  .result-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 34px;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 20px, 1120px);
  }

  .check-form {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}
