:root {
  --bg: #eef3e7;
  --panel: #fbfff6;
  --ink: #17324a;
  --muted: #60716a;
  --line: #c9d8c1;
  --accent: #2f7d4f;
  --accent-2: #d96f4a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  background: linear-gradient(180deg, #f8fbf2 0%, #eaf3e3 100%);
  color: var(--ink);
}

.shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 24px;
  background: rgba(255,255,255,0.72);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.sidebar h1 { margin: 0 0 8px; font-size: 24px; }
.muted { color: var(--muted); }

.auth-box, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
}

.nav {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.nav button, button {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.nav button {
  text-align: left;
  background: #dcebd5;
  color: var(--ink);
}

.nav button.active {
  background: var(--ink);
  color: #fff;
}

input, textarea, select {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.content {
  padding: 24px;
}

.tab { display: none; }
.tab.active { display: block; }

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.card .value {
  font-size: 28px;
  font-weight: 700;
  margin-top: 8px;
}

.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-form input,
.inline-form select {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

th, td {
  padding: 12px 10px;
  border-bottom: 1px solid #e7efe1;
  text-align: left;
  font-size: 14px;
}

th { background: #eef6e8; }

.json-box {
  background: #10181f;
  color: #d8f6d0;
  border-radius: 14px;
  padding: 16px;
  overflow: auto;
  min-height: 220px;
}

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--line); }
}

