.emt-rv2 {
  --emt-rv2-ink: #173647;
  --emt-rv2-muted: #536b78;
  --emt-rv2-line: #c8d7df;
  --emt-rv2-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-rv2-ink);
  box-shadow: 0 5px 18px rgb(22 68 79 / .07);
}
.emt-rv2 *, .emt-rv2 *::before, .emt-rv2 *::after { box-sizing: border-box; }
.emt-rv2 h4 { margin: 0 0 .35rem; color: #12394c; font-size: clamp(1.03rem, 2.5vw, 1.2rem); }
.emt-rv2 h5 { margin: 0 0 .5rem; font-size: .92rem; color: #153f53; }
.emt-rv2 figcaption { margin: 0 0 .9rem; }
.emt-rv2 p { margin: .3rem 0; line-height: 1.45; }
.emt-rv2 .emt-rv2-lead { color: var(--emt-rv2-ink); font-weight: 650; }
.emt-rv2 .emt-rv2-note { color: var(--emt-rv2-muted); font-size: .87rem; overflow-wrap: anywhere; }
.emt-rv2-controls { display: flex; flex-wrap: wrap; gap: .45rem; margin: .7rem 0 .9rem; }
.emt-rv2-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-rv2-choice:hover { border-color: #235e76; background: #f0f8fa; }
.emt-rv2-choice[aria-pressed="true"] { background: #154e65; border-color: #154e65; color: #fff; }
.emt-rv2-choice:focus-visible { outline: 3px solid #d68b28; outline-offset: 2px; }
.emt-rv2-board { display: grid; gap: .7rem; min-width: 0; }
.emt-rv2-row, .emt-rv2-columns, .emt-rv2-time-track, .emt-rv2-scene-map,
.emt-rv2-decision-path, .emt-rv2-transfer-route, .emt-rv2-role-board,
.emt-rv2-receiver-slots, .emt-rv2-evidence-chain { display: grid; gap: .55rem; min-width: 0; }
.emt-rv2-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.emt-rv2-columns { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.emt-rv2-time-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.emt-rv2-scene-map { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.emt-rv2-decision-path { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.emt-rv2-transfer-route { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.emt-rv2-role-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.emt-rv2-receiver-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.emt-rv2-evidence-chain { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.emt-rv2-card, .emt-rv2-panel, .emt-rv2-strip {
  min-width: 0;
  border: 1px solid var(--emt-rv2-line);
  border-radius: 11px;
  padding: .58rem .68rem;
  background: #fff;
  overflow-wrap: anywhere;
}
.emt-rv2-card { display: grid; gap: .25rem; align-content: start; }
.emt-rv2-card strong { font-size: .84rem; line-height: 1.35; font-weight: 650; }
.emt-rv2-label { display: block; color: #476573; font-size: .72rem; font-weight: 760; letter-spacing: .035em; text-transform: uppercase; }
.emt-rv2-card.focus, .emt-rv2-strip.focus { border-color: #188598; background: #eaf7f7; }
.emt-rv2-card.good, .emt-rv2-strip.good { border-color: #73aa90; background: #eff8f0; }
.emt-rv2-card.warn, .emt-rv2-strip.warn { border-color: #c69b65; background: #fff8ed; }
.emt-rv2-panel p { margin: .2rem 0; }
.emt-rv2-strip { display: flex; align-items: baseline; gap: .6rem; font-size: .86rem; }
.emt-rv2-strip .emt-rv2-label { min-width: max-content; }
.emt-rv2-scene-map .emt-rv2-card:not(:last-child)::after,
.emt-rv2-decision-path .emt-rv2-card:not(:last-child)::after,
.emt-rv2-transfer-route .emt-rv2-card:not(:last-child)::after,
.emt-rv2-evidence-chain .emt-rv2-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-rv2-scene-map .emt-rv2-card, .emt-rv2-decision-path .emt-rv2-card,
.emt-rv2-transfer-route .emt-rv2-card, .emt-rv2-evidence-chain .emt-rv2-card { position: relative; }
.emt-rv2-ruler { display: flex; gap: .2rem; overflow-x: auto; padding: .3rem .2rem .5rem; scroll-snap-type: x proximity; border-bottom: 2px solid #95bbc4; }
.emt-rv2-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-rv2-minute.event { border-color: #bf8250; background: #fff5e9; }
.emt-rv2-minute.covered { box-shadow: inset 0 -7px #6db3bd; }
.emt-rv2-minute.selected { outline: 2px solid #176f86; outline-offset: -3px; }
.emt-rv2-ruler:focus-visible { outline: 3px solid #d68b28; outline-offset: 2px; }
.emt-rv2-segments { display: flex; width: 100%; height: 2rem; overflow: hidden; border: 1px solid #9ab8c5; border-radius: 7px; background: #fff; }
.emt-rv2-segment { flex-grow: 0; flex-shrink: 0; border-right: 1px solid rgb(255 255 255 / .7); }
.emt-rv2-segment.kind-compressions { background: #2e8292; }
.emt-rv2-segment.kind-breaths { background: #a2cbc7; }
.emt-rv2-segment.kind-extra, .emt-rv2-segment.kind-switch, .emt-rv2-segment.kind-setup { background: #dfae78; }
.emt-rv2-segment.kind-aed, .emt-rv2-segment.kind-analysis { background: #6c729c; }
.emt-rv2-segment-legend { display: flex; flex-wrap: wrap; gap: .35rem .7rem; }
.emt-rv2-legend-item { display: inline-flex; align-items: center; gap: .28rem; color: #456371; font-size: .73rem; font-weight: 650; }
.emt-rv2-legend-item i { display: inline-block; width: .72rem; height: .72rem; border-radius: 2px; }
.emt-rv2-legend-item i.kind-compressions { background: #2e8292; }
.emt-rv2-legend-item i.kind-breaths { background: #a2cbc7; }
.emt-rv2-legend-item i.kind-extra { background: #dfae78; }
.emt-rv2-legend-item i.kind-aed { background: #6c729c; }
.emt-rv2-meter { position: relative; min-height: 2.6rem; border: 1px solid #a7bec9; border-radius: 9px; background: #eef4f5; overflow: hidden; }
.emt-rv2-meter > span { position: relative; z-index: 1; display: block; padding: .65rem; font-weight: 700; font-size: .79rem; }
.emt-rv2-meter-fill { position: absolute; inset: 0 auto 0 0; background: #83c7c0; transition: width .2s ease; }
.emt-rv2-text-details { margin-top: .8rem; border-top: 1px dashed #b4cdd3; padding-top: .55rem; }
.emt-rv2-text-details summary { width: fit-content; color: #235c72; font-size: .8rem; font-weight: 700; cursor: pointer; }
.emt-rv2-text-details summary:focus-visible { outline: 3px solid #d68b28; outline-offset: 2px; }
.emt-rv2 .emt-rv2-equivalent { margin-top: .55rem; color: #486370; font-size: .76rem; line-height: 1.45; }
@media (max-width: 680px) {
  .emt-rv2-scene-map, .emt-rv2-decision-path, .emt-rv2-role-board, .emt-rv2-evidence-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emt-rv2-time-track, .emt-rv2-receiver-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emt-rv2-scene-map .emt-rv2-card::after, .emt-rv2-decision-path .emt-rv2-card::after,
  .emt-rv2-evidence-chain .emt-rv2-card::after { display: none; }
}
@media (max-width: 360px) {
  .emt-rv2 { padding: .7rem; border-radius: 13px; }
  .emt-rv2-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emt-rv2-choice { min-width: 0; font-size: .78rem; padding: .42rem .35rem; }
  .emt-rv2-transfer-route, .emt-rv2-row { grid-template-columns: 1fr; }
  .emt-rv2-transfer-route .emt-rv2-card::after { display: none; }
  .emt-rv2-strip { display: block; }
  .emt-rv2-minute { flex-basis: 3.4rem; }
}
