:root {
  --navy: #091e27;
  --teal: #48f0e7;
  --off: #f6fbfb;
  --muted: #55707a;
  --line: #d9e5e4;
  --danger: #b42318;
  --ok: #13795b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--off);
  color: #0d1f26;
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  background: var(--navy);
  color: white;
  box-shadow: 0 6px 20px rgba(9,30,39,.18);
}
.brand {
  color: white;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--teal); }
nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
nav a {
  color: #eaf7f6;
  text-decoration: none;
  border: 1px solid rgba(72,240,231,.25);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}
nav a.active { background: var(--teal); color: var(--navy); }
.app { max-width: 1180px; margin: 0 auto; padding: 22px 16px 60px; }
.hero, .card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(9,30,39,.08);
}
.hero { padding: 24px; margin-bottom: 18px; }
.card { padding: 18px; margin: 14px 0; }
h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 46px); line-height: 1.05; }
h2 { margin: 0 0 12px; font-size: 24px; }
h3 { margin: 16px 0 8px; font-size: 18px; }
p { color: var(--muted); line-height: 1.55; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
label { display: grid; gap: 6px; color: #203840; font-weight: 700; font-size: 13px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #c7d9d7;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: white;
}
textarea { min-height: 92px; resize: vertical; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.btn.secondary { background: #dff7f5; color: var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip {
  border: 1px solid #b9d8d5;
  border-radius: 999px;
  padding: 8px 11px;
  cursor: pointer;
  background: white;
  font-size: 13px;
}
.chip.selected { background: var(--teal); border-color: var(--teal); color: var(--navy); font-weight: 800; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; background: white; min-width: 680px; }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #edf8f7; color: var(--navy); font-size: 12px; text-transform: uppercase; }
.status { padding: 10px 12px; border-radius: 10px; margin: 12px 0; background: #eef5f5; }
.status.ok { background: #e7f7ef; color: var(--ok); }
.status.error { background: #fdecec; color: var(--danger); }
.metric { padding: 16px; border-radius: 12px; background: #edf8f7; }
.metric b { display: block; font-size: 28px; color: var(--navy); }
.cover-img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; background: #dfe9e8; }
.pass {
  max-width: 460px;
  margin: 0 auto;
  border: 2px solid var(--navy);
  border-radius: 18px;
  padding: 22px;
  background: white;
  text-align: center;
}
.qr {
  width: 150px;
  height: 150px;
  margin: 14px auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg,#111 0 8px,#fff 8px 16px);
  color: white;
  font-weight: 900;
}
@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .app { padding: 16px 12px 70px; }
  .span-3, .span-4, .span-6, .span-8 { grid-column: span 12; }
  .hero, .card { padding: 16px; border-radius: 10px; }
}
