:root {
  color-scheme: dark;
  --bg: #0f1115;
  --card: #171a21;
  --border: #2a2e38;
  --text: #e8eaed;
  --muted: #9aa0ab;
  --accent: #5b8cff;
  --danger: #ff5b6a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, Segoe UI, Roboto, sans-serif;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

main {
  width: 100%;
  max-width: 420px;
}

h1 {
  font-size: 20px;
  margin: 0 0 4px;
}

p.sub {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 13px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 4px;
}

input, textarea {
  width: 100%;
  background: #0d0f13;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: white;
  margin-top: 12px;
}

button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

button.danger {
  background: var(--danger);
}

button:disabled { opacity: 0.5; cursor: default; }

.row { display: flex; gap: 8px; }
.row > button { flex: 1; }

.error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
  white-space: pre-wrap;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

a { color: var(--accent); }

.incident-item {
  display: block;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--text);
}

.incident-item:hover { border-color: var(--accent); }

.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--border);
  color: var(--muted);
  margin-left: 6px;
}

video {
  width: 100%;
  border-radius: 8px;
  background: black;
  display: block;
}

.progress {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0;
}

.top-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin: 16px 0 8px;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Логотип: на главной — вместо заголовка, на остальных страницах — маленький,
   ссылкой на список записей. Поля SVG вокруг красного круга уже заложены в картинку. */
h1.brand {
  margin: 0 0 8px -6px;
  line-height: 0;
}
h1.brand img { display: block; height: 64px; width: auto; }

a.brand-link {
  display: block;
  width: fit-content;
  margin: -8px 0 8px -4px;
  line-height: 0;
}
a.brand-link img { display: block; height: 36px; width: auto; }
