*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: #0f1118;
  color: #e5e7eb;
  font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(15, 17, 24, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}
.toolbar h1 { font-size: 13px; font-weight: 600; margin-right: 4px; }
.toolbar__lede {
  flex: 1 1 100%;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin: -4px 0 2px;
}
.bls-visuals-demo--new-features .toolbar__lede { display: block; }
.bls-visuals-demo:not(.bls-visuals-demo--new-features) .toolbar__lede { display: none; }
.toolbar__home {
  font-size: 12px;
  font-weight: 600;
  color: rgba(158, 203, 255, 0.95);
  text-decoration: none;
  margin-right: 6px;
}
.toolbar__home:hover { text-decoration: underline; }
.toolbar label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 6px;
}
.toolbar button {
  font: inherit;
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
}
.toolbar button.active {
  background: rgba(158, 203, 255, 0.22);
  border-color: rgba(158, 203, 255, 0.55);
}
.toolbar button.primary {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.55);
}
.toolbar button.danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
}
.toolbar__sep { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.12); }
.visual-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.visual-pill--new {
  position: relative;
  padding-right: 14px;
}
.visual-pill--new::after {
  content: "New";
  position: absolute;
  top: -5px;
  right: -2px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(250, 204, 21, 0.95);
  color: #1a1a1a;
}
.stage {
  position: fixed;
  inset: 0;
  padding-top: 56px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.bls-visuals-demo--new-features .stage { padding-top: 78px; }
.canvas-wrap {
  flex: 1;
  position: relative;
  min-height: 0;
  background: #b3ffb3;
}
canvas { display: block; width: 100%; height: 100%; }
.hint {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  text-align: center;
  max-width: 90vw;
}
