:root {
  --bg: #F6F7F4;
  --card: #ffffff;
  --line: #E6E8E4;
  --text: #161616;
  --muted: #6B7280;
  --action: #009B48;
  --yellow: #FFC700;
  --danger: #B42318;
  --shadow: 0 8px 24px rgba(22, 22, 22, 0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Manrope, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--yellow);
}
.brand { font-weight: 800; letter-spacing: -0.03em; }
.brand span { font-weight: 600; margin-left: 8px; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav button, .ghost, .action {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 14px;
}
.nav button {
  background: transparent;
  border-color: rgba(22, 22, 22, 0.16);
}
.nav button.active { background: #161616; color: white; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 20px; }
.grid { display: grid; gap: 14px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.card h2, .card h3 { margin: 0 0 8px; }
.muted { color: var(--muted); }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.stat { background: var(--bg); border-radius: 12px; padding: 8px; }
.stat b { display: block; font-size: 16px; }
.stat span { color: var(--muted); font-size: 12px; }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.pill.on { background: #E8F8EE; color: var(--action); }
.pill.off { background: #FDECEC; color: var(--danger); }
.action {
  background: var(--action);
  color: white;
  border: 0;
  font-weight: 700;
}
.ghost { background: white; border: 1px solid var(--line); }
.login {
  max-width: 420px;
  margin: 8vh auto;
  padding: 0 16px;
}
.login .mark {
  background: var(--yellow);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  font-weight: 800;
  font-size: 28px;
}
label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 6px; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: white;
}
.error { color: var(--danger); font-weight: 700; }
.list { display: grid; gap: 8px; }
.list button.line, .line {
  text-align: left;
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.section { margin-top: 14px; }
.note { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .top { align-items: flex-start; flex-direction: column; }
}
