:root {
  --bg: #0f1418;
  --bg2: #1a222a;
  --panel: #151c22;
  --text: #e6f0f2;
  --muted: #8ca0a8;
  --ok: #29d86f;
  --bad: #ff5a5f;
  --accent: #ffbf5a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(1200px 700px at 10% 10%, #22303a 0%, transparent 60%),
    radial-gradient(900px 600px at 85% 20%, #2a1f18 0%, transparent 55%),
    linear-gradient(160deg, var(--bg), var(--bg2));
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 22px 40px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2fd56a, #168f4a);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #06130a;
}

.title {
  font-size: 20px;
  font-weight: 700;
}

.subtitle {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

button {
  background: var(--accent);
  color: #2b1f0d;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 191, 90, 0.25);
}

.meta {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.legend {
  display: flex;
  gap: 16px;
  margin: 8px 0 16px;
  font-size: 12px;
  color: var(--muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.ok {
  background: var(--ok);
}

.dot.bad {
  background: var(--bad);
}

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

.card {
  background: rgba(20, 26, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  min-height: 54px;
  cursor: pointer;
}

.card.ok {
  border-color: rgba(41, 216, 111, 0.25);
}

.card.bad {
  border-color: rgba(255, 90, 95, 0.25);
}

.card .code {
  font-weight: 700;
  font-size: 14px;
}

.card .detail {
  font-size: 11px;
  color: var(--muted);
}

.card .status {
  font-size: 11px;
  margin-top: 4px;
}

.footer {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions {
    width: 100%;
    justify-content: space-between;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
