:root { color-scheme: dark; --bg:#0f141a; --card:#1a222c; --text:#e8eef4; --muted:#93a3b1; --accent:#2dd4bf; --err:#f87171; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin:0; font-family: system-ui, sans-serif; background:var(--bg); color:var(--text); }
.muted { color:var(--muted); } .error { color:var(--err); }
.card, .login-card { background:var(--card); border-radius:12px; padding:1.25rem; }
.login-wrap { min-height:100vh; display:grid; place-items:center; padding:1rem; }
.login-card { width:min(360px,100%); display:grid; gap:.75rem; }
.login-card input { width:100%; padding:.6rem; border-radius:8px; border:1px solid #334155; background:#0b1016; color:var(--text); }
button { padding:.6rem 1rem; border-radius:8px; border:0; background:var(--accent); color:#06251f; font-weight:600; cursor:pointer; }
button.ghost { background:transparent; color:var(--text); border:1px solid #334155; }
.topbar { display:flex; gap:1rem; align-items:center; flex-wrap:wrap; padding:1rem; position:relative; }
.topbar h1 { font-size:1.15rem; margin:0; }
.brand-logo { display:block; }
.brand-logo-card { width:76px; height:76px; object-fit:cover; border-radius:12px; justify-self:center; }
.brand-logo-top { width:44px; height:44px; object-fit:cover; border-radius:8px; position:absolute; left:50%; transform:translateX(-50%); }
.tabs { display:flex; gap:.5rem; flex-wrap:wrap; margin-left:auto; }
.tab { background:var(--card); color:var(--text); }
.tab.active { background:var(--accent); color:#06251f; }
.tab-panel { padding:0 1rem 1rem; }
#scene-container { width:100%; height:min(62vh,560px); background:#0b1016; border-radius:12px; overflow:hidden; }
#scene-container canvas { display:block; width:100%; height:100%; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1rem; }
.bot-card h3 { margin:.25rem 0; }
.dot { display:inline-block; width:.7rem; height:.7rem; border-radius:50%; background:#6b7280; vertical-align:middle; margin-right:.4rem; }
.dot.trabalhando { background:#facc15; } .dot.pronto { background:#4ade80; }
.dot.esperando { background:#f59e0b; } .dot.erro { background:#ef4444; }
.history { list-style:none; padding:0; display:grid; gap:.4rem; }
.history li, #events-list li { background:var(--card); border-radius:8px; padding:.6rem .8rem; }
table { border-collapse:collapse; } td, th { border:1px solid #334155; padding:.45rem .7rem; text-align:left; }
