:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #1b2230;
  --muted: #667085;
  --border: #e3e7ee;
  --accent: #2563eb;
  --accent-text: #ffffff;
  --ok: #12805c;
  --ok-bg: #e3f6ee;
  --warn: #b25e00;
  --warn-bg: #fff1dc;
  --bad: #c62828;
  --bad-bg: #fde7e7;
  --grey: #5c6577;
  --grey-bg: #eceff3;
  --code-bg: #eef1f6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f131a;
    --card: #171c25;
    --text: #e6e9ef;
    --muted: #9aa3b2;
    --border: #2a3140;
    --accent: #3b82f6;
    --ok: #3ecf8e;
    --ok-bg: #12352a;
    --warn: #f5a524;
    --warn-bg: #3a2a10;
    --bad: #ff6b6b;
    --bad-bg: #3d1717;
    --grey: #a3acbb;
    --grey-bg: #252c38;
    --code-bg: #222938;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
code { background: var(--code-bg); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px; background: var(--card); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--text); }
nav { display: flex; align-items: center; gap: 18px; }
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; }
h1 { font-size: 24px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 20px 0 8px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; margin-bottom: 20px; overflow-x: auto;
}
.card.auth { max-width: 420px; margin: 48px auto; }
.card.danger { border-color: var(--bad-bg); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.grow { flex: 1 1 220px; }
label { display: block; margin-bottom: 12px; font-weight: 500; font-size: 14px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input:not([type]) {
  display: block; width: 100%; margin-top: 4px; padding: 8px 10px; font: inherit;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
}
input[readonly] { opacity: 0.75; }
button {
  font: inherit; padding: 7px 14px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
}
button:hover:not([disabled]) { border-color: var(--accent); }
button[disabled] { opacity: 0.5; cursor: not-allowed; }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
button.danger { color: var(--bad); border-color: var(--bad); }
button.link { border: 0; background: none; color: var(--accent); padding: 0; }
form.inline { display: inline; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row > label { margin-bottom: 0; }
.row.actions { margin-top: 16px; }
.notice { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; border: 1px solid transparent; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.error { background: var(--bad-bg); color: var(--bad); }
.notice.info { background: var(--grey-bg); color: var(--text); }
.notice code.copy { display: block; margin-top: 8px; user-select: all; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.list thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
table.list tr.group th { background: var(--bg); font-size: 13px; color: var(--muted); padding-top: 14px; }
td.detail { word-break: break-word; max-width: 520px; }
td.score { font-weight: 700; font-variant-numeric: tabular-nums; }
td.score.bad { color: var(--bad); }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  white-space: nowrap; background: var(--grey-bg); color: var(--grey);
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.listed { background: var(--bad-bg); color: var(--bad); }
.badge.error { background: var(--grey-bg); color: var(--warn); }
.hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; border-left: 6px solid var(--ok); }
.hero.listed { border-left-color: var(--bad); }
.hero.warn { border-left-color: var(--warn); }
.hero.error, .hero.pending { border-left-color: var(--grey); }
.hero h1 { margin-bottom: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; word-break: break-all; }
.hero p { margin: 4px 0; }
.score-box {
  width: 96px; height: 96px; border-radius: 50%; border: 6px solid var(--ok);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-box.bad { border-color: var(--bad); color: var(--bad); }
.score-box .num { font-size: 30px; font-weight: 800; line-height: 1; }
.score-box .den { font-size: 13px; color: var(--muted); }
.vendors { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 24px; }
.vendor { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.verdict.ok { color: var(--ok); }
.verdict.warn { color: var(--warn); font-weight: 600; }
.verdict.listed { color: var(--bad); font-weight: 600; }
.verdict.skipped { color: var(--muted); }
ul.status-list { padding-left: 18px; }
ul.status-list li { margin-bottom: 6px; }
@media (max-width: 640px) {
  header.top { padding: 10px 16px; }
  table.list th, table.list td { padding: 7px 6px; }
  .score-box { width: 72px; height: 72px; }
  .score-box .num { font-size: 22px; }
}
select {
  display: block; margin-top: 4px; padding: 8px 10px; font: inherit;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
}
input[type=time] {
  display: block; margin-top: 4px; padding: 7px 10px; font: inherit;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
}
.schedule { margin: 4px 0 4px; }
/* Show only the fields the chosen schedule uses. */
.schedule .sched-weekday, .schedule .sched-time, .schedule .sched-cron { display: none; }
.schedule:has(option[value=daily]:checked) .sched-time,
.schedule:has(option[value=weekly]:checked) .sched-time,
.schedule:has(option[value=weekly]:checked) .sched-weekday { display: block; }
.schedule:has(option[value=custom]:checked) .sched-cron { display: block; flex: 1 1 220px; }
