.emt-rv3 {
  --emt-rv3-ink: #173647;
  --emt-rv3-muted: #536b78;
  --emt-rv3-line: #c8d7df;
  --emt-rv3-paper: #f7fbfc;
  margin: 1.1rem 0 0;
  padding: clamp(.85rem, 2vw, 1.3rem);
  min-width: 0;
  border: 1px solid #b7d1dd;
  border-radius: 18px;
  background: linear-gradient(160deg, #f6fbfd, #eef7f6);
  color: var(--emt-rv3-ink);
  box-shadow: 0 5px 18px rgb(22 68 79 / .07);
}
.emt-rv3 *, .emt-rv3 *::before, .emt-rv3 *::after { box-sizing: border-box; }
.emt-rv3 h4 { margin: 0 0 .35rem; color: #12394c; font-size: clamp(1.03rem, 2.5vw, 1.2rem); }
.emt-rv3 h5 { margin: 0 0 .5rem; font-size: .92rem; color: #153f53; }
.emt-rv3 figcaption { margin: 0 0 .9rem; }
.emt-rv3 p { margin: .3rem 0; line-height: 1.45; }
.emt-rv3 .emt-rv3-lead { color: var(--emt-rv3-ink); font-weight: 650; }
.emt-rv3 .emt-rv3-note { color: var(--emt-rv3-muted); font-size: .87rem; overflow-wrap: anywhere; }
.emt-rv3-controls { display: flex; flex-wrap: wrap; gap: .45rem; margin: .7rem 0 .9rem; }
.emt-rv3-choice {
  border: 1px solid #a3bdc9;
  border-radius: 999px;
  padding: .42rem .7rem;
  background: #fff;
  color: #173647;
  font: inherit;
  font-size: .84rem;
  font-weight: 650;
  cursor: pointer;
  white-space: normal;
  text-align: center;
}
.emt-rv3-choice:hover { border-color: #235e76; background: #f0f8fa; }
.emt-rv3-choice[aria-pressed="true"] { background: #154e65; border-color: #154e65; color: #fff; }
.emt-rv3-choice:focus-visible { outline: 3px solid #d68b28; outline-offset: 2px; }
.emt-rv3-board { display: grid; gap: .7rem; min-width: 0; }
.emt-rv3-row, .emt-rv3-columns, .emt-rv3-time-track, .emt-rv3-scene-map,
.emt-rv3-decision-path, .emt-rv3-transfer-route, .emt-rv3-role-board,
.emt-rv3-receiver-slots, .emt-rv3-evidence-chain { display: grid; gap: .55rem; min-width: 0; }
.emt-rv3-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.emt-rv3-columns { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.emt-rv3-time-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.emt-rv3-scene-map { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.emt-rv3-decision-path { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.emt-rv3-transfer-route { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.emt-rv3-role-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.emt-rv3-receiver-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.emt-rv3-evidence-chain { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.emt-rv3-card, .emt-rv3-panel, .emt-rv3-strip {
  min-width: 0;
  border: 1px solid var(--emt-rv3-line);
  border-radius: 11px;
  padding: .58rem .68rem;
  background: #fff;
  overflow-wrap: anywhere;
}
.emt-rv3-card { display: grid; gap: .25rem; align-content: start; }
.emt-rv3-card strong { font-size: .84rem; line-height: 1.35; font-weight: 650; }
.emt-rv3-label { display: block; color: #476573; font-size: .75rem; font-weight: 760; letter-spacing: .035em; text-transform: uppercase; }
.emt-rv3-card.focus, .emt-rv3-strip.focus { border-color: #188598; background: #eaf7f7; }
.emt-rv3-card.muted { border-style: dashed; background: #f5f7f8; color: #536b78; }
.emt-rv3-card.good, .emt-rv3-strip.good { border-color: #73aa90; background: #eff8f0; }
.emt-rv3-card.warn, .emt-rv3-strip.warn { border-color: #c69b65; background: #fff8ed; }
.emt-rv3-panel p { margin: .2rem 0; }
.emt-rv3-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; font-size: .86rem; }
.emt-rv3-strip .emt-rv3-label, .emt-rv3-strip > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.emt-rv3-scene-map .emt-rv3-card:not(:last-child)::after,
.emt-rv3-decision-path .emt-rv3-card:not(:last-child)::after,
.emt-rv3-transfer-route .emt-rv3-card:not(:last-child)::after,
.emt-rv3-evidence-chain .emt-rv3-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -.46rem;
  top: 50%;
  z-index: 1;
  color: #327384;
  background: #fff;
  border-radius: 50%;
  font-weight: 800;
}
.emt-rv3-scene-map .emt-rv3-card, .emt-rv3-decision-path .emt-rv3-card,
.emt-rv3-transfer-route .emt-rv3-card, .emt-rv3-evidence-chain .emt-rv3-card { position: relative; }
.emt-rv3-ruler { display: flex; gap: .2rem; overflow-x: auto; padding: .3rem .2rem .5rem; scroll-snap-type: x proximity; border-bottom: 2px solid #95bbc4; }
.emt-rv3-minute { flex: 0 0 3.1rem; min-height: 3rem; padding: .35rem .2rem; border: 1px solid #b8cbd4; border-radius: 8px; background: #fff; text-align: center; font-size: .75rem; font-weight: 650; scroll-snap-align: start; }
.emt-rv3-minute.event { border-color: #bf8250; background: #fff5e9; }
.emt-rv3-minute.covered { box-shadow: inset 0 -7px #6db3bd; }
.emt-rv3-minute.selected { outline: 2px solid #176f86; outline-offset: -3px; }
.emt-rv3-ruler:focus-visible { outline: 3px solid #d68b28; outline-offset: 2px; }
.emt-rv3-segments { display: flex; width: 100%; height: 2rem; overflow: hidden; border: 1px solid #9ab8c5; border-radius: 7px; background: #fff; }
.emt-rv3-segment { flex-grow: 0; flex-shrink: 0; border-right: 1px solid rgb(255 255 255 / .7); }
.emt-rv3-segment.kind-compressions { background: #2e8292; }
.emt-rv3-segment.kind-breaths { background: #a2cbc7; }
.emt-rv3-segment.kind-extra, .emt-rv3-segment.kind-switch, .emt-rv3-segment.kind-setup { background: #dfae78; }
.emt-rv3-segment.kind-aed, .emt-rv3-segment.kind-analysis { background: #6c729c; }
.emt-rv3-segment-legend { display: flex; flex-wrap: wrap; gap: .35rem .7rem; }
.emt-rv3-legend-item { display: inline-flex; align-items: center; gap: .28rem; color: #456371; font-size: .73rem; font-weight: 650; }
.emt-rv3-legend-item i { display: inline-block; width: .72rem; height: .72rem; border-radius: 2px; }
.emt-rv3-legend-item i.kind-compressions { background: #2e8292; }
.emt-rv3-legend-item i.kind-breaths { background: #a2cbc7; }
.emt-rv3-legend-item i.kind-extra { background: #dfae78; }
.emt-rv3-legend-item i.kind-aed { background: #6c729c; }
.emt-rv3-meter { position: relative; min-height: 2.6rem; border: 1px solid #a7bec9; border-radius: 9px; background: #eef4f5; overflow: hidden; }
.emt-rv3-meter > span { position: relative; z-index: 1; display: block; padding: .65rem; font-weight: 700; font-size: .79rem; }
.emt-rv3-meter-fill { position: absolute; inset: 0 auto 0 0; background: #83c7c0; transition: width .2s ease; }
.emt-rv3-text-details { margin-top: .8rem; border-top: 1px dashed #b4cdd3; padding-top: .55rem; }
.emt-rv3-text-details summary { width: fit-content; color: #235c72; font-size: .8rem; font-weight: 700; cursor: pointer; }
.emt-rv3-text-details summary:focus-visible { outline: 3px solid #d68b28; outline-offset: 2px; }
.emt-rv3 .emt-rv3-equivalent { margin-top: .55rem; color: #486370; font-size: .76rem; line-height: 1.45; }
/* Each structure represents a different authored lab operation. */
.emt-rv3-evidence-layers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .48rem; }
.emt-rv3-evidence-layers .emt-rv3-card { border-top-width: 5px; }
.emt-rv3-breath-grid { width: 100%; table-layout: fixed; border: 1px solid #9cbcc5; border-spacing: .2rem; border-radius: 12px; background: #e9f3f5; }
.emt-rv3-breath-grid caption { caption-side: top; padding: .3rem; color: #365b6b; font-size: .75rem; font-weight: 700; text-align: left; }
.emt-rv3-breath-grid th, .emt-rv3-breath-grid td { min-width: 0; padding: .3rem .2rem; border: 1px solid #b9d0d8; border-radius: 6px; background: #fff; color: #21495b; font-size: .75rem; line-height: 1.25; overflow-wrap: anywhere; }
.emt-rv3-breath-grid th { font-weight: 700; }
.emt-rv3-breath-grid th:first-child { width: 42%; text-align: left; }
.emt-rv3-breath-grid td { text-align: center; font-size: 1rem; font-weight: 800; }
.emt-rv3-breath-grid td.selected { border-color: #148198; background: #d8f2f3; color: #0c596f; }
.emt-rv3-sequence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.emt-rv3-sequence .emt-rv3-card { border-top: 5px solid #487f8f; }
.emt-rv3-time-bar { position: relative; width: 100%; height: 2rem; overflow: hidden; border: 1px solid #8caeb9; border-radius: 7px; background: repeating-linear-gradient(90deg, #f0f5f6 0, #f0f5f6 9.9%, #dae6e9 10%); }
.emt-rv3-time-block { position: absolute; top: 0; bottom: 0; min-width: 2px; background: #438c96; border-right: 1px solid white; }
.emt-rv3-time-block.kind-compressions, .emt-rv3-time-block.kind-compress { background: #238496; }
.emt-rv3-time-block.kind-analysis, .emt-rv3-time-block.kind-aed { background: #626e9d; }
.emt-rv3-time-block.kind-extra, .emt-rv3-time-block.kind-setup, .emt-rv3-time-block.kind-switch, .emt-rv3-time-block.kind-manual { background: #dfaa6d; }
.emt-rv3-time-block.kind-cpr { background: #238496; }
.emt-rv3-time-block.kind-breathing { background: #8dbbb7; }
.emt-rv3-time-block.kind-shock { background: #8580a9; }
.emt-rv3-time-block.kind-delay, .emt-rv3-time-block.kind-collision, .emt-rv3-time-block.kind-assignment { background: #dba267; }
.emt-rv3-time-block.kind-assessment, .emt-rv3-time-block.kind-unassigned { background: #a9b8c2; }
.emt-rv3-time-axis { display: flex; justify-content: space-between; color: #4c6875; font-size: .7rem; font-weight: 700; }
.emt-rv3-time-legend { display: flex; flex-wrap: wrap; gap: .2rem .7rem; margin-top: .3rem; }
.emt-rv3-time-key { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; color: #365765; }
.emt-rv3-time-key i { display: inline-block; width: .7rem; height: .7rem; border: 1px solid #718d98; border-radius: 2px; background: #238496; }
.emt-rv3-time-key i.kind-analysis { background: #626e9d; }
.emt-rv3-time-key i.kind-shock { background: #8580a9; }
.emt-rv3-time-key i.kind-manual, .emt-rv3-time-key i.kind-delay, .emt-rv3-time-key i.kind-collision, .emt-rv3-time-key i.kind-assignment, .emt-rv3-time-key i.kind-switch { background: #dba267; }
.emt-rv3-time-key i.kind-breathing { background: #8dbbb7; }
.emt-rv3-time-key i.kind-assessment, .emt-rv3-time-key i.kind-unassigned { background: #a9b8c2; }
.emt-rv3-signal-sketch { min-width: 0; padding: .5rem; border: 1px solid #a9c4cd; border-radius: 11px; background: #f5fafb; }
.emt-rv3-signal-sketch svg { display: block; width: 100%; height: 5rem; border-radius: 5px; background: repeating-linear-gradient(0deg, transparent 0 14px, #e0ecef 15px), repeating-linear-gradient(90deg, transparent 0 14px, #e0ecef 15px); }
.emt-rv3-signal-sketch path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.emt-rv3-signal-sketch path.underlying { stroke: #2e687a; stroke-width: 2.5px; }
.emt-rv3-signal-sketch path.motion { stroke: #bd684d; stroke-width: 3px; opacity: .85; }
.emt-rv3-gates { display: grid; gap: .45rem; }
.emt-rv3-gates .emt-rv3-card { border-left: 5px solid #9caebc; }
.emt-rv3-receivers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.emt-rv3-receivers .emt-rv3-card { border-bottom-width: 5px; }
.emt-rv3-time-track { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.emt-rv3-time-track .emt-rv3-card { border-top: 5px solid #477e8f; }
.emt-rv3-pad-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; padding: .6rem; border: 1px dashed #79a4af; border-radius: 14px; background: #eef7f6; }
.emt-rv3-pad-pair .emt-rv3-card:first-child { border-left: 6px solid #168399; }
.emt-rv3-pad-pair .emt-rv3-card:last-child { border-right: 6px solid #168399; }
.emt-rv3-pad-map { display: flex; justify-content: center; gap: 1rem; min-height: 9rem; padding: .55rem; border: 1px dashed #79a4af; border-radius: 12px; background: #eff6f7; }
.emt-rv3-pad-surface { position: relative; width: min(42%, 8.5rem); min-height: 8rem; border: 2px solid #60919e; border-radius: 38% 38% 28% 28%; background: #fff; }
.emt-rv3-pad-surface-label { position: absolute; left: 50%; bottom: .3rem; transform: translateX(-50%); font-size: .72rem; font-weight: 750; color: #405f6d; }
.emt-rv3-pad-mark { position: absolute; z-index: 1; display: grid; place-items: center; width: 2rem; height: 1.55rem; border: 2px solid #165f76; border-radius: 4px; background: #c1e3e8; color: #103f50; font-weight: 800; }
.emt-rv3-pad-mark.site-centerChest { left: calc(50% - 1rem); top: 2.1rem; }
.emt-rv3-pad-mark.site-backCenter { left: calc(50% - 1rem); top: 2.1rem; }
.emt-rv3-pad-mark.site-upperRight { left: .5rem; top: 1rem; }
.emt-rv3-pad-mark.site-leftLateral { right: .2rem; top: 3.5rem; }
.emt-rv3-authority-lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.emt-rv3-authority-lanes .emt-rv3-card:last-child { grid-column: 1 / -1; border-top: 4px solid #587293; }
.emt-rv3-role-debrief { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.emt-rv3-role-debrief .emt-rv3-card { border-bottom: 5px solid #4a8793; }
.emt-rv3-arrest-rails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.emt-rv3-arrest-rails .emt-rv3-card:first-child { border-left: 5px solid #168496; }
.emt-rv3-arrest-rails .emt-rv3-card:nth-child(2) { border-left: 5px solid #83a963; }
.emt-rv3-arrest-rails .emt-rv3-card:last-child { border-left: 5px solid #646d9e; }
@media (max-width: 680px) {
  .emt-rv3-scene-map, .emt-rv3-decision-path, .emt-rv3-role-board, .emt-rv3-evidence-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emt-rv3-time-track, .emt-rv3-receiver-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emt-rv3-scene-map .emt-rv3-card::after, .emt-rv3-decision-path .emt-rv3-card::after,
  .emt-rv3-evidence-chain .emt-rv3-card::after { display: none; }
  .emt-rv3-evidence-layers, .emt-rv3-role-debrief { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emt-rv3-sequence, .emt-rv3-receivers, .emt-rv3-arrest-rails { grid-template-columns: 1fr; }
  .emt-rv3-time-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .emt-rv3 { padding: .7rem; border-radius: 13px; }
  .emt-rv3-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emt-rv3-choice { min-width: 0; font-size: .78rem; padding: .42rem .35rem; }
  .emt-rv3-transfer-route, .emt-rv3-row { grid-template-columns: 1fr; }
  .emt-rv3-transfer-route .emt-rv3-card::after { display: none; }
  .emt-rv3-strip { display: block; }
  .emt-rv3-minute { flex-basis: 3.4rem; }
  .emt-rv3-pad-pair, .emt-rv3-authority-lanes { grid-template-columns: 1fr; }
  .emt-rv3-authority-lanes .emt-rv3-card:last-child { grid-column: auto; }
}
