:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --panel: #ffffff;
  --ink: #17211d;
  --muted: #64726c;
  --line: #dce4df;
  --green: #18864b;
  --amber: #b7791f;
  --red: #b42318;
  --blue: #1f5f99;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

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

.heading {
  display: grid;
  gap: 6px;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.05;
}

h2 {
  font-size: 1.05rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 18px;
}

button,
a {
  min-height: 42px;
  border-radius: 6px;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
}

button {
  border: 0;
  background: var(--green);
  color: #ffffff;
  cursor: pointer;
}

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

button.secondary {
  background: var(--blue);
}

a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--muted);
  flex: 0 0 auto;
}

.dot.ok {
  background: var(--green);
}

.dot.warn {
  background: var(--amber);
}

.dot.error {
  background: var(--red);
}

.facts {
  margin: 24px 0 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 700;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

#checked-at {
  color: var(--muted);
  font-size: 0.9rem;
}

pre {
  margin: 0;
  min-height: 420px;
  max-height: 70vh;
  overflow: auto;
  padding: 16px;
  border-radius: 8px;
  background: #101815;
  color: #d7e7dd;
  white-space: pre-wrap;
  line-height: 1.45;
}

@media (max-width: 780px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 24px 0;
  }

  .status-panel,
  .log-panel {
    padding: 18px;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
