:root {
  --bg: #f6f8f4;
  --ink: #17201d;
  --muted: #64716c;
  --line: #dce3de;
  --panel: #ffffff;
  --accent: #0e7c66;
  --accent-dark: #0a5e4d;
  --warn: #a15c16;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.login {
  align-items: center;
  display: flex;
  min-height: 100vh;
  justify-content: center;
  padding: 24px;
}

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

.sidebar {
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 24px 18px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 28px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav a {
  border-radius: 8px;
  color: var(--muted);
  padding: 10px 12px;
}

.nav a:hover {
  background: #eef5f1;
  color: var(--ink);
}

.main {
  padding: 28px;
}

.page-title {
  align-items: flex-end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 24px;
}

h1 {
  font-size: 28px;
  margin: 0 0 6px;
}

h2 {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.metric strong {
  display: block;
  font-size: 26px;
  margin-top: 8px;
}

.table {
  border-collapse: collapse;
  width: 100%;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 8px;
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 13px;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 6px;
}

.form input,
.form select,
.form textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 11px;
  width: 100%;
}

.form textarea {
  min-height: 84px;
  resize: vertical;
}

.button {
  background: var(--accent);
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
}

.button:hover {
  background: var(--accent-dark);
}

.status {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.active {
  background: #e4f5ed;
  color: #0b6b55;
}

.draft,
.paused {
  background: #fff1dc;
  color: var(--warn);
}

.error {
  background: #ffe8e4;
  border: 1px solid #efb6aa;
  border-radius: 8px;
  color: #9b2c1e;
  padding: 10px 12px;
}

@media (max-width: 900px) {
  .shell,
  .two,
  .four {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
}
