/* Shared controls for the Lavinda Lab structure viewers (lab, lab/structures, lab/hdao). */
.lv-shell { position: relative; background: var(--lv-bg, #232b3a); }
.lv-shell .stage { position: relative; overflow: hidden; isolation: isolate; contain: layout paint; }
.lv-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 4px; }
.lv-btn {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(243,239,230,0.34); background: rgba(243,239,230,0.08);
  color: #f3efe6; -webkit-text-fill-color: #f3efe6;
  font: 600 14.5px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.lv-btn:hover { background: rgba(243,239,230,0.18); }
.lv-btn:focus-visible { outline: 3px solid #f5b65b; outline-offset: 2px; }
.lv-btn[hidden] { display: none; }
.lv-play, .lv-focus { border-color: #f5b65b; }
.lv-play[aria-pressed="true"] { background: #f5b65b; color: #07152e; -webkit-text-fill-color: #07152e; }
.lv-status {
  margin: 0; padding: 6px 16px 14px; min-height: 3.2em; max-width: none;
  color: rgba(243,239,230,0.86); -webkit-text-fill-color: rgba(243,239,230,0.86);
  font: 400 14.5px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* no WebGL: the video stands in, so the camera controls are not offered */
.lv-fallback .lv-bar, .lv-fallback .lv-status { display: none; }
/* controls appear once the structure is actually loaded */
.lv-shell:not(.lv-ready) .lv-bar { visibility: hidden; }

/* Full screen stays inside this viewer's own box. */
.lv-shell:fullscreen { display: flex; flex-direction: column; width: 100%; height: 100%; }
.lv-shell:fullscreen .stage { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; }
.lv-shell.lv-max {
  position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.lv-shell.lv-max .stage { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; }
html.lv-noscroll, html.lv-noscroll body { overflow: hidden; }

@media (max-width: 520px) {
  .lv-bar { gap: 6px; padding: 10px 10px 2px; }
  .lv-btn { padding: 0 13px; font-size: 14px; }
}
