:root {
  color-scheme: dark;
  --bg: #100b17;
  --surface: #1c1426;
  --border: #33284a;
  --text: #ece6f6;
  --muted: #a99cc2;
  --accent: #b388ff;
  --gold: #e8c26a;
  --ok: #6fcf97;
  --bad: #eb5757;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
main {
  max-width: 520px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px 32px;
}
h1 {
  font-size: 22px;
  margin: 8px 0 4px;
  color: var(--gold);
}
.muted {
  color: var(--muted);
  margin-top: 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
label {
  font-size: 14px;
  color: var(--muted);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
}
.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
}
select,
button,
textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  width: 100%;
}
button {
  font-weight: 600;
  cursor: pointer;
}
button.primary {
  background: var(--accent);
  color: #160d24;
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.5;
}
textarea {
  font: 12px/1.4 ui-monospace, Menlo, monospace;
  display: none;
}
textarea.shown {
  display: block;
}
.state {
  font-weight: 700;
  font-size: 18px;
}
.state.ok {
  color: var(--ok);
}
.state.bad {
  color: var(--bad);
}
dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  font-weight: 600;
}
pre {
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
}
summary {
  color: var(--muted);
}
