:root {
  --bg: #0f1420;
  --panel: #171e2e;
  --border: #2a3348;
  --text: #e6e9ef;
  --muted: #8a93a6;
  --accent: #4f8cff;
  --ok: #2ecc71;
  --off: #4a5468;
  --mute: #e74c3c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

header h1 { font-size: 18px; margin: 0; }

.hint-header {
  color: var(--muted);
  font-size: 12px;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
}

button:hover { filter: brightness(1.1); }

main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  padding: 24px;
}

.empty-hint {
  color: var(--muted);
  text-align: center;
  padding: 40px 24px;
  font-size: 14px;
}

.board {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.board-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-name { margin: 0; font-size: 16px; flex: 1; overflow-wrap: anywhere; }

.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--off);
  flex-shrink: 0;
}

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

.btnRename, .btnDelete {
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 4px 8px;
  flex-shrink: 0;
}
.btnRename:hover { color: var(--accent); }
.btnDelete:hover { color: var(--mute); }

.board-id {
  font-family: monospace;
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
  margin: 4px 0 12px;
}

.channels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.channel {
  background: var(--off);
  border-radius: 6px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 12px;
}

.channel.muted { background: var(--mute); }
.channel.unmuted { background: var(--ok); }

.ch-num { font-weight: bold; }
.ch-state { font-size: 10px; opacity: 0.85; }
