:root{
  --bg:#0f1115; --panel:#161a22; --muted:#a9b3c7; --text:#e7ecf7;
  --accent:#6aa9ff; --ok:#7bd88f; --err:#ff8888;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,Segoe UI,Roboto,Arial}
.topbar{display:flex;align-items:center;gap:12px;padding:10px 14px;background:#111520;border-bottom:1px solid #232838}
.brand{font-weight:700}
.spacer{flex:1}
.me{display:flex;align-items:center;gap:8px}
.me img{width:28px;height:28px;border-radius:50%;object-fit:cover;border:1px solid #2b3350}
.layout{display:grid;grid-template-columns:320px 1fr;gap:12px;padding:12px}
.left{display:flex;flex-direction:column;gap:12px}
.panel{background:var(--panel);border:1px solid #232838;border-radius:12px;padding:12px}
h2,h3{margin:0 0 10px}
button{background:#1f2533;border:1px solid #2b3550;color:var(--text);padding:8px 12px;border-radius:10px;cursor:pointer}
button:disabled{opacity:.5;cursor:not-allowed}
.list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}
.list li{display:flex;justify-content:space-between;gap:8px;background:#111520;border:1px solid #232838;border-radius:8px;padding:8px}
.chatlog{height:200px;overflow:auto;border:1px solid #232838;border-radius:8px;padding:8px;background:#0f1115}
.board-wrap{background:var(--panel);border:1px solid #232838;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px}
.board-header{display:flex;justify-content:space-between;align-items:center}
.status{color:var(--muted)}
.auth .card{max-width:420px;margin:12vh auto;padding:24px;background:var(--panel);border:1px solid #232838;border-radius:14px}
label{display:block;margin:8px 0 4px;color:var(--muted)}
input[type="text"],input[type="password"],input[type="file"]{width:100%;padding:10px;border:1px solid #2a3040;background:#0f1115;color:#e7ecf7;border-radius:8px}
.err{color:var(--err)}
.msg{color:var(--ok)}
.actions{display:flex;gap:8px}
canvas{width:100%;height:auto;background:#121621;border:1px solid #232838;border-radius:10px}