/* 3D billboard preview. The server-rendered photo remains until the viewer is ready. */
.bb-viewer { margin-bottom: 18px; }
.bb-viewer-stage {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-sunken);
  overflow: hidden;
}
.bb-viewer-stage[hidden] { display: none; }
.bb-viewer canvas { display: block; width: 100%; height: clamp(300px, 46vw, 460px); touch-action: pan-y; cursor: grab; }
.bb-viewer canvas:active { cursor: grabbing; }
.bb-viewer-fallback { display: block; }
.bb-viewer.is-ready .bb-viewer-fallback { display: none; }
.bb-viewer-tools {
  position: absolute; inset-inline: 10px; bottom: 10px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.bb-viewer-tools > * { pointer-events: auto; }
.bb-viewer-views, .bb-viewer-zoom { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: color-mix(in srgb, var(--surface-raised) 90%, transparent); border: 1px solid var(--border-subtle); }
.bb-viewer-tools button {
  font: inherit; font-size: 12.5px; color: var(--ink-secondary); background: transparent; border: 0; border-radius: 7px; padding: 5px 10px; cursor: pointer;
}
.bb-viewer-tools button:hover { background: var(--surface-hover); color: var(--ink-primary); }
.bb-viewer-tools button[aria-pressed="true"] { background: var(--brand-500); color: #fff; }
.bb-viewer-tools button:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 1px; }
.bb-viewer-note { margin: 8px 2px 0; font-size: 12px; color: var(--ink-muted); }
.bb-viewer-hint { position: absolute; inset-inline-start: 12px; top: 10px; font-size: 11.5px; color: var(--ink-muted); background: color-mix(in srgb, var(--surface-raised) 85%, transparent); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border-subtle); pointer-events: none; }
