* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.5;
}
.layout { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.brand { font-size: 18px; font-weight: 700; margin-bottom: 24px; padding: 0 8px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-btn {
  text-align: left;
  background: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  width: 100%;
}
.nav-btn.active { background: #e0f2fe; color: #0369a1; }
.nav-btn.danger:hover { background: #fef2f2; color: #b91c1c; }
.sidebar-footer { border-top: 1px solid #e2e8f0; padding-top: 12px; }
.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 28px;
}
.topbar h1 { font-size: 18px; font-weight: 600; }
.content { padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; max-width: 1280px; }
.kpi-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
}
.kpi-label { font-size: 12px; font-weight: 500; color: #64748b; }
.kpi-value { font-size: 26px; font-weight: 700; margin-top: 6px; font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12px; color: #64748b; margin-top: 4px; }
.panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
}
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
input, select, textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  background: #ffffff;
}
.btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-secondary {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 7px 12px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-danger {
  background: #ffffff;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 7px 12px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
}
table { width: 100%; border-collapse: collapse; margin-top: 8px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; font-size: 13px; }
th { font-size: 12px; color: #64748b; font-weight: 600; }
.mono { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.text-ok { color: #15803d; font-weight: 600; }
.text-fail { color: #b91c1c; font-weight: 600; }
.text-warn { color: #b45309; font-weight: 600; }
.error-box { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; padding: 10px 14px; border-radius: 8px; font-size: 13px; }
.group-checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); max-height: 140px; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 6px; padding: 10px; }
.group-checks label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.group-checks input { width: auto; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
