:root {
  --bg: #0f0f14;
  --panel: #1a1a22;
  --panel-2: #23232d;
  --line: #2e2e3a;
  --text: #ececf1;
  --muted: #9a9aab;
  --accent: #ffe756;
  --ok: #57ce70;
  --warn: #fe904c;
  --bad: #ff5c54;
  --radius: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 32px);
}
main { max-width: 760px; margin: 0 auto; }
h1, h2, h3 { font-family: "Bricolage Grotesque", Figtree, system-ui, sans-serif; line-height: 1.15; }
h1 { font-size: 26px; margin: 8px 0 4px; }
h2 { font-size: 19px; margin: 28px 0 10px; }
h3 { font-size: 16px; margin: 0 0 8px; }
p { margin: 6px 0; }
a { color: var(--accent); }
code, .mono, pre { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.muted { color: var(--muted); }
nav.top { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; margin-bottom: 8px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin: 12px 0;
}
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > input[type=text], .row > input[type=url] { flex: 1 1 220px; min-width: 0; }
input[type=text], input[type=url], textarea {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
  width: 100%;
}
textarea { min-height: 70px; resize: vertical; }
button, .btn {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.primary, .btn.primary { background: var(--accent); color: #15151c; border-color: var(--accent); }
button:disabled { opacity: .45; cursor: default; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 6px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.ok { background: rgba(87,206,112,.18); color: var(--ok); }
.pill.warn { background: rgba(254,144,76,.18); color: var(--warn); }
.pill.bad { background: rgba(255,92,84,.18); color: var(--bad); }
.pill.na { background: var(--panel-2); color: var(--muted); }
iframe { border: 0; width: 100%; border-radius: 12px; background: #000; display: block; }
.embed-slot { margin: 10px 0; }
.big { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 22px; }
pre.log {
  background: #0a0a0e;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 8px 0 0;
}
fieldset.q {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0;
}
fieldset.q legend { padding: 0 4px; font-weight: 600; }
fieldset.q label { margin-right: 14px; white-space: nowrap; display: inline-block; padding: 4px 0; }
fieldset.q input[type=text] { margin-top: 6px; }
ol.steps { padding-left: 20px; }
ol.steps li { margin: 4px 0; }
.report-bar { position: sticky; bottom: 0; padding: 10px 0 0; background: linear-gradient(transparent, var(--bg) 30%); }
