:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #1e2b35;
  --muted: #5e7281;
  --line: #d7e0e7;
  --primary: #007a5f;
  --primary-dark: #005d49;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

header {
  background: #0f2d3f;
  color: #fff;
  padding: 1rem;
}

header h1 { margin: 0 0 0.5rem 0; font-size: 1.4rem; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

nav a {
  color: #cbe6ff;
  text-decoration: none;
  border: 1px solid #3f5f74;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}

main {
  max-width: 1100px;
  margin: 1rem auto;
  padding: 0 1rem 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.narrow { max-width: 520px; }

.item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
}

label {
  display: block;
  margin: 0.3rem 0 0.2rem;
  font-weight: 600;
}

input, textarea, select, button {
  width: 100%;
  padding: 0.55rem;
  margin-bottom: 0.7rem;
  border: 1px solid #b9c8d3;
  border-radius: 6px;
  font: inherit;
}

textarea { min-height: 90px; }

button, .btn {
  background: var(--primary);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  width: auto;
  padding: 0.5rem 0.9rem;
}

button:hover, .btn:hover { background: var(--primary-dark); }

.btn-secondary { background: #3d5566; }

.inline-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.inline-form select, .inline-form button { width: auto; margin: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.hero {
  background: linear-gradient(120deg, #103449, #256f8f);
  color: #fff;
  padding: 1.2rem;
  border-radius: 10px;
}

.hero-actions { margin-top: 1rem; display: flex; gap: 0.6rem; }

.message { color: var(--danger); font-weight: 600; min-height: 1rem; }
.ok { color: #0a7d3a; font-weight: 600; }
.warn { color: #9a5f00; font-weight: 600; }

.video-wrap {
  position: relative;
  padding-top: 56.25%;
  margin-bottom: 0.8rem;
}

.video-wrap iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: 0;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem;
  margin-bottom: 0.8rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  margin: 0;
}

.check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 1rem;
}

@media (max-width: 700px) {
  nav { gap: 0.35rem; }
  .hero-actions { flex-direction: column; }
}
