@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --ok: #2f9e5f;
  --warn: #d4a017;
  --bad: #d6453d;
  --ink: #0f1210;
  --muted: rgba(15, 18, 16, 0.55);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: #0c0d0c;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

.mon-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: #121312;
  color: #cfcfc8;
  font-size: 0.9rem;
}
.mon-top a { color: #9fd9c2; text-decoration: none; }
.mon-brand { font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.mon-user { margin-left: auto; opacity: 0.7; }

.board {
  flex: 1;
  display: grid;
  gap: 10px;
  padding: 10px;
  min-height: 0;
}
.board[data-cols="1"] { grid-template-columns: 1fr; }
.board[data-cols="2"] { grid-template-columns: 1fr 1fr; }
.board[data-cols="3"] { grid-template-columns: 1fr 1fr 1fr; }
.board[data-cols="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.board.empty {
  place-items: center;
  color: #888;
  font-size: 1.1rem;
}

.tile {
  border-radius: 4px;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  overflow: auto;
  color: #0f1210;
}
.tile.ok { background: var(--ok); }
.tile.warn { background: var(--warn); }
.tile.bad { background: var(--bad); color: #fff; }
.tile h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tile .summary {
  margin-top: auto;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  align-self: flex-end;
}
.tile ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.tile li {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  padding: 0.45rem 0.65rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.95rem;
}
.tile.bad li { background: rgba(0, 0, 0, 0.28); }
.tile a { color: inherit; font-weight: 600; }
.tile .detail { opacity: 0.85; font-size: 0.85rem; }

@media (max-width: 800px) {
  .board, .board[data-cols="2"], .board[data-cols="3"], .board[data-cols="4"] {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
}
