:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #15191f;
  --muted: #667085;
  --line: #d9dee7;
  --accent: #0f766e;
  --accent-2: #1f5eff;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  padding: 22px 16px;
  background: #101418;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #31c48d;
  color: #07100d;
  font-weight: 900;
}
.brand small { display: block; color: #aab4c2; margin-top: 2px; }
nav { display: grid; gap: 6px; }
nav a, .ghost {
  border: 0;
  width: 100%;
  text-align: left;
  color: #dbe3ef;
  background: transparent;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}
nav a:hover, .ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar form { margin-top: auto; }
.main {
  margin-left: 248px;
  padding: 32px;
  max-width: 1400px;
}
.page-head { margin-bottom: 22px; }
.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
}
h1, h2 { margin: 0; line-height: 1.08; }
h1 { font-size: 34px; }
h2 { font-size: 18px; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stats article, .panel, .notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(20, 28, 40, .04);
}
.stats article { padding: 18px; }
.stats span { display: block; font-size: 32px; font-weight: 850; }
.stats small, .muted, small { color: var(--muted); }
.panel { padding: 18px; margin-bottom: 18px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-head a { color: var(--accent-2); text-decoration: none; font-weight: 700; }
.grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid {
  display: grid;
  gap: 12px;
}
.form-grid.cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wide { grid-column: 1 / -1; }
label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #cfd6e2;
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
textarea { resize: vertical; }
button {
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.checks input { width: auto; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
th { color: #475467; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
code {
  display: inline-block;
  padding: 4px 6px;
  border-radius: 6px;
  background: #eef2f7;
  color: #111827;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2f7;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}
.badge.ok { background: #dcfce7; color: #166534; }
.notice { padding: 14px 16px; margin-bottom: 18px; color: #175cd3; border-color: #b2ccff; }
.notice.strong code { display: block; margin-top: 8px; word-break: break-all; }
.link-danger {
  background: transparent;
  color: var(--danger);
  padding: 0;
  font-weight: 800;
}
.login-body {
  display: grid;
  place-items: center;
  padding: 24px;
  background: #101418;
}
.login-panel {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 10px;
  padding: 30px;
}
.login-panel h1 { font-size: 31px; margin-bottom: 24px; }
.login-panel form { display: grid; gap: 14px; }
.error { color: var(--danger); font-weight: 700; margin: 0; }
@media (max-width: 900px) {
  .sidebar { position: static; width: auto; min-height: auto; }
  .main { margin-left: 0; padding: 22px; }
  .stats, .grid.two, .form-grid.cols { grid-template-columns: 1fr; }
}

