/* Index page layout (served as a file so the CSP can forbid inline styles).
 * Minimal, functional styling: system fonts, light/dark, no animations. */
:root {
  color-scheme: light dark;
  --bg: #f7f7f8;
  --card: #ffffff;
  --fg: #1a1a1a;
  --muted: #6b6f76;
  --border: #e2e4e8;
  --accent: #2b59c3;
  --accent-fg: #ffffff;
  --error: #b00020;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --card: #1a1d22;
    --fg: #eceef1;
    --muted: #9aa1ab;
    --border: #2c3138;
    --accent: #7aa2ff;
    --accent-fg: #0b1020;
    --error: #ff8a8a;
  }
}
* { box-sizing: border-box; }
body { max-width: 960px; margin: 0 auto; padding: 0 20px 48px; }

header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px 16px;
  padding: 16px 0; margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
header h1 { margin: 0; font-size: 1.35rem; }
header h1 a { color: inherit; text-decoration: none; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; }
h2 { font-size: 1.3rem; margin: 24px 0 12px; }
h3 { font-size: 1.1rem; margin: 20px 0 8px; }
a { color: var(--accent); }

input, button, select, textarea {
  font: inherit; color: var(--fg);
  padding: 8px 12px; margin: 4px 0;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--card);
}
input, select, textarea { width: 100%; }
textarea { min-height: 5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
button {
  cursor: pointer; width: auto;
  background: var(--accent); color: var(--accent-fg);
  border-color: var(--accent); font-weight: 500;
}
button:hover { filter: brightness(1.08); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

form { margin: 12px 0; }
.field { display: block; margin: 10px 0; font-weight: 500; }
fieldset {
  margin: 16px 0; padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border); border-radius: 8px;
}
legend { padding: 0 6px; font-weight: 600; }

ul { padding-left: 20px; }
li { margin: 4px 0; }

pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
pre {
  background: var(--card); border: 1px solid var(--border);
  padding: 10px 14px; border-radius: 6px;
  white-space: pre-wrap; word-break: break-word;
}

table {
  border-collapse: collapse; width: 100%;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
}
td, th { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 0.9rem; }
tr:last-child td { border-bottom: none; }

.muted { color: var(--muted); font-size: 0.9rem; }
.error { color: var(--error); font-weight: 500; }
.runner-ok { color: var(--accent); }
.runner-warn { color: #b07400; }
.runner-terminal { color: var(--error); }
.runner-transitional, .runner-unknown { color: var(--muted); }

@media (max-width: 600px) {
  body { padding: 0 12px 32px; }
  td, th { padding: 6px; }
}
