:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #687586;
  --line: #d9e0e7;
  --accent: #b10f46;
  --accent-dark: #7c1236;
  --green: #147f54;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #111820;
  color: #fff;
  padding: 24px 18px;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
}

.brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  font-weight: 800;
}

.brand strong {
  font-size: 18px;
}

nav {
  display: grid;
  gap: 6px;
}

nav a {
  border-radius: 8px;
  color: #cfdae4;
  padding: 10px 12px;
  font-size: 14px;
}

nav a.active,
nav a:hover {
  background: #202c38;
  color: #fff;
}

.content {
  padding: 28px;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.top p {
  margin: 0 0 6px;
  color: var(--muted);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.15;
}

h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.status {
  border: 1px solid rgba(20, 127, 84, 0.24);
  border-radius: 8px;
  background: rgba(20, 127, 84, 0.09);
  color: var(--green);
  padding: 8px 12px;
  white-space: nowrap;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

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

article span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

article strong {
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
}

article p,
.panel p,
li {
  color: var(--muted);
  line-height: 1.55;
}

.panel {
  margin-bottom: 14px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--accent-dark);
  padding: 2px 5px;
  font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

  .sidebar {
    position: static;
  }

  nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid,
  .columns {
    grid-template-columns: 1fr;
  }

  .top {
    display: grid;
  }
}
