.emt-arrest-case-lab {
  --eac-bg: #0a1824;
  --eac-panel: #102331;
  --eac-line: rgba(173, 214, 227, .25);
  --eac-ink: #edf8f8;
  --eac-muted: #c0d5dc;
  --eac-teal: #64ddc8;
  --eac-blue: #82bdff;
  --eac-gold: #ffc47d;
  --eac-red: #f28e88;
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: clamp(13px, 2.3vw, 23px);
  border: 1px solid rgba(100, 221, 200, .28);
  border-radius: 13px;
  color: var(--eac-ink);
  background: radial-gradient(circle at 90% 0, rgba(130, 189, 255, .12), transparent 31%), radial-gradient(circle at 0 50%, rgba(100, 221, 200, .055), transparent 33%), var(--eac-bg);
}
.emt-arrest-case-lab * { box-sizing: border-box; }
.emt-arrest-case-lab :is(button, select, input):focus-visible { outline: 2px solid #c2fff2; outline-offset: 3px; }
.emt-arrest-case-lab :is(button, select) { font: inherit; }
.emt-arrest-case-lab button { min-height: 36px; cursor: pointer; }
.emt-arrest-case-lab button:disabled { opacity: .48; cursor: not-allowed; }
.emt-arrest-case-head { display: grid; gap: 7px; }
.emt-arrest-case-eyebrow,
.emt-arrest-case-card-label { color: #91ecdc; font-size: .67rem; font-weight: 850; letter-spacing: .085em; text-transform: uppercase; }
.emt-arrest-case-head h3 { margin: 0; font-size: clamp(1.14rem, 2.3vw, 1.55rem); }
.emt-arrest-case-head p,
.emt-arrest-case-setup p,
.emt-arrest-case-controls-head p,
.emt-arrest-case-section-top p,
.emt-arrest-case-safety,
.emt-arrest-case-source { margin: 0; color: var(--eac-muted); line-height: 1.48; }
.emt-arrest-case-head p { max-width: 92ch; font-size: .82rem; }
.emt-arrest-case-setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 12px; border: 1px solid rgba(130, 189, 255, .25); border-radius: 9px; background: rgba(130, 189, 255, .065); }
.emt-arrest-case-setup label,
.emt-arrest-case-receiver label { display: grid; gap: 5px; min-width: 0; color: #dcecef; font-size: .73rem; font-weight: 750; }
.emt-arrest-case-setup p { grid-column: 1 / -1; font-size: .71rem; }
.emt-arrest-case-lab select { width: 100%; min-width: 0; min-height: 37px; padding: 6px 8px; border: 1px solid rgba(173, 214, 227, .36); border-radius: 6px; color: var(--eac-ink); background: #1b3442; font-size: .74rem; }
.emt-arrest-case-command { display: grid; gap: 13px; min-width: 0; padding: clamp(12px, 2vw, 17px); border: 1px solid rgba(130, 189, 255, .32); border-radius: 10px; background: linear-gradient(142deg, rgba(130, 189, 255, .105), transparent 50%), #0a1a27; }
.emt-arrest-case-command-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--eac-line); }
.emt-arrest-case-command-top > div { display: grid; gap: 3px; }
.emt-arrest-case-command-top strong { color: #b8fff1; font-size: clamp(1.65rem, 3vw, 2.15rem); font-variant-numeric: tabular-nums; }
.emt-arrest-case-command-top p { margin: 0; color: #e2f1f3; font-size: .8rem; line-height: 1.4; }
.emt-arrest-case-visuals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.emt-arrest-case-card { display: grid; align-content: start; justify-items: start; gap: 8px; min-width: 0; min-height: 215px; padding: 12px; border: 1px solid var(--eac-line); border-radius: 9px; background: rgba(5, 18, 29, .78); }
.emt-arrest-case-card strong { color: #f0fcfc; font-size: .8rem; line-height: 1.25; }
.emt-arrest-case-card p { margin: 0; color: #cddfe3; font-size: .72rem; line-height: 1.46; overflow-wrap: anywhere; }
.emt-arrest-case-patient { border-top: 3px solid #9fcaeb; }
.emt-arrest-case-care { border-top: 3px solid var(--eac-teal); }
.emt-arrest-case-device { border-top: 3px solid var(--eac-gold); }
.emt-arrest-case-person { position: relative; width: 118px; height: 54px; margin: 3px 0 4px; }
.emt-arrest-case-person i { position: absolute; display: block; background: #6799ae; }
.emt-arrest-case-person-head { left: 5px; top: 10px; width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(159, 202, 235, .1); }
.emt-arrest-case-person-torso { left: 34px; top: 14px; width: 54px; height: 22px; border-radius: 11px; background: linear-gradient(90deg, #7fb8bd, #4b7d98) !important; }
.emt-arrest-case-person-arm { left: 45px; top: 38px; width: 47px; height: 7px; border-radius: 5px; transform: rotate(9deg); }
.emt-arrest-case-person-leg { left: 87px; top: 18px; width: 28px; height: 8px; border-radius: 5px; }
.emt-arrest-case-care-symbol { display: flex; gap: 4px; align-items: end; height: 53px; margin: 2px 0; }
.emt-arrest-case-care-symbol span { width: 13px; height: 29px; border-radius: 5px; background: #226157; box-shadow: inset 0 0 0 2px rgba(116, 227, 209, .6); }
.emt-arrest-case-care-symbol span:nth-child(2) { height: 44px; background: #3b9f8b; }
.emt-arrest-case-care-symbol span:nth-child(3) { height: 35px; background: #27766b; }
.emt-arrest-case-aed { display: grid; grid-template-columns: 1fr auto; align-items: center; width: 76px; height: 55px; margin: 2px 0; padding: 8px; border: 3px solid #dea96a; border-radius: 9px; color: #ffe1ad; background: linear-gradient(145deg, #3d5460, #233847); box-shadow: inset 0 0 0 2px #112939; }
.emt-arrest-case-aed span { font-size: .74rem; font-weight: 900; letter-spacing: .04em; }
.emt-arrest-case-aed b { width: 11px; height: 11px; border-radius: 50%; background: #5c6b73; }
.emt-arrest-case-aed b.is-active { background: #ffd575; box-shadow: 0 0 12px rgba(255, 213, 117, .6); }
.emt-arrest-case-aed i { grid-column: 1 / -1; width: 100%; height: 5px; border-radius: 3px; background: #8fbac2; }
.emt-arrest-case-review-note { margin: 0; color: #a9c7d0; font-size: .69rem; }
.emt-arrest-case-controls,
.emt-arrest-case-timeline,
.emt-arrest-case-transfer,
.emt-arrest-case-compare { display: grid; gap: 11px; min-width: 0; padding: 14px; border: 1px solid var(--eac-line); border-radius: 9px; background: rgba(5, 17, 27, .52); }
.emt-arrest-case-controls h4,
.emt-arrest-case-timeline h4,
.emt-arrest-case-transfer h4,
.emt-arrest-case-compare h4 { margin: 0; font-size: .96rem; }
.emt-arrest-case-controls-head p,
.emt-arrest-case-section-top p { font-size: .72rem; }
.emt-arrest-case-control-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 10px; }
.emt-arrest-case-control-card { display: grid; align-content: start; gap: 9px; min-width: 0; padding: 11px; border: 1px solid var(--eac-line); border-radius: 8px; background: #102431; }
.emt-arrest-case-control-card h5,
.emt-arrest-case-packet h5,
.emt-arrest-case-receiver h5 { margin: 0; font-size: .77rem; }
.emt-arrest-case-role-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: end; padding: 7px 0; border-top: 1px solid rgba(173, 214, 227, .13); }
.emt-arrest-case-role-row label { display: grid; gap: 4px; min-width: 0; color: #d9e9ec; font-size: .69rem; }
.emt-arrest-case-role-row select { min-height: 34px; }
.emt-arrest-case-role-row button { min-height: 34px; padding: 5px 7px; border: 1px solid rgba(100, 221, 200, .36); border-radius: 5px; color: #bff9ed; background: #173d44; font-size: .66rem; }
.emt-arrest-case-role-row button[aria-pressed="true"] { color: #102a2c; background: #85ecd8; }
.emt-arrest-case-check { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 8px !important; color: #d3e3e7 !important; font-size: .7rem !important; font-weight: 450 !important; line-height: 1.42; cursor: pointer; }
.emt-arrest-case-check input,
.emt-arrest-case-fact input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--eac-teal); }
.emt-arrest-case-check:has(input:disabled) { opacity: .5; }
.emt-arrest-case-range { display: grid; gap: 7px; padding-top: 6px; border-top: 1px solid var(--eac-line); color: #d7e5e8; font-size: .7rem; }
.emt-arrest-case-range output { color: #a6f5e4; font-weight: 800; font-variant-numeric: tabular-nums; }
.emt-arrest-case-range input { width: 100%; accent-color: var(--eac-teal); }
.emt-arrest-case-small,
.emt-arrest-case-warning { margin: 0; color: #b9d1d8; font-size: .68rem; line-height: 1.43; }
.emt-arrest-case-warning { color: #f1cc9c; }
.emt-arrest-case-action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.emt-arrest-case-action-row button,
.emt-arrest-case-run button { padding: 7px 10px; border: 1px solid rgba(130, 189, 255, .37); border-radius: 6px; color: #dfedfa; background: #1b394f; font-size: .72rem; line-height: 1.26; }
.emt-arrest-case-action-row .emt-arrest-case-primary { border-color: rgba(100, 221, 200, .6); color: #082c32; background: #86e6d1; font-weight: 800; }
.emt-arrest-case-gate { min-height: 1.2em; margin: 0; color: #f3d6a8; font-size: .7rem; }
.emt-arrest-case-section-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.emt-arrest-case-section-top > div { display: grid; gap: 5px; }
.emt-arrest-case-section-top > strong { color: #a7f2e2; font-size: .69rem; font-weight: 750; }
.emt-arrest-case-tracks { display: grid; gap: 9px; }
.emt-arrest-case-track-row { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 8px; align-items: center; }
.emt-arrest-case-track-row > strong { color: #d9e9ed; font-size: .69rem; }
.emt-arrest-case-track { position: relative; height: 25px; min-width: 0; overflow: hidden; border: 1px solid rgba(173, 214, 227, .3); border-radius: 5px; background: #122b39; }
.emt-arrest-case-segment { position: absolute; top: 0; bottom: 0; min-width: 2px; }
.emt-arrest-case-segment.is-future { opacity: .22; }
.emt-arrest-case-kind-reported { background: #8bbdde; }
.emt-arrest-case-kind-unknown,
.emt-arrest-case-kind-wait { background: #446170; }
.emt-arrest-case-kind-check { background: #9ebdeb; }
.emt-arrest-case-kind-cpr { background: #53cbbb; }
.emt-arrest-case-kind-gap { background: #e58580; }
.emt-arrest-case-kind-clear,
.emt-arrest-case-kind-analysis { background: #eab46f; }
.emt-arrest-case-kind-setup { background: #5c8a9d; }
.emt-arrest-case-kind-ready { background: #83c9de; }
.emt-arrest-case-playhead { position: absolute; z-index: 2; top: 0; bottom: 0; width: 3px; background: #fff; box-shadow: 0 0 8px #fff; }
.emt-arrest-case-scale { display: flex; justify-content: space-between; margin-left: 153px; color: #aecbd1; font-size: .64rem; font-variant-numeric: tabular-nums; }
.emt-arrest-case-scrub { display: grid; gap: 5px; color: #d8e9eb; font-size: .73rem; }
.emt-arrest-case-scrub output { color: #aeffe9; font-weight: 850; font-variant-numeric: tabular-nums; }
.emt-arrest-case-scrub input { width: 100%; accent-color: var(--eac-teal); }
.emt-arrest-case-events { display: grid; gap: 5px; max-height: 235px; margin: 0; padding-left: 21px; overflow: auto; }
.emt-arrest-case-event { padding: 7px 9px; border-left: 2px solid #8bbdde; color: #cfe2e5; background: rgba(130, 189, 255, .055); font-size: .69rem; line-height: 1.4; }
.emt-arrest-case-event-care { border-color: var(--eac-teal); }
.emt-arrest-case-event-device { border-color: var(--eac-gold); }
.emt-arrest-case-event-crew { border-color: #b9a3e8; }
.emt-arrest-case-event strong,
.emt-arrest-case-event span { display: block; }
.emt-arrest-case-event strong { color: #edf7f7; }
.emt-arrest-case-transfer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.emt-arrest-case-packet,
.emt-arrest-case-receiver { display: grid; align-content: start; gap: 9px; min-width: 0; padding: 11px; border: 1px solid var(--eac-line); border-radius: 8px; background: #102431; }
.emt-arrest-case-fact { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border: 1px solid rgba(173, 214, 227, .18); border-radius: 6px; color: #d5e8e9; background: rgba(130, 189, 255, .04); cursor: pointer; }
.emt-arrest-case-fact:has(input:disabled) { opacity: .53; cursor: default; }
.emt-arrest-case-fact > span { display: grid; gap: 3px; min-width: 0; font-size: .68rem; line-height: 1.37; }
.emt-arrest-case-fact strong { color: #f2f9f8; font-size: .71rem; }
.emt-arrest-case-fact small { color: #9ce6d9; font-size: .64rem; }
.emt-arrest-case-receiver h6 { margin: 5px 0 0; color: #f2d4a5; font-size: .72rem; }
.emt-arrest-case-receiver :is(ol, ul) { display: grid; gap: 6px; margin: 0; padding-left: 19px; color: #d4e6e7; font-size: .68rem; line-height: 1.39; }
.emt-arrest-case-receiver li strong,
.emt-arrest-case-receiver li span { display: block; }
.emt-arrest-case-receiver li strong { color: #a7f0e1; }
.emt-arrest-case-receiver ul { color: #f3d5a9; }
.emt-arrest-case-run-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.emt-arrest-case-run { display: grid; align-content: start; justify-items: start; gap: 7px; min-width: 0; padding: 11px; border: 1px solid var(--eac-line); border-radius: 7px; background: #102431; }
.emt-arrest-case-run strong { color: #9cf1df; font-size: .76rem; }
.emt-arrest-case-run p { margin: 0; color: #cddfe2; font-size: .69rem; line-height: 1.4; }
.emt-arrest-case-text-equivalent { margin: 0; padding: 10px 11px; border: 1px solid rgba(100, 221, 200, .25); border-radius: 6px; color: #ccece8; background: rgba(100, 221, 200, .045); font-size: .71rem; line-height: 1.45; }
.emt-arrest-case-safety { color: #ead6b5; font-size: .74rem; }
.emt-arrest-case-source { font-size: .7rem; }
.emt-arrest-case-source a { color: #a1f4e0; }
.emt-arrest-case-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 950px) {
  .emt-arrest-case-control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emt-arrest-case-control-card:first-child { grid-row: span 2; }
}
@media (max-width: 680px) {
  .emt-arrest-case-visuals,
  .emt-arrest-case-setup,
  .emt-arrest-case-control-grid,
  .emt-arrest-case-transfer-grid,
  .emt-arrest-case-run-grid { grid-template-columns: 1fr; }
  .emt-arrest-case-control-card:first-child { grid-row: auto; }
  .emt-arrest-case-card { min-height: 0; }
  .emt-arrest-case-track-row { grid-template-columns: 1fr; gap: 4px; }
  .emt-arrest-case-scale { margin-left: 0; }
}
@media (max-width: 390px) {
  .emt-arrest-case-lab { padding: 11px; }
  .emt-arrest-case-command,
  .emt-arrest-case-controls,
  .emt-arrest-case-timeline,
  .emt-arrest-case-transfer,
  .emt-arrest-case-compare { padding: 10px; }
  .emt-arrest-case-command-top { gap: 10px; }
  .emt-arrest-case-role-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .emt-arrest-case-lab *, .emt-arrest-case-lab *::before, .emt-arrest-case-lab *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
