* { box-sizing: border-box; }

:root {
  --bg: #f5f2ea;
  --surface: #fffdf8;
  --ink: #1c2524;
  --muted: #66706e;
  --line: #ddd8cd;
  --accent: #314f49;
  --accent-dark: #223b36;
  --soft: #e8eee9;
  --danger: #a23b31;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

.wrap { width: min(980px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  padding: 64px 0 34px;
  border-bottom: 1px solid var(--line);
}
.site-header.compact { padding-top: 42px; }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 0.98; letter-spacing: -0.05em; margin-bottom: 18px; }
h2 { font-size: 1.65rem; margin-bottom: 0; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }

.eyebrow {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: 10px;
}

.intro { max-width: 700px; font-size: 1.08rem; color: var(--muted); }

main { padding: 38px 0 70px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 35px rgba(32, 45, 42, 0.05);
}
.panel.narrow { max-width: 520px; margin: 0 auto; }

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

label { display: block; font-weight: 700; margin-bottom: 16px; }

input, textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 12px 13px;
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
}

input:focus, textarea:focus {
  outline: 3px solid rgba(49,79,73,.12);
  border-color: var(--accent);
}

small { display: block; color: var(--muted); font-weight: 400; margin-top: 6px; }

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}
.checkbox-row input { width: auto; margin-top: 5px; }

.button {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: white;
  font-weight: 800;
  padding: 12px 17px;
  border-radius: 10px;
  cursor: pointer;
}
.button:hover { background: var(--accent-dark); }
.button.secondary { background: #e4e6e2; color: var(--ink); }
.button.danger { background: var(--danger); }

.log-section { margin-top: 6px; }
.count { color: var(--muted); font-size: .92rem; }

.empty-state {
  border: 1px dashed #c7c1b5;
  color: var(--muted);
  padding: 28px;
  border-radius: 14px;
  text-align: center;
}

.incident-list { display: grid; gap: 20px; }

.incident {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(32,45,42,.04);
}

.incident video {
  display: block;
  width: 100%;
  max-height: 620px;
  background: #111;
}

.incident-body { padding: 20px; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 10px;
}
.incident p { white-space: pre-wrap; margin-bottom: 0; }

.admin-actions { display: flex; gap: 10px; margin-top: 16px; }

.status { margin-top: 14px; color: var(--muted); }
.status.error { color: var(--danger); }
.status.success { color: var(--accent); }

.divider { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: .9rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.admin-link { color: var(--muted); white-space: nowrap; }

@media (max-width: 640px) {
  .site-header { padding-top: 42px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .section-heading, .footer-row { align-items: flex-start; flex-direction: column; }
  .panel { padding: 18px; }
}
