html, body {
  margin: 0;
  height: 100%;
  background: #050505;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}
body {
  display: flex;
  flex-direction: column;
}
.direct-bar {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: #171717;
  border-bottom: 1px solid #2a2a2a;
}
.direct-bar.hidden { display: none; }
.direct-bar input {
  flex: 1;
  min-width: 0;
  border: 1px solid #444;
  background: #0e0e0e;
  color: #fff;
  border-radius: 6px;
  padding: 8px 10px;
}
.direct-bar button {
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
}
.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #050505;
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #050505;
}
.overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  box-sizing: border-box;
}
.status {
  align-self: flex-start;
  max-width: 92%;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  transition: opacity .2s ease;
}
.status.ok { opacity: .12; }
.status.error { opacity: 1; background: rgba(140, 0, 0, .78); }
.stats {
  align-self: flex-end;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,.45);
  font-size: 11px;
  color: #ddd;
}
