:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --card: #fff;
  --text: #1b1f24;
  --muted: #5f6b7a;
  --border: #d9dee5;
  --accent: #2563eb;
  --good: #15803d;
  --bad: #b91c1c;
  --meh: #a16207;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --card: #1a1f25;
    --text: #e6e9ee;
    --muted: #94a0b0;
    --border: #2c333c;
    --accent: #60a5fa;
    --good: #4ade80;
    --bad: #f87171;
    --meh: #facc15;
  }
}
* { 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;
}
main { max-width: 960px; margin: 0 auto; padding: 16px; }
h1 { font-size: 22px; margin: 8px 0 12px; }
h2 { font-size: 17px; margin: 0 0 8px; }
.ru { color: var(--muted); font-weight: normal; }
section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin: 12px 0;
}
.note, .hint { color: var(--muted); margin: 0 0 10px; }
.warn { color: var(--bad); font-weight: 600; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 10px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
input, select {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 9px;
}
.buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
button {
  font: inherit;
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
button .ru { color: inherit; opacity: 0.8; }
button:disabled { opacity: 0.45; cursor: default; }
.status { display: inline-block; margin: 6px 0; color: var(--muted); }
table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.good { color: var(--good); font-weight: 600; }
.bad { color: var(--bad); font-weight: 600; }
.meh { color: var(--meh); font-weight: 600; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 4px 16px; margin-top: 8px; font-size: 13px; }
.kv div span { color: var(--muted); }
.videos { display: grid; grid-template-columns: 3fr 1fr; gap: 10px; margin-top: 8px; }
figure { margin: 0; }
video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; object-fit: contain; }
figcaption { font-size: 12px; color: var(--muted); }
@media (max-width: 600px) {
  .videos { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
}
