.emt-paed-lab {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: clamp(14px, 2.5vw, 26px);
  border: 1px solid #497180;
  border-radius: 22px;
  background: radial-gradient(circle at 82% 2%, #275968 0, transparent 36%), linear-gradient(145deg, #102c3b, #102634 68%, #172b38);
  color: #f2fafb;
}
.emt-paed-lab * { box-sizing: border-box; }
.emt-paed-lab [hidden] { display: none !important; }
.emt-paed-lab :is(h3, h4, p) { margin: 0; }
.emt-paed-lab button { cursor: pointer; font: inherit; }
.emt-paed-lab button:disabled { cursor: not-allowed; opacity: .52; }
.emt-paed-lab :is(button, a, input):focus-visible { outline: 3px solid #ffd38e; outline-offset: 3px; }
.emt-paed-head { display: grid; gap: 8px; }
.emt-paed-eyebrow { color: #9ce8d2; font-size: .72rem; font-weight: 900; letter-spacing: .15em; }
.emt-paed-head h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); line-height: 1.16; }
.emt-paed-head p { max-width: 85ch; color: #cadfe5; line-height: 1.48; }
.emt-paed-panel { min-width: 0; padding: clamp(12px, 1.6vw, 19px); border: 1px solid #4d7582; border-radius: 17px; background: #173745; }
.emt-paed-panel h4 { margin: 0; color: #e1f8f2; font-size: 1.01rem; }
.emt-paed-muted { color: #bdd6df; font-size: .82rem; line-height: 1.43; }
.emt-paed-photo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: start; gap: 11px 16px; }
.emt-paed-photo > :is(.emt-paed-photo-eyebrow, h4, .emt-paed-muted, .emt-paed-photo-credit) { grid-column: 1 / -1; }
.emt-paed-photo-eyebrow { color: #a8ecda; font-size: .7rem; font-weight: 850; letter-spacing: .11em; }
.emt-paed-photo-figure { grid-column: 1; grid-row: 4 / span 3; min-width: 0; margin: 0; overflow: hidden; border: 1px solid #628792; border-radius: 13px; background: #0c2934; }
.emt-paed-photo-frame { position: relative; width: 100%; aspect-ratio: 1000 / 667; }
.emt-paed-photo-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.emt-paed-photo-marker { position: absolute; display: grid; place-items: center; width: 35px; height: 35px; padding: 0; transform: translate(-50%, -50%); border: 2px solid #fff3c9; border-radius: 50%; background: #153b47e8; color: #fff9dd; font-size: .9rem; font-weight: 900; box-shadow: 0 3px 12px #001821bd; }
.emt-paed-photo-marker[aria-pressed="true"] { border-color: #98efdb; background: #1c6d62; }
.emt-paed-photo-caption { padding: 9px 11px; color: #d0e4e8; font-size: .73rem; line-height: 1.42; }
.emt-paed-photo-point-buttons { grid-column: 2; grid-row: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.emt-paed-photo-point, .emt-paed-photo-choice { min-height: 42px; padding: 8px 10px; border: 1px solid #789aa3; border-radius: 9px; background: #204854; color: #f0f9f9; font-size: .76rem !important; font-weight: 700; text-align: left; }
.emt-paed-photo-point[aria-pressed="true"], .emt-paed-photo-choice[aria-pressed="true"] { border-color: #a1ebd9; background: #1d665d; }
.emt-paed-photo-point:hover, .emt-paed-photo-choice:hover { background: #29606a; }
.emt-paed-photo-readout { grid-column: 2; grid-row: 5; min-height: 65px; padding: 9px 11px; border-left: 3px solid #e5bf86; border-radius: 6px; background: #2d4549; color: #fff1d5; font-size: .78rem; line-height: 1.45; }
.emt-paed-photo-question { grid-column: 2; grid-row: 6; display: grid; gap: 9px; }
.emt-paed-photo-question > strong { color: #e6f7ed; font-size: .82rem; }
.emt-paed-photo-choices { display: grid; gap: 6px; }
.emt-paed-photo-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.emt-paed-photo-result { min-height: 0; color: #e7f6ed; font-size: .77rem; line-height: 1.45; }
.emt-paed-photo-credit { padding-top: 8px; border-top: 1px solid #4c737c; color: #c3d9df; font-size: .72rem; line-height: 1.45; }
.emt-paed-photo-credit a { color: #a8edd8; }
.emt-paed-scenario { display: grid; gap: 11px; }
.emt-paed-scenario-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.emt-paed-choice, .emt-paed-kit, .emt-paed-secondary, .emt-paed-primary, .emt-paed-pad {
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid #7193a0;
  border-radius: 10px;
  background: #214959;
  color: #eefafb;
  font-size: .81rem !important;
  font-weight: 750 !important;
  text-align: left;
  white-space: normal;
}
.emt-paed-choice:hover:not(:disabled), .emt-paed-kit:hover:not(:disabled), .emt-paed-secondary:hover:not(:disabled), .emt-paed-pad:hover:not(:disabled) { background: #2c5c68; }
.emt-paed-choice[aria-pressed="true"], .emt-paed-kit[aria-pressed="true"], .emt-paed-pad[aria-pressed="true"] { border-color: #93ebd4; background: #20645f; box-shadow: inset 0 0 0 1px #93ebd4; }
.emt-paed-primary { border-color: #b9e8d7; background: #226f67; color: #f5fff9; }
.emt-paed-primary:hover:not(:disabled) { background: #2b8677; }
.emt-paed-main { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: start; gap: 14px; }
.emt-paed-patient, .emt-paed-controls { display: grid; gap: 11px; }
.emt-paed-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.emt-paed-age, .emt-paed-clock { padding: 5px 9px; border: 1px solid #d8bb84; border-radius: 8px; background: #514835; color: #ffe6b4; font: 800 .83rem/1.2 ui-monospace, Consolas, monospace; }
.emt-paed-clock { font-size: 1.13rem; }
.emt-paed-bodyviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.emt-paed-figure { min-width: 0; display: grid; gap: 7px; padding: 8px; border: 1px solid #537a85; border-radius: 13px; background: #11303e; }
.emt-paed-figure-label { min-height: 25px; color: #b7e5dc; font-size: .67rem; letter-spacing: .06em; }
.emt-paed-stage { position: relative; width: 100%; max-width: 260px; margin-inline: auto; aspect-ratio: 180 / 228; overflow: hidden; border: 1px solid #527783; border-radius: 12px; background: radial-gradient(circle at 50% 48%, #376875, #16404e 65%, #102b38); }
.emt-paed-stage svg { display: block; width: 100%; height: 100%; }
.emt-paed-bodyviews[data-size="infant"] .emt-paed-body { transform: translate(17px, 10px) scale(.81, .89); transform-origin: 90px 115px; }
.emt-paed-body { fill: #5d8d95; stroke: #bde0da; stroke-width: 2; }
.emt-paed-landmark { fill: none; stroke: #e8d3a8; stroke-width: 1.8; stroke-dasharray: 4 4; opacity: .83; }
.emt-paed-stage[data-exposed="false"] .emt-paed-body { fill: #3d6470; }
.emt-paed-stage[data-exposed="false"]::after, .emt-paed-stage[data-wet="true"]::before {
  position: absolute; bottom: 5px; right: 5px; z-index: 4; padding: 3px 5px; border-radius: 5px; background: #755439e8; color: #ffe9c1; font-size: .56rem; font-weight: 850; pointer-events: none;
}
.emt-paed-stage[data-exposed="false"]::after { content: "COVERED"; }
.emt-paed-stage[data-wet="true"]::before { content: "WET"; right: auto; left: 5px; }
.emt-paed-site-layer { position: absolute; inset: 0; pointer-events: none; }
.emt-paed-target {
  position: absolute; z-index: 2; width: 28px; height: 28px; padding: 0;
  transform: translate(-50%, -50%); border: 2px solid #e7f5e7; border-radius: 50%;
  background: #173d4de8; color: #fff; font-size: 1rem; font-weight: 900; line-height: 1;
  pointer-events: auto;
}
.emt-paed-target:hover { background: #2d7370; }
.emt-paed-marker {
  position: absolute; z-index: 3; display: grid; place-items: center; width: 50px; height: 38px;
  transform: translate(-50%, -50%); border: 2px solid #b5f4dd; border-radius: 45% 45% 37% 37%;
  background: #117e74e8; color: #fff; font-size: .92rem; font-weight: 900; box-shadow: 0 3px 9px #09252a;
  pointer-events: none;
}
.emt-paed-marker[data-kit="standard"] { width: 64px; height: 49px; }
.emt-paed-marker[data-contact="false"] { border-color: #ffe0a4; background: #9b6238ee; }
.emt-paed-site-names { color: #d2e9e8; font-size: .77rem; line-height: 1.4; }
.emt-paed-control-block { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid #426b77; }
.emt-paed-control-block:first-of-type { border-top: 0; padding-top: 0; }
.emt-paed-control-block > strong { color: #e1f5ec; font-size: .84rem; }
.emt-paed-toggle-row { display: flex; flex-wrap: wrap; gap: 7px; }
.emt-paed-toggle-row > button { flex: 1 1 145px; }
.emt-paed-kit-row, .emt-paed-pad-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.emt-paed-kit { display: grid; gap: 3px; }
.emt-paed-kit strong { font-size: .81rem; }
.emt-paed-kit span { color: #c3d9df; font-size: .68rem; font-weight: 500; line-height: 1.3; }
.emt-paed-fallback { padding: 8px 9px; border-left: 3px solid #dfb47a; border-radius: 4px; background: #3e4544; color: #f5dfbd; font-size: .75rem; line-height: 1.42; }
.emt-paed-issues { display: grid; gap: 5px; margin: 0; padding: 10px 10px 10px 27px; border-left: 4px solid #e5ae72; border-radius: 7px; background: #403e3d; color: #ffe0c2; font-size: .77rem; line-height: 1.38; }
.emt-paed-issues[data-ready="true"] { border-left-color: #8ce6cb; background: #1e4d4d; color: #e0fff2; }
.emt-paed-controls > .emt-paed-secondary { justify-self: start; }
.emt-paed-device { display: grid; gap: 10px; }
.emt-paed-screen { display: grid; gap: 5px; min-height: 98px; padding: 15px; border: 2px solid #78bda9; border-radius: 12px; background: #082a32; box-shadow: inset 0 0 20px #165e51; }
.emt-paed-screen strong { color: #b9f6d6; font: 850 1rem/1.3 ui-monospace, Consolas, monospace; }
.emt-paed-screen p { color: #cee7dd; font-size: .81rem; line-height: 1.4; }
.emt-paed-screen[data-phase="analysis"], .emt-paed-screen[data-phase="prompt"] { border-color: #efc080; box-shadow: inset 0 0 20px #81512e; }
.emt-paed-screen[data-phase="analysis"] strong, .emt-paed-screen[data-phase="prompt"] strong { color: #ffdfac; }
.emt-paed-device > button { justify-self: start; }
.emt-paed-clear-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.emt-paed-clear-controls button[aria-pressed="true"] { border-color: #91e8d0; background: #22615f; }
.emt-paed-timeline, .emt-paed-review { display: grid; gap: 11px; }
.emt-paed-counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.emt-paed-counter { display: grid; gap: 4px; padding: 9px; border: 1px solid #537c86; border-radius: 9px; background: #1b4652; }
.emt-paed-counter strong { color: #a9edd8; font: 850 1.17rem/1.2 ui-monospace, Consolas, monospace; }
.emt-paed-counter span { color: #d0e3e7; font-size: .72rem; line-height: 1.2; }
.emt-paed-timebar { display: flex; width: 100%; height: 25px; overflow: hidden; border: 1px solid #6a9099; border-radius: 8px; background: repeating-linear-gradient(90deg, #19404c 0 19px, #29505b 19px 20px); }
.emt-paed-segment[data-kind="cpr"] { background: #64cdb0; }
.emt-paed-segment[data-kind="setup"] { background: repeating-linear-gradient(135deg, #b96b45 0 7px, #d98c55 7px 13px); }
.emt-paed-segment[data-kind="device"] { background: #e9bb76; }
.emt-paed-review-slider { width: 100%; accent-color: #8fe6c9; }
.emt-paed-review-text { min-height: 45px; padding: 9px 11px; border: 1px solid #567b87; border-radius: 9px; background: #12313f; color: #d5ebed; font-size: .8rem; line-height: 1.45; }
.emt-paed-source { color: #bdd4da; font-size: .76rem; line-height: 1.45; }
.emt-paed-source a { color: #9cebd5; }
.emt-paed-lab[data-replaying="true"] .emt-paed-review { border-color: #eac384; box-shadow: 0 0 0 2px #9b744f55; }
.emt-paed-lab[data-replaying="true"] :is(.emt-paed-scenario, .emt-paed-patient, .emt-paed-controls, .emt-paed-device) { opacity: .82; }
.emt-paed-live { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px !important; padding: 0; border: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (max-width: 1040px) { .emt-paed-main { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .emt-paed-photo { grid-template-columns: 1fr; }
  .emt-paed-photo > * { grid-column: 1 !important; grid-row: auto !important; }
  .emt-paed-photo-figure { max-width: 760px; }
}
@media (max-width: 740px) { .emt-paed-scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .emt-paed-clear-controls { grid-template-columns: 1fr; } }
@media (max-width: 390px) {
  .emt-paed-lab { padding: 10px; }
  .emt-paed-panel { padding: 10px; }
  .emt-paed-figure { padding: 5px; }
  .emt-paed-figure-label { font-size: .58rem; }
  .emt-paed-target { width: 22px; height: 22px; }
  .emt-paed-marker { width: 34px; height: 27px; font-size: .75rem; }
  .emt-paed-marker[data-kit="standard"] { width: 45px; height: 34px; }
  .emt-paed-kit-row { grid-template-columns: 1fr; }
  .emt-paed-counters { gap: 5px; }
  .emt-paed-counter { padding: 6px; }
  .emt-paed-counter strong { font-size: 1rem; }
  .emt-paed-counter span { font-size: .63rem; }
}
@media (prefers-reduced-motion: reduce) { .emt-paed-lab *, .emt-paed-lab *::before, .emt-paed-lab *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
