:root {
  --bg: #0f1420;
  --panel: #171e2e;
  --border: #2a3350;
  --text: #e7ecf7;
  --text-soft: #8b96b5;
  --accent: #6fd3c7;
}

* { box-sizing: border-box; }

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

#login-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

#login-screen h1 { font-size: 22px; margin: 0; }
#login-screen p { color: var(--text-soft); margin: 0 0 8px; }

#app {
  display: none;
  height: 100%;
  grid-template-columns: 1fr 300px;
}
#app.visible { display: grid; }

#room-container { position: relative; background: #0a0d16; }

#sidebar {
  background: var(--panel);
  border-left: 1px solid var(--border);
  padding: 16px;
  overflow-y: auto;
}
#sidebar h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); margin: 0 0 12px; }

.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.member-row img { width: 28px; height: 28px; border-radius: 50%; }
.member-row .name { font-size: 13px; font-weight: 600; }
.member-row .stat { font-size: 11px; color: var(--text-soft); }

#me-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 10px; margin-bottom: 16px;
  background: #10182a; border-radius: 8px;
}
#me-badge img { width: 32px; height: 32px; border-radius: 50%; }
#me-badge .name { font-size: 13px; font-weight: 600; }
#me-badge button { margin-left: auto; background: none; border: 1px solid var(--border); color: var(--text-soft); border-radius: 6px; padding: 4px 8px; font-size: 11px; cursor: pointer; }

#hook-setup-btn {
  width: 100%; margin-bottom: 12px; padding: 8px; font-size: 12px; text-align: left;
  background: #10182a; border: 1px solid var(--border); color: var(--text); border-radius: 6px; cursor: pointer;
}
#hook-setup-btn:hover { border-color: var(--accent); }
#hook-setup-panel { margin-bottom: 16px; padding: 10px; background: #0d1320; border-radius: 8px; border: 1px solid var(--border); }
#hook-setup-panel .hint { font-size: 11px; color: var(--text-soft); margin: 8px 0 4px; }
#hook-setup-panel code { background: #0a0d16; padding: 1px 4px; border-radius: 4px; }
.copy-box { position: relative; }
.copy-box pre {
  font-size: 10.5px; background: #0a0d16; border-radius: 6px; padding: 8px 32px 8px 8px;
  overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 0; max-height: 160px; overflow-y: auto;
}
.copy-btn {
  position: absolute; top: 4px; right: 4px; font-size: 10px; padding: 2px 6px;
  background: var(--accent); color: #0a0d16; border: none; border-radius: 4px; cursor: pointer;
}
.copy-btn.copied { background: #4caf50; }
