:root {
  --bg: #eef3f7;
  --surface: #ffffff;
  --surface-alt: #f6f8fb;
  --line: #d8e0ea;
  --text: #132033;
  --muted: #617185;
  --accent: #1f6feb;
  --accent-soft: #dbe9ff;
  --good: #0f9d6c;
  --warn: #d97706;
  --shadow: 0 22px 48px rgba(17, 29, 45, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 111, 235, 0.09), transparent 28%),
    linear-gradient(180deg, #f8fbfd 0%, var(--bg) 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: linear-gradient(180deg, #0f1724 0%, #15263e 100%);
  color: #eff4fb;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2b7fff, #37c9aa);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
}
.brand-copy h1 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-copy p {
  margin: 4px 0 0;
  color: rgba(239, 244, 251, 0.72);
  font-size: 12px;
}
.nav-group {
  display: grid;
  gap: 8px;
}
.nav-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  color: rgba(239, 244, 251, 0.8);
  background: rgba(255, 255, 255, 0.03);
}
.nav-item.active {
  color: white;
  background: linear-gradient(135deg, rgba(43, 127, 255, 0.3), rgba(55, 201, 170, 0.2));
  border-color: rgba(111, 181, 255, 0.45);
}
.nav-item small {
  display: block;
  margin-top: 4px;
  color: inherit;
  opacity: 0.72;
}
.sidebar-note {
  margin-top: 24px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(239, 244, 251, 0.8);
}
.content {
  padding: 24px 28px 40px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.topbar .title {
  display: grid;
  gap: 8px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}
.topbar h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}
.topbar p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.7;
}
.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  font-size: 13px;
  color: var(--muted);
}
.chip.accent {
  background: linear-gradient(135deg, #1f6feb, #37c9aa);
  border: none;
  color: white;
  font-weight: 700;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card, .surface-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.stat-card {
  padding: 18px 18px 16px;
}
.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.stat-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 28px;
}
.stat-card small {
  color: var(--good);
  font-weight: 600;
}
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 18px;
}
.surface-card {
  padding: 20px;
}
.surface-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.surface-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.table-wrap {
  margin-top: 18px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: white;
}
thead th {
  background: #f8fbff;
  color: #3b4b60;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
tbody td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}
tbody tr:last-child td {
  border-bottom: none;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #edf7f1;
  color: #0f7c53;
}
.status.review { background: #fff4e5; color: #b15b00; }
.status.paused, .status.blocked { background: #ffe9e7; color: #b63b2f; }
.side-stack {
  display: grid;
  gap: 14px;
}
.mini-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}
.mini-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}
.footer-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .content { padding: 18px; }
  .topbar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .stats-grid { grid-template-columns: 1fr; }
  .topbar h2 { font-size: 28px; }
}
