:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #172033;
}

body { margin: 0; }
a { color: #175cd3; text-decoration: none; }
button, input, textarea { font: inherit; }
button {
  border: 1px solid #ccd5e1;
  background: #fff;
  border-radius: 8px;
  padding: 9px 13px;
  cursor: pointer;
}
.primary { background: #175cd3; border-color: #175cd3; color: #fff; }
.top {
  min-height: 56px;
  background: #111827;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.nav { display: flex; align-items: center; gap: 14px; }
.nav a { color: #dbeafe; }
.nav form { margin: 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }
.auth-card, .panel {
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.auth-card { max-width: 380px; margin: 80px auto; }
.narrow { max-width: 520px; }
.form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; color: #465166; font-size: 14px; }
input, textarea {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
}
.table-input {
  width: 110px;
  padding: 7px 8px;
}
textarea { min-height: 130px; resize: vertical; }
.error { color: #b42318; }
.notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px 12px;
}
.muted { color: #667085; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.metrics div {
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  padding: 18px;
}
.metrics b { display: block; font-size: 30px; }
.metrics span { color: #667085; }
.grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.search { display: flex; gap: 8px; margin: 12px 0 18px; }
.search input { min-width: 280px; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  overflow: hidden;
}
th, td { padding: 11px 12px; border-bottom: 1px solid #edf1f7; text-align: left; vertical-align: top; }
th { background: #f8fafc; color: #475467; font-size: 13px; }
code { white-space: pre-wrap; word-break: break-word; }
@media (max-width: 860px) {
  .top, .nav { align-items: flex-start; flex-direction: column; padding: 14px; }
  .metrics, .grid { grid-template-columns: 1fr; }
  .search { flex-direction: column; }
}
