:root {
  --navy: #071525;
  --green: #10b981;
  --soft: #f1f5f9;
  --line: #d9e2ec;
  --text: #0f172a;
  --muted: #52637a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--soft);
}
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.top { background: var(--navy); color: white; padding: 22px 0; }
.brand { color: #6ee7b7; font-size: 14px; font-weight: 700; }
.top h1 { margin: 4px 0 0; font-size: 26px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.nav a, .btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 9px 14px;
  background: white;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.nav a { background: rgba(255,255,255,.08); color: white; border-color: transparent; }
.btn.primary, button.primary { background: var(--navy); color: white; border-color: var(--navy); }
.btn.green, button.green { background: var(--green); color: #032016; border-color: var(--green); }
.btn.danger, button.danger { color: #b91c1c; border-color: #fecaca; }
.grid { display: grid; gap: 18px; }
.metrics { grid-template-columns: repeat(6, 1fr); margin: 28px 0; }
.two { grid-template-columns: .9fr 1.1fr; }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.metric p { margin: 0; color: var(--muted); font-size: 14px; }
.metric strong { display: block; margin-top: 8px; font-size: 28px; }
label span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
input, textarea, select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  background: white;
}
textarea { min-height: 92px; resize: vertical; }
form.stack, .stack { display: grid; gap: 14px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.split { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.status { color: #047857; letter-spacing: .16em; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.qr-item { display: grid; grid-template-columns: 144px 1fr; gap: 18px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.qr-item img { width: 144px; height: 144px; border: 1px solid var(--line); border-radius: 6px; background: white; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 13px; }
.login { min-height: 100vh; display: grid; place-items: center; background: var(--navy); padding: 24px; }
.login .card { width: min(390px, 100%); }
.hero { background: var(--navy); color: white; }
.hero-inner { min-height: 88vh; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 48px; padding: 64px 0; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.05; margin: 16px 0; }
.section { padding: 64px 0; background: white; }
.section.alt { background: #f8fafc; }
.info-grid { grid-template-columns: repeat(2, 1fr); }
.notice { border: 1px solid #a7f3d0; background: #ecfdf5; border-radius: 8px; padding: 18px; color: #064e3b; }
.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: 12px; border-radius: 6px; }
.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; padding: 12px; border-radius: 6px; }
@media (max-width: 900px) {
  .metrics, .two, .hero-inner, .info-grid { grid-template-columns: 1fr; }
  .qr-item { grid-template-columns: 1fr; }
}
