:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #18212f;
  --muted: #667085;
  --line: #d9e0ea;
  --primary: #18212f;
  --ok: #127a3d;
  --warn: #9a6700;
  --bad: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
header {
  background: var(--primary);
  color: white;
  padding: 18px 24px;
}
header h1 { margin: 0; font-size: 26px; }
header p { margin: 4px 0 0; opacity: .85; }
nav {
  display: flex;
  gap: 10px;
  padding: 14px 24px;
  background: white;
  border-bottom: 1px solid var(--line);
}
nav a, button, .btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
}
button.secondary, .btn.secondary { background: #667085; }
button.danger { background: var(--bad); }
main { padding: 24px; max-width: 1100px; margin: auto; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(20, 30, 50, .04);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
label { display: block; font-weight: bold; margin: 10px 0 5px; }
input, textarea, select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}
textarea { min-height: 100px; }
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 12px;
}
.badge.ok { background: #e8f5ee; color: var(--ok); }
.badge.warn { background: #fff4d6; color: var(--warn); }
.muted { color: var(--muted); }
pre {
  white-space: pre-wrap;
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 10px;
  max-height: 250px;
  overflow: auto;
}
