:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; }
body { margin:0; background:#0f1220; color:#e9ecff; }
a { color:#9bc2ff; text-decoration:none; }
.wrap { max-width: 980px; margin: 24px auto; padding: 0 12px; }
.topbar { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; background:#151a2e; position:sticky; top:0; }
.brand { font-weight:700; }
.right { display:flex; gap:10px; align-items:center; }
.btn { background:#242a49; padding:8px 12px; border-radius:10px; }
.pill { background:#1e2440; padding:6px 10px; border-radius:999px; font-size: 13px; }
.grid { display:grid; grid-template-columns: 2fr 1fr; gap: 14px; max-width: 1100px; margin: 14px auto; padding: 0 12px; }
.card { background:#151a2e; border:1px solid #232a4a; border-radius:16px; padding:14px; }
h1,h2 { margin: 0 0 10px; }
.row { display:flex; gap:10px; align-items:center; }
input, select { width:100%; background:#0f1220; border:1px solid #2a335f; color:#e9ecff; padding:10px 12px; border-radius:12px; }
button { background:#2b5cff; border:0; color:white; padding:10px 14px; border-radius:12px; cursor:pointer; }
button.mini { padding:4px 8px; border-radius:10px; font-size:12px; background:#3a436f; }
.chatbox { height: 55vh; overflow:auto; background:#0f1220; border:1px solid #2a335f; border-radius:14px; padding:10px; margin-bottom:10px; }
.chatbox.small { height: 35vh; }
.line { padding:6px 4px; border-bottom:1px dashed rgba(255,255,255,0.07); }
.muted { color: rgba(233,236,255,0.7); font-size: 13px; }
.msg { margin-top:10px; }
.userrow { display:flex; justify-content:space-between; gap:12px; padding:10px; border:1px solid #232a4a; border-radius:14px; margin-bottom:10px; }
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}
.grid.grid3 { grid-template-columns: 1fr 2fr 1fr; }
.roomlist { display:flex; flex-wrap:wrap; gap:8px; }
.roomcreate { display:flex; flex-direction:column; gap:10px; margin-top:10px; }

@media (max-width: 900px) {
  .grid.grid3 { grid-template-columns: 1fr; }
}

.grid.grid3 { grid-template-columns: 1fr 2fr 1fr; }
.roomlist { display:flex; flex-wrap:wrap; gap:8px; }
.roomcreate { display:flex; flex-direction:column; gap:10px; margin-top:10px; }

@media (max-width: 900px) {
  .grid.grid3 { grid-template-columns: 1fr; }
}