* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: #06060a;
  color: #eee;
  font-family: monospace;
  min-height: 100%;
}
#layout {
  display: flex;
  min-height: 100vh;
}
#content {
  flex: 1;
  padding: 2rem;
  min-width: 0;
}
#sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #0b0b12;
  border-left: 1px solid #222;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.15s ease, padding 0.15s ease;
}
#sidebar.collapsed {
  width: 48px;
  padding: 1.5rem 0.5rem;
}
#sidebar.collapsed .nav-title,
#sidebar.collapsed .nav-link {
  display: none;
}
#sidebar-toggle {
  background: none;
  border: 1px solid #333;
  color: #9ab;
  cursor: pointer;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  align-self: flex-start;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}
#sidebar-toggle:hover { color: #fff; border-color: #555; }
.nav-title {
  color: #555;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
}
.nav-link {
  color: #9ab;
  text-decoration: none;
  padding: 0.5rem 0.6rem;
  border: 1px solid transparent;
  font-size: 0.85rem;
}
.nav-link:hover { color: #fff; border-color: #333; }
.nav-link.active { color: #8f8; border-color: #2a4; background: #0e1a10; }

h1 { margin: 0 0 0.25rem; }
#time { color:#8f8; margin-bottom: 1rem; }
#canvas-wrap { width: 100%; max-width: 720px; height: 480px; border: 1px solid #222; background:#000; }
canvas { display:block; }
#status { color:#666; font-size: 0.8rem; margin-top: 0.5rem; }
.attrib { color:#555; font-size:0.75rem; }

/* /processing page */
.proc-stats { display:flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.proc-stats div { background:#0e0e16; border:1px solid #222; padding:0.6rem 0.9rem; }
.proc-stats b { display:block; font-size:1.1rem; }
.proc-stats span { color:#666; font-size:0.7rem; text-transform:uppercase; letter-spacing:0.06em; }
table { width:100%; border-collapse: collapse; font-size: 0.82rem; margin-bottom: 1.5rem; }
th { text-align:left; color:#888; font-weight:500; padding:0.5rem 0.6rem; border-bottom:1px solid #222; position:sticky; top:0; background:#0b0b12; }
td { padding:0.45rem 0.6rem; border-bottom:1px solid #161620; vertical-align: top; }
.status-training { color:#e8a33d; }
.status-holdout { color:#5bb0ff; }
.status-done { color:#8f8; }
.status-queued { color:#666; }
.status-failed { color:#f66; }
.pos { color:#8f8; }
.neg { color:#f66; }
.desc { color:#777; font-size:0.75rem; max-width: 260px; }
