/* The real sala's additions to the design's sala.css: the stage fills the window, dialogs stay
   in view, and the pieces the prototype only drew (live camera, meters, recorder). */
.stage.sala-stage{width:100%;min-height:100vh;border-radius:0;box-shadow:none}
[hidden]{display:none !important}
.screen{flex:1;display:flex;flex-direction:column}
.overlay{position:fixed;border-radius:0}
.seg-lbl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qsheet .es-ins{font-weight:600}
.stim-img{width:100%;border-radius:12px;border:1px solid var(--line);display:block}
.stim-video{width:100%;border-radius:12px;background:#000;display:block}
.opt:has(.opt-input:checked){border-color:var(--primary);border-width:2px;background:var(--primary-tint);padding:11.5px 17.5px}
.opt:has(.opt-input:checked) .opt-key{background:var(--primary);border-color:var(--primary);color:#fff}
.intro-text{white-space:pre-line}
.cam-live{width:220px;aspect-ratio:4/3;border-radius:12px;background:#2c3a34;object-fit:cover;display:block;transform:scaleX(-1)}
.rec .cam-live{width:min(320px,100%)}
.meter i{transition:background .08s}
.check-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.help-text{margin:0}
.pre-hdr{padding:10px 10px 10px 22px}
.pre-hdr .small{padding-right:12px}
@container stage (min-width:701px){.split .passage.is-gone{display:block !important}.split .qsheet.is-gone{display:flex !important}}
@container stage (max-width:700px){
  .check{grid-template-columns:32px 1fr}
  .check-actions{grid-column:2;justify-content:flex-start}
  .rules{grid-template-columns:1fr}
  .facts{grid-template-columns:1fr}
  .facts dt{border-bottom:0;padding-bottom:0}
}
.qnum:focus,h1[tabindex="-1"]:focus,h2[tabindex="-1"]:focus{box-shadow:none;outline:none}

/* ---------- the exam page: a frame the size of the window ----------
   Header and section bars at the top, Anterior / Siguiente always at the bottom; only the middle
   scrolls. A question with a stimulus (text, audio, video, image) shows it on the left and the
   question on the right, each scrolling on its own and filling the height. */
body:has([data-exam]){overflow:hidden}
.sala-stage:has([data-exam]){height:100dvh;min-height:0}
[data-exam]{display:flex;flex-direction:column;height:100dvh;min-height:0}
[data-exam] .hdr{position:relative;top:0;flex:none}
[data-exam] .secnav,[data-exam] .banner{flex:none}
[data-exam] > .screen{flex:1;min-height:0;display:flex;flex-direction:column}
[data-exam] > [data-screen="exam"] .exam{flex:1;min-height:0;overflow:auto;padding-bottom:16px}
[data-exam] > [data-screen="review"]{overflow:auto}
[data-exam] .botnav{position:relative;bottom:auto;flex:none;margin:8px 16px 12px}
.exam > [data-q]:has(> .split){flex:1;min-height:0;display:flex;flex-direction:column}
.exam .split{flex:1;min-height:0;max-width:1440px;align-items:stretch;grid-template-rows:minmax(0,1fr)}
.exam .split > .passage,.exam .split > .qsheet{min-height:0;max-height:none;overflow:auto}
.exam .one > .qsheet{max-width:880px}
.stim{display:flex;flex-direction:column;gap:16px}
.stim .passage-meta{margin-bottom:0}
.stim--image .stim-img,.stim--video .stim-video{max-height:calc(100dvh - 300px);object-fit:contain}
@container stage (max-width:700px){
  .exam .split{grid-template-rows:auto minmax(0,1fr);gap:10px}
  [data-exam] .botnav{margin:6px 8px 8px}
}
