/* Live build HUD (streamed generation): counter, approximate-result note, Stop button. */
.stream-hud {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  max-width: calc(100% - 120px);
  padding: 8px 12px;
  border: 2px solid var(--ink, #000);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  font-family: var(--sans, sans-serif);
  color: var(--ink, #000);
  pointer-events: auto;
}
.stream-hud[hidden] { display: none; }
.stream-count {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stream-note {
  margin: 0;
  width: 100%;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.75);
}
.stream-note[hidden] { display: none; }
.stream-stop {
  min-height: 32px;
  padding: 4px 12px;
  border: 2px solid var(--ink, #000);
  border-radius: 8px;
  background: #fff;
  color: var(--ink, #000);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.stream-stop:hover { background: rgba(0, 0, 0, 0.07); }
.stream-stop:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
.stream-stop[hidden] { display: none; }

@media (max-width: 520px) {
  .stream-hud { left: 10px; right: 72px; top: 10px; max-width: none; } /* keep clear of the toolbar on the right */
}
