.emt-scene-lab {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(85, 214, 190, 0.31);
  border-radius: 10px;
  background: linear-gradient(155deg, rgba(85, 214, 190, 0.11), rgba(7, 13, 20, 0.47) 48%), rgba(16, 24, 35, 0.8);
}

.emt-scene-lab-head {
  display: grid;
  justify-items: start;
  gap: 7px;
}

.emt-scene-lab-head h3 {
  margin: 0;
  font-size: 1.12rem;
}

.emt-scene-lab-head p {
  max-width: 75ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.emt-scene-context {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(7, 13, 20, 0.55);
}

.emt-scene-context-frame {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
}

.emt-scene-context[hidden] {
  display: none !important;
}

.emt-scene-context img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  display: block;
  object-fit: contain;
}

.emt-scene-context figcaption {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.emt-scene-photo-marker {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #052024;
  background: #8bf3dc;
  box-shadow: 0 2px 10px #04151d;
  font-weight: 850;
  cursor: pointer;
}

.emt-scene-photo-marker[aria-pressed="true"] {
  color: #fff;
  background: #225772;
}

.emt-scene-photo-point-list,
.emt-scene-photo-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 10px;
}

.emt-scene-photo-point,
.emt-scene-photo-choice {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(111, 182, 255, 0.4);
  border-radius: 7px;
  color: #e0eef4;
  background: rgba(9, 26, 38, 0.75);
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 0.8rem;
}

.emt-scene-photo-point[aria-pressed="true"],
.emt-scene-photo-choice[aria-pressed="true"] {
  border-color: #8bf3dc;
  background: rgba(85, 214, 190, 0.2);
}

