/* Shared by the simulator and the standalone privacy page. */
.language-switcher {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; flex: 0 0 auto; width: 68px; min-height: 36px; padding: 6px 9px;
  border: 1px solid var(--line, #bbbcb2); border-radius: 7px;
  color: var(--text, #292b27); background: var(--surface-1, #f5f3ed);
  font: 600 11px/1.2 system-ui, sans-serif; cursor: pointer; vertical-align: middle;
}
.language-switcher svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.language-switcher select {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  cursor: pointer; font-size: 16px; margin: 0;
}
.language-switcher:hover { border-color: var(--accent-strong, #31533b); }
.language-switcher:focus-within { outline: 2px solid var(--accent-strong, #31533b); outline-offset: 3px; }
.language-controls-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.language-controls-row .change-control-method { flex: 1; width: auto; min-width: 0; flex-wrap: wrap; gap: 3px 8px; }
.language-controls-row .language-switcher { justify-content: center; color: var(--text); }
.language-controls-row .language-switcher span { color: inherit; }
.slit-controls.quiz-mode .preferences-section { order: 3; }
.language-toolbar { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.laser-header-tools > .language-switcher { width: 68px; gap: 6px; color: var(--text); }
.site-name .language-switcher { float: right; margin-left: 12px; }
html[lang="es"] .view-title { font-size: min(16px, calc(var(--view-title-height) * .5), 2.5vw); }
html[lang="es"] .pill-btn, html[lang="es"] .tutorial-btn, html[lang="es"] .laser-quiet-btn { white-space: normal; }
html[lang="es"] .laser-header-tools { flex-wrap: wrap; justify-content: flex-end; }
html[lang="es"] .orientation-label { white-space: nowrap; }
@media (pointer: coarse) { .language-switcher { min-height: 44px; } }
@media print { .language-switcher, .language-toolbar { display: none; } }
/* Live labels cover the English lettering in the original optical schematic.
   The illustration stays unchanged; these labels translate and remain selectable. */
.optics-diagram { position: relative; width: 100%; container-type: inline-size; }
.optics-diagram > img { display: block; width: 100%; height: auto; }
.optics-label { position: absolute; display: flex; align-items: center; justify-content: center;
  background: #fff; color: #000; text-align: center; font: 700 1.35cqw/1.12 Arial, sans-serif; padding: 1px; }
.optics-figure-a, .optics-figure-b { left: 6%; width: 15%; height: 5%; font-size: 2cqw; justify-content: flex-start; }
.optics-figure-a { top: 3.2%; }
.optics-figure-b { top: 48%; }
.optics-focal-a { left: 71%; top: 4.1%; width: 5.9%; height: 2.8%; font-size: .8cqw; }
.optics-focal-b { left: 47.1%; top: 49.9%; width: 5.9%; height: 2.6%; font-size: .8cqw; }
.optics-eye { left: 84.1%; top: 41.7%; width: 15.3%; height: 5.5%; border: 1px solid #444; font-size: 1.2cqw; }
.optics-aerial { left: 46%; top: 74.7%; width: 15%; height: 4.4%; }
.optics-lens { left: 55.2%; top: 81.7%; width: 19.2%; height: 5.1%; }
.tutorial-media-figure { container-type: size; }
.tutorial-media-figure .optics-diagram {
  flex: none; width: min(100cqw, calc(100cqh * 720 / 592)); aspect-ratio: 720 / 592;
}
.tutorial-image-wrap { width: 100%; height: 100%; }
