/* REC-561. A stylesheet rather than a <style> block, for the same reason
   check.js is a file: the portal's CSP allows 'unsafe-inline' for styles but
   not for scripts, and keeping both external means this harness never becomes
   the precedent for relaxing either. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1c1c1e;
  --muted: #6b6b70;
  --line: #d8d8dc;
  --ok: #0a7d33;
  --bad: #b3261e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --fg: #f2f2f7;
    --muted: #9a9aa0;
    --line: #35353a;
    --ok: #4ade80;
    --bad: #ff6b6b;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 { font-size: 1.4rem; margin: 0 0 0.5rem; }
.sub { color: var(--muted); margin-top: 0; }

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1rem;
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

dt { color: var(--muted); }
dd { margin: 0; font-variant-numeric: tabular-nums; word-break: break-all; }

button {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--bg);
  background: var(--fg);
  border: 0;
  border-radius: 12px;
}

button:disabled { opacity: 0.5; }

output {
  display: block;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}

output.ok { border-color: var(--ok); }
output.bad { border-color: var(--bad); }

.note { color: var(--muted); font-size: 0.85rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