.emt-scene-photo-question {
  display: grid;
  gap: 9px;
  padding: 10px 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.emt-scene-photo-choices { padding: 0; }
.emt-scene-photo-check { justify-self: start; }
.emt-scene-photo-result,
.emt-scene-photo-readout { margin: 0; padding: 0 12px 10px; color: #d5e6e7; line-height: 1.5; font-size: 0.83rem; }
.emt-scene-photo-result { padding: 0; }
.emt-scene-photo-marker:focus-visible,
.emt-scene-photo-point:focus-visible,
.emt-scene-photo-choice:focus-visible,
.emt-scene-photo-check:focus-visible { outline: 3px solid #ffcf69; outline-offset: 2px; }

.emt-scene-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.emt-scene-preset {
  padding: 8px 10px;
  border: 1px solid rgba(111, 182, 255, 0.28);
  border-radius: 7px;
  color: #d5e5ee;
  background: rgba(7, 13, 20, 0.47);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 730;
}

.emt-scene-preset:hover,
.emt-scene-preset:focus-visible,
.emt-scene-preset[aria-pressed="true"] {
  border-color: var(--accent);
  color: #ebfff9;
  background: rgba(85, 214, 190, 0.15);
}

.emt-scene-visual {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  border: 1px solid rgba(111, 182, 255, 0.29);
  border-radius: 9px;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(255, 255, 255, 0.055) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, rgba(255, 255, 255, 0.055) 50%, transparent 50.3%),
    repeating-linear-gradient(0deg, transparent, transparent 32px, rgba(111, 182, 255, 0.045) 33px),
    repeating-linear-gradient(90deg, transparent, transparent 32px, rgba(111, 182, 255, 0.045) 33px),
    radial-gradient(circle at 76% 47%, rgba(111, 182, 255, 0.15), transparent 31%),
    #0b1723;
  background-size: auto, auto, auto, auto, auto, auto;
}

.emt-scene-visual::before {
  content: "ILLUSTRATIVE FIELD SCENE";
  position: absolute;
  top: 12px;
  right: 13px;
  color: #94adbb;
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.emt-scene-label {
  position: absolute;
  top: 12px;
  left: 13px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.emt-scene-entry,
.emt-scene-patient,
.emt-scene-hazard,
.emt-scene-resource {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 9px;
  border-radius: 7px;
  text-align: center;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.3;
  white-space: pre-line;
}

.emt-scene-entry {
  left: 4%;
  top: 42%;
  min-width: 66px;
  border: 1px solid rgba(111, 182, 255, 0.55);
  color: #cce5fc;
  background: #153348;
}

.emt-scene-patient {
  right: 4%;
  top: 38%;
  width: min(27%, 156px);
  min-height: 70px;
  border: 1px solid rgba(85, 214, 190, 0.66);
  color: #dffff7;
  background: #184840;
  box-shadow: 0 0 30px rgba(85, 214, 190, 0.1);
}

.emt-scene-visual[data-patient="gasping"] .emt-scene-patient {
  border-color: rgba(255, 109, 122, 0.8);
  color: #ffe4e7;
  background: #622b35;
  box-shadow: 0 0 30px rgba(255, 109, 122, 0.16);
}

.emt-scene-route {
  position: absolute;
  left: 14%;
  right: 31%;
  top: 53%;
  border-top: 5px dashed #e7ab58;
  filter: drop-shadow(0 0 6px rgba(255, 204, 102, 0.32));
  transition: top 180ms ease, border-color 180ms ease;
}

.emt-scene-visual[data-route="safe"] .emt-scene-route {
  top: 30%;
  height: 27%;
  border-top: 5px solid #55d6be;
  border-left: 5px solid #55d6be;
  border-right: 5px solid #55d6be;
  border-radius: 12px 12px 0 0;
  filter: drop-shadow(0 0 8px rgba(85, 214, 190, 0.33));
}

.emt-scene-visual[data-hazard="clear"] .emt-scene-route {
  top: 53%;
  height: 0;
  border-top: 5px solid #55d6be;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.emt-scene-hazard {
  left: 39%;
  top: 48%;
  width: 20%;
  min-height: 48px;
  border: 1px solid rgba(255, 204, 102, 0.67);
  color: #ffe9b2;
  background: #584024;
}

.emt-scene-visual[data-route="safe"] .emt-scene-hazard {
  opacity: 0.56;
}

.emt-scene-team {
  position: absolute;
  left: 7%;
  bottom: 12%;
  display: flex;
  gap: 6px;
}

.emt-scene-team span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(111, 182, 255, 0.66);
  border-radius: 50%;
  color: #dbedfc;
  background: #244763;
  font-size: 0.69rem;
  font-weight: 800;
}

.emt-scene-resource {
  left: 24%;
  bottom: 12%;
  border: 1px solid rgba(85, 214, 190, 0.52);
  color: #c7fff0;
  background: #17473e;
}

.emt-scene-visual [hidden] {
  display: none !important;
}

.emt-scene-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.emt-scene-control {
  min-width: 0;
  display: grid;
  gap: 7px;
  align-content: start;
  color: #d9e7ef;
  font-size: 0.79rem;
  font-weight: 750;
}

.emt-scene-control select,
.emt-scene-control input {
  width: 100%;
}

.emt-scene-control select {
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: var(--text);
  background: #1b2935;
}

.emt-scene-control input[type="range"] {
  accent-color: var(--accent);
}

.emt-scene-control output {
  color: var(--accent);
  font-size: 0.73rem;
}

.emt-scene-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.emt-scene-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.emt-scene-guided {
  padding: 13px 15px;
  border: 1px solid rgba(111, 182, 255, 0.21);
  border-radius: 7px;
  background: rgba(111, 182, 255, 0.045);
}

.emt-scene-guided h4 {
  margin: 0 0 8px;
  font-size: 0.85rem;
}

.emt-scene-guided ol {
  margin: 0;
  padding-left: 22px;
  color: #cfdae3;
  font-size: 0.81rem;
  line-height: 1.52;
}

.emt-scene-guided li + li {
  margin-top: 5px;
}

.emt-scene-status-card {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(7, 13, 20, 0.42);
}

.emt-scene-status-card h4 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.emt-scene-status-card p,
.emt-scene-team-status,
.emt-scene-next {
  margin: 0;
  color: #d3e0e8;
  font-size: 0.82rem;
  line-height: 1.5;
}

.emt-scene-next {
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: rgba(85, 214, 190, 0.08);
  font-weight: 700;
}

.emt-scene-text-equivalent {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 740px) {
  .emt-scene-controls,
  .emt-scene-status-grid { grid-template-columns: 1fr; }
  .emt-scene-visual { min-height: 225px; }
  .emt-scene-resource { left: auto; right: 3%; bottom: 8%; max-width: 44%; font-size: 0.62rem; }
  .emt-scene-patient { right: 3%; width: 31%; font-size: 0.61rem; }
}

@media (max-width: 340px) {
  .emt-scene-team { gap: 4px; }
  .emt-scene-team span { width: 27px; height: 27px; font-size: 0.61rem; }
}
