.emt-transport-lab {
  --emt-trans-line: rgba(143, 204, 218, 0.27);
  --emt-trans-ink: #e8f4f5;
  --emt-trans-muted: #b7d0d7;
  display: grid;
  gap: 18px;
  padding: clamp(15px, 2.4vw, 24px);
  border: 1px solid rgba(102, 192, 212, 0.36);
  border-radius: 13px;
  background: radial-gradient(circle at 98% 0, rgba(57, 176, 189, 0.16), transparent 32%), #101d29;
  color: var(--emt-trans-ink);
}
.emt-transport-lab * { box-sizing: border-box; }
.emt-transport-lab :is(h3, h4, h5, p, ol, ul) { margin: 0; }
.emt-transport-lab p { line-height: 1.48; }
.emt-transport-lab button { min-height: 40px; }
.emt-transport-lab :is(button, a, summary):focus-visible { outline: 2px solid #a4eeed; outline-offset: 3px; }
.emt-trans-head { display: grid; gap: 7px; max-width: 90ch; }
.emt-trans-head h3 { font-size: 1.26rem; }
.emt-trans-head p,
.emt-trans-setup,
.emt-trans-handoff > p,
.emt-trans-scope,
.emt-trans-sources { color: var(--emt-trans-muted); }
.emt-trans-head p { font-size: 0.86rem; }
.emt-trans-cases { display: flex; gap: 8px; flex-wrap: wrap; }
.emt-trans-case {
  padding: 9px 12px;
  border: 1px solid rgba(145, 202, 214, 0.34);
  border-radius: 7px;
  background: #1b3542;
  color: #d8eaf0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 740;
  text-align: left;
  cursor: pointer;
}
.emt-trans-case[aria-pressed="true"] { border-color: #82dfce; background: #1e514e; color: #f0fff8; box-shadow: inset 0 0 0 1px rgba(130, 223, 206, 0.18); }
.emt-trans-setup { max-width: 95ch; font-size: 0.82rem; }
.emt-trans-route,
.emt-trans-log-section,
.emt-trans-handoff { display: grid; gap: 11px; }
.emt-trans-route { padding: 15px; border: 1px solid var(--emt-trans-line); border-radius: 9px; background: #0b1b28; }
.emt-trans-route h4,
.emt-trans-log-section h4,
.emt-trans-handoff h4 { font-size: 0.98rem; }
.emt-trans-road {
  position: relative;
  height: 37px;
  overflow: hidden;
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, rgba(180, 212, 217, 0.1) 0 18px, transparent 18px 32px), #122937;
}
.emt-trans-road::before,
.emt-trans-road::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: rgba(131, 195, 201, 0.18); }
.emt-trans-road::before { top: 3px; }
.emt-trans-road::after { bottom: 3px; }
.emt-trans-road-line { position: absolute; left: 0; top: 18px; width: 100%; border-top: 2px dashed rgba(179, 217, 204, 0.4); }
.emt-trans-ambulance {
  position: absolute;
  z-index: 1;
  left: clamp(4px, var(--emt-trans-progress), calc(100% - 37px));
  top: 7px;
  width: 32px;
  height: 19px;
  border: 2px solid #a8e9df;
  border-radius: 3px 5px 2px 2px;
  background: linear-gradient(90deg, #d1fbf1 0 47%, #558e9c 47% 63%, #b0dfdf 63%);
  box-shadow: 0 2px 8px rgba(102, 207, 195, 0.33);
  transition: left 300ms ease;
}
.emt-trans-ambulance::before { content: "+"; position: absolute; left: 4px; top: -3px; color: #be544d; font: 900 19px/20px Arial, sans-serif; }
.emt-trans-ambulance::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: -6px; height: 6px; background: radial-gradient(circle at 4px 2px, #111f2b 0 3px, transparent 3.5px), radial-gradient(circle at calc(100% - 4px) 2px, #111f2b 0 3px, transparent 3.5px); }
.emt-trans-time-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.emt-trans-time {
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid rgba(133, 189, 207, 0.26);
  border-top: 3px solid #557284;
  border-radius: 6px;
  background: #102533;
  color: #c2d5dc;
  font: inherit;
  font-size: 0.73rem;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.emt-trans-time[data-visited="true"] { border-top-color: #75bfc5; }
.emt-trans-time[aria-pressed="true"] { border-color: #8be0d4; border-top-color: #8be0d4; background: rgba(54, 145, 143, 0.22); color: #f0fffb; }
.emt-trans-playback,
.emt-trans-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.emt-trans-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.emt-trans-patient,
.emt-trans-equipment {
  display: grid;
  gap: 9px;
  align-content: start;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(139, 202, 210, 0.32);
  border-top: 3px solid #7bc9af;
  border-radius: 9px;
  background: #102838;
}
.emt-trans-equipment { border-top-color: #8cbddd; }
.emt-trans-equipment[data-issue="lead"],
.emt-trans-equipment[data-issue="cuff"],
.emt-trans-equipment[data-issue="oxygen"] { border-top-color: #e7b874; }
.emt-trans-kicker { color: #9fc2c8; font-size: 0.67rem; font-weight: 820; letter-spacing: 0.08em; }
.emt-trans-patient h4,
.emt-trans-equipment h4 { font-size: 1rem; }
.emt-trans-patient-art {
  position: relative;
  height: 111px;
  overflow: hidden;
  border: 1px solid rgba(146, 206, 205, 0.17);
  border-radius: 7px;
  background: radial-gradient(ellipse at 28% 85%, rgba(105, 191, 175, 0.18), transparent 54%), repeating-linear-gradient(0deg, transparent 0 20px, rgba(159, 212, 217, 0.05) 20px 21px), #0c202d;
}
.emt-trans-body-head { position: absolute; left: 26%; top: 22px; width: 32px; height: 32px; border-radius: 50%; background: #88b6b2; }
.emt-trans-body-torso { position: absolute; left: 25%; top: 59px; width: 65px; height: 72px; border-radius: 34px 34px 4px 4px; transform: rotate(-17deg); background: #497e84; }
.emt-trans-breath { position: absolute; left: 59%; top: 30px; width: 52px; height: 52px; border: 2px solid rgba(126, 224, 197, 0.55); border-left: 0; border-bottom: 0; border-radius: 50%; transform: rotate(40deg); }
.emt-trans-breath::after { content: ""; position: absolute; left: 8px; top: 7px; width: 35px; height: 35px; border: 1px solid rgba(126, 224, 197, 0.26); border-left: 0; border-bottom: 0; border-radius: 50%; }
.emt-trans-patient-art[data-level="1"] .emt-trans-body-head,
.emt-trans-patient-art[data-level="2"] .emt-trans-body-head { background: #e0b290; }
.emt-trans-patient-art[data-level="1"] .emt-trans-breath,
.emt-trans-patient-art[data-level="2"] .emt-trans-breath { border-color: rgba(245, 187, 125, 0.75); }
.emt-trans-patient-art[data-level="1"] .emt-trans-breath::after,
.emt-trans-patient-art[data-level="2"] .emt-trans-breath::after { border-color: rgba(245, 187, 125, 0.44); }
.emt-trans-card-time { color: #c5e6df; font-size: 0.79rem; }
.emt-trans-report { color: #e3f1ed; font-size: 0.85rem; }
.emt-trans-observation { min-height: 68px; color: #bad2d9; font-size: 0.8rem; }
.emt-trans-pulse-bars { display: flex; align-items: end; gap: 4px; height: 22px; }
.emt-trans-pulse-bars i { display: block; width: 9px; height: 7px; border-radius: 2px 2px 0 0; background: #385962; }
.emt-trans-pulse-bars i:nth-child(2) { height: 11px; }
.emt-trans-pulse-bars i:nth-child(3) { height: 16px; }
.emt-trans-pulse-bars i:nth-child(4) { height: 21px; }
.emt-trans-pulse-bars[data-level="1"] i:first-child,
.emt-trans-pulse-bars[data-level="2"] i:nth-child(-n+2),
.emt-trans-pulse-bars[data-level="3"] i:nth-child(-n+3),
.emt-trans-pulse-bars[data-level="4"] i { background: #8ed6b7; }
.emt-trans-patient > button,
.emt-trans-equipment > button,
.emt-trans-handoff > button { justify-self: start; }
.emt-trans-device-art { position: relative; height: 111px; overflow: hidden; border: 1px solid rgba(144, 208, 221, 0.16); border-radius: 7px; background: #071721; }
.emt-trans-device-screen { position: absolute; inset: 12px; border: 2px solid #407986; border-radius: 5px; background: repeating-linear-gradient(90deg, rgba(101, 178, 183, 0.08) 0 1px, transparent 1px 16px), repeating-linear-gradient(0deg, rgba(101, 178, 183, 0.08) 0 1px, transparent 1px 16px), #0b202a; }
.emt-trans-device-line { position: absolute; left: 7%; top: 49px; width: 86%; height: 23px; background: #77d3b8; clip-path: polygon(0 49%, 11% 49%, 14% 40%, 17% 52%, 22% 52%, 24% 85%, 26% 5%, 28% 90%, 31% 48%, 42% 48%, 45% 37%, 50% 49%, 63% 49%, 66% 43%, 70% 51%, 79% 51%, 81% 88%, 83% 5%, 85% 88%, 88% 49%, 100% 49%, 100% 58%, 88% 58%, 85% 96%, 83% 15%, 81% 96%, 79% 60%, 70% 60%, 66% 53%, 63% 58%, 50% 58%, 45% 46%, 42% 57%, 31% 57%, 28% 98%, 26% 15%, 24% 94%, 22% 61%, 17% 61%, 14% 49%, 11% 58%, 0 58%); }
.emt-trans-device-art[data-issue="lead"] .emt-trans-device-line { height: 38px; top: 41px; background: #f1b878; clip-path: polygon(0 44%, 6% 72%, 12% 18%, 19% 81%, 26% 24%, 33% 63%, 42% 8%, 51% 89%, 59% 15%, 69% 67%, 78% 26%, 86% 74%, 94% 20%, 100% 52%, 100% 66%, 94% 31%, 86% 88%, 78% 40%, 69% 81%, 59% 29%, 51% 100%, 42% 22%, 33% 76%, 26% 38%, 19% 95%, 12% 32%, 6% 86%, 0 58%); }
.emt-trans-device-art[data-issue="cuff"] .emt-trans-device-screen,
.emt-trans-device-art[data-issue="oxygen"] .emt-trans-device-screen { border-color: #c99356; }
.emt-trans-device-art[data-issue="cuff"]::after,
.emt-trans-device-art[data-issue="oxygen"]::after { content: "QUALITY / SETUP ALERT"; position: absolute; right: 16px; top: 20px; padding: 4px 6px; border-radius: 3px; background: #654b32; color: #ffe5b9; font: 800 10px/1.2 system-ui, sans-serif; letter-spacing: 0.05em; }
.emt-trans-signal { color: #d7eaf0; font-size: 0.85rem; }
.emt-trans-inspection,
.emt-trans-repair-result { color: #bad1d8; font-size: 0.79rem; }
.emt-trans-repair-result:not(:empty) { padding: 9px; border-left: 3px solid #8cd8b3; background: rgba(70, 156, 123, 0.11); }
.emt-trans-log,
.emt-trans-receiving-log,
.emt-trans-unsent-log { display: grid; gap: 7px; list-style: none; padding: 0; }
.emt-trans-record,
.emt-trans-empty { display: grid; gap: 3px; padding: 9px 11px; border: 1px solid rgba(130, 188, 203, 0.22); border-radius: 6px; background: rgba(23, 55, 68, 0.48); font-size: 0.76rem; line-height: 1.45; }
.emt-trans-record strong { color: #bce6dc; font-size: 0.76rem; }
.emt-trans-record span { color: #ccdde1; }
.emt-trans-empty { color: #aac3cd; font-style: italic; }
.emt-trans-handoff { padding: 15px; border: 1px solid rgba(135, 197, 205, 0.3); border-radius: 9px; background: #0c1f2c; }
.emt-trans-handoff > p { font-size: 0.82rem; }
.emt-trans-handoff h5 { font-size: 0.8rem; color: #d4e9e6; }
.emt-trans-receiver-summary { padding: 9px 10px; border-left: 3px solid #8ec9d9; background: rgba(88, 153, 175, 0.12); color: #d5eceb !important; }
.emt-trans-concerns { display: grid; gap: 5px; padding: 11px 12px 11px 30px; border: 1px solid rgba(232, 186, 124, 0.24); border-radius: 7px; background: rgba(218, 149, 74, 0.08); color: #ecd7bb; font-size: 0.77rem; line-height: 1.45; }
.emt-trans-footer { justify-content: space-between; }
.emt-trans-live { color: #b7ced6; font-size: 0.76rem; }
.emt-trans-equivalent-disclosure { border: 1px solid rgba(149, 204, 213, 0.18); border-radius: 6px; background: #0a1a26; }
.emt-trans-equivalent-disclosure summary { padding: 9px 12px; color: #cae3e5; font-size: 0.78rem; font-weight: 730; cursor: pointer; }
.emt-trans-text-equivalent { padding: 10px 12px; border: 1px solid rgba(149, 204, 213, 0.18); border-radius: 6px; background: #0a1a26; color: #c2d9df; font-size: 0.76rem; }
.emt-trans-scope { padding-top: 8px; border-top: 1px solid rgba(137, 190, 206, 0.22); font-size: 0.74rem; }
.emt-trans-sources { font-size: 0.73rem; }
.emt-trans-sources a { color: #96d8ee; }
@media (max-width: 880px) {
  .emt-trans-time-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .emt-trans-stage { grid-template-columns: 1fr; }
  .emt-trans-time-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emt-trans-patient-art, .emt-trans-device-art { height: 85px; }
  .emt-trans-body-head { top: 8px; }
  .emt-trans-body-torso { top: 45px; }
  .emt-trans-breath { top: 14px; }
  .emt-trans-device-line { top: 36px; }
  .emt-trans-device-art[data-issue="lead"] .emt-trans-device-line { top: 27px; }
}
@media (max-width: 380px) {
  .emt-transport-lab { padding: 12px; }
  .emt-trans-time-picker { grid-template-columns: 1fr; }
  .emt-trans-time { min-height: 35px; }
  .emt-trans-cases { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  .emt-trans-ambulance { transition: none; }
}
