:root {
  --bg: #0b1020;
  --card: #141b31;
  --line: #2a355c;
  --text: #e9efff;
  --muted: #a8b2d8;
  --accent: #5d7bff;
  --good: #22c55e;
  --bad: #ef4444;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, #0a1024, #0b1020);
  color: var(--text);
  font-family: Inter, system-ui, Arial, sans-serif;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
h1, h2, h3, p { margin: 0 0 12px 0; }
.muted { color: var(--muted); font-size: 14px; }
input, select, button, textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f1730;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
}
button {
  background: var(--accent);
  border: 0;
  cursor: pointer;
  font-weight: 600;
}
button.secondary { background: #2a355c; }
button.danger { background: var(--bad); }
.row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.slot-list {
  display: grid;
  gap: 10px;
}
.slot-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: #101833;
}
.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #22305b;
  font-size: 12px;
}
.ok { color: #8efab3; }
.bad { color: #ff9fa8; }
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.list {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}
.list-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #1f2a4d;
}
.list-item:last-child { border-bottom: 0; }
.chart {
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}
#rpsCanvas { width: 100%; height: 160px; }
@media (max-width: 900px) {
  .grid, .two, .row { grid-template-columns: 1fr; }
}
