:root { --bg:#0f1115; --panel:#171a21; --text:#e6e8ee; --muted:#8b92a5; --accent:#4f8cff; --err:#ff6b6b; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.5 system-ui, sans-serif; background:var(--bg); color:var(--text); }
.muted { color:var(--muted); } .center { text-align:center; }
button { background:var(--accent); color:#fff; border:0; border-radius:6px; padding:.6rem 1rem; font:inherit; cursor:pointer; }
input { width:100%; padding:.6rem .7rem; margin-top:.25rem; background:var(--bg); color:var(--text); border:1px solid #2a2f3a; border-radius:6px; font:inherit; }
label { display:block; margin-bottom:1rem; }

body.login { min-height:100vh; display:grid; place-items:center; padding:1rem; }
.card { width:100%; max-width:360px; background:var(--panel); padding:2rem; border-radius:12px; }
.card h1 { margin:0 0 1.5rem; font-size:1.4rem; }
.card button { width:100%; }
.error { color:var(--err); margin:0 0 1rem; }

body.dash { display:grid; grid-template-columns:220px 1fr; height:100vh; }
aside { background:var(--panel); display:flex; flex-direction:column; padding:1rem; gap:1rem; }
.brand { font-weight:600; font-size:1.1rem; }
nav { display:flex; flex-direction:column; gap:.25rem; flex:1; }
nav a { color:var(--text); text-decoration:none; padding:.5rem .7rem; border-radius:6px; }
nav a:hover { background:#222733; } nav a.active { background:var(--accent); }
.logout { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.logout button { padding:.35rem .7rem; background:#2a2f3a; }
main { position:relative; min-width:0; }
iframe { width:100%; height:100%; border:0; background:#fff; }
#hint { margin-top:40vh; }
@media (max-width:640px) {
  body.dash { grid-template-columns:1fr; grid-template-rows:auto 1fr; }
  aside { flex-direction:row; align-items:center; flex-wrap:wrap; }
  nav { flex-direction:row; flex-wrap:wrap; }
}
