:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --line: #d9dee7;
  --text: #17202a;
  --muted: #5f6b7a;
  --blue: #1f6feb;
  --green: #1f8a4c;
  --amber: #a86100;
  --red: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
}
a { color: var(--blue); text-decoration: none; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: #111827;
  color: white;
}
header a { color: white; }
nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
nav a {
  padding: 6px 8px;
  border-radius: 4px;
  color: #e5e7eb;
}
nav a:hover { background: #263244; }
main { padding: 20px; max-width: 1440px; margin: 0 auto; }
h1 { font-size: 28px; margin: 0 0 16px; }
h2 { font-size: 20px; margin: 22px 0 10px; }
h3 { font-size: 16px; margin: 16px 0 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.metric { font-size: 30px; font-weight: 700; }
.muted { color: var(--muted); }
.toolbar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin: 10px 0 18px; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
input, select, textarea, button {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: white;
}
textarea { width: 100%; min-height: 80px; }
button, .button {
  cursor: pointer;
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  display: inline-block;
}
button.secondary, .button.secondary { background: white; color: var(--text); border-color: var(--line); }
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { background: #eef1f5; font-size: 13px; color: #374151; }
tr:last-child td { border-bottom: 0; }
.status { padding: 3px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.green { background: #e8f7ef; color: var(--green); }
.amber { background: #fff3df; color: var(--amber); }
.red { background: #fde8e7; color: var(--red); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.login { max-width: 420px; margin: 8vh auto; }
.nowrap { white-space: nowrap; }
@media (max-width: 860px) {
  header { align-items: flex-start; flex-direction: column; }
  main { padding: 12px; }
  .split { grid-template-columns: 1fr; }
  table { font-size: 13px; }
}
