:root {
  --bg: #ffffff; --ink: #1e293b; --muted: #64748b; --line: #e2e8f0; --field: #f8fafc; --accent: #df271f;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111827; --ink: #f1f5f9; --muted: #94a3b8; --line: #334155; --field: #1f2937; --accent: #f87171; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 16px;
}
h1 { font-size: 17px; margin: 0 0 12px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input[type="number"], input[type="text"], textarea, select {
  width: 100%; font: inherit; color: inherit; background: var(--field);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin-top: 12px; }
.stat { background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.stat b { display: block; font-size: 19px; overflow-wrap: anywhere; }
.stat span { font-size: 12px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 6px; font-size: 14px; color: inherit; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
button {
  font: inherit; font-weight: 600; color: #fff; background: var(--accent);
  border: 0; border-radius: 8px; padding: 9px 16px; cursor: pointer;
}
.out { display: flex; gap: 8px; margin-bottom: 12px; }
.out input { font-family: ui-monospace, Consolas, monospace; }
.by { display: block; margin-top: 12px; font-size: 12px; color: var(--muted); text-align: right; }
.by a { color: inherit; }
