:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111315;
  color: #eef1f4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: #111315;
}

button, input { font: inherit; }

.page-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.page-header { margin-bottom: 28px; }
.eyebrow {
  margin: 0 0 8px;
  color: #8ab4f8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { margin-bottom: 14px; }
h3 { margin-bottom: 0; }
.intro, .muted, .page-footer, .result-description { color: #aeb7c2; }

.panel, .result-group {
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid #2f363d;
  border-radius: 12px;
  background: #1a1d21;
}

label { display: block; margin-bottom: 8px; font-weight: 650; }
.input-row { display: flex; gap: 10px; }

input {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #46515c;
  border-radius: 8px;
  background: #111315;
  color: inherit;
}

button {
  padding: 11px 16px;
  border: 1px solid #6c9fe8;
  border-radius: 8px;
  background: #2b69bd;
  color: white;
  cursor: pointer;
}

button:disabled { opacity: 0.6; cursor: wait; }
.secondary-button { background: transparent; }
.status { min-height: 1.5em; margin: 12px 0 0; }
.status.error { color: #f28b82; }
.status.success { color: #81c995; }
.hidden { display: none; }

.section-heading-row, .result-group-header, .result-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.summary-counters { display: flex; flex-wrap: wrap; gap: 8px; }
.counter {
  padding: 6px 9px;
  border: 1px solid #3a424b;
  border-radius: 999px;
  background: #111315;
  font-size: 0.85rem;
}

.result-list { display: grid; gap: 12px; }
.result-card {
  padding: 16px;
  border: 1px solid #69737d;
  border-left-width: 5px;
  border-radius: 9px;
  background: #15181b;
}
.result-card.pass { border-left-color: #81c995; }
.result-card.info { border-left-color: #8ab4f8; }
.result-card.warning { border-left-color: #fdd663; }
.result-card.error { border-left-color: #f28b82; }
.result-card.unknown { border-left-color: #bdc1c6; }

.result-badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.result-values {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
.result-message { margin: 12px 0 0; white-space: pre-line; }
.result-description { margin: 8px 0 0; font-size: 0.88rem; }
.empty-state {
  padding: 24px;
  border: 1px dashed #46515c;
  border-radius: 10px;
  text-align: center;
  color: #aeb7c2;
}
.page-footer { margin-top: 32px; font-size: 0.86rem; }

@media (max-width: 640px) {
  .page-shell { width: min(100% - 20px, 980px); padding-top: 24px; }
  .input-row, .section-heading-row { flex-direction: column; }
  button { width: 100%; }
}
