.emt-ds-lab {
  --ds-ink: #e9f3f3;
  --ds-muted: #b7ced4;
  --ds-line: rgba(156, 205, 219, .25);
  --ds-teal: #70d0d2;
  --ds-amber: #efc681;
  --ds-green: #a3e0b9;
  display: grid;
  gap: 15px;
  min-width: 0;
  margin: 16px 0 24px;
  color: var(--ds-ink);
  font: inherit;
}
.emt-ds-lab *, .emt-ds-lab *::before, .emt-ds-lab *::after { box-sizing: border-box; }
.emt-ds-lab h3, .emt-ds-lab h4, .emt-ds-lab p, .emt-ds-lab blockquote { margin: 0; }
.emt-ds-lab button, .emt-ds-lab select, .emt-ds-lab textarea { font: inherit; }
.emt-ds-lab button { cursor: pointer; }
.emt-ds-lab button:disabled { cursor: default; opacity: .57; }
.emt-ds-lab :focus-visible { outline: 3px solid #b7f2dc; outline-offset: 3px; }
.emt-ds-head {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid rgba(112, 208, 210, .45);
  border-radius: 13px;
  background: radial-gradient(circle at 88% 8%, rgba(117, 203, 197, .22), transparent 32%), linear-gradient(125deg, #143441, #102533 64%, #0b1f2d);
}
.emt-ds-head::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 28px;
  width: 81px;
  height: 81px;
  border: 1px solid rgba(149, 229, 224, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 15px rgba(149, 229, 224, .045), 0 0 0 31px rgba(149, 229, 224, .025);
  pointer-events: none;
}
.emt-ds-head > * { position: relative; z-index: 1; }
.emt-ds-head .additional-course-badge { justify-self: start; }
.emt-ds-head h3 { font-size: clamp(1.24rem, 2.7vw, 1.65rem); line-height: 1.14; }
.emt-ds-head p { max-width: 72ch; color: #cce0e2; font-size: .88rem; line-height: 1.55; }
.emt-ds-ribbon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 13px;
  padding: 10px 14px;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  background: #0d2532;
  font-size: .76rem;
}
.emt-ds-ribbon strong { color: #eaf7f5; }
.emt-ds-ribbon span:last-child { color: var(--ds-muted); }
.emt-ds-ribbon-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ds-amber);
  box-shadow: 0 0 0 4px rgba(239, 198, 129, .13);
}
.emt-ds-how {
  padding: 10px 12px;
  border-left: 3px solid var(--ds-teal);
  border-radius: 0 6px 6px 0;
  background: rgba(85, 174, 179, .09);
  color: #d0e8e8;
  font-size: .82rem;
  line-height: 1.5;
}
.emt-ds-board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 11px; min-width: 0; }
.emt-ds-lane {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--ds-line);
  border-top: 3px solid #6fcdd0;
  border-radius: 10px;
  background: linear-gradient(150deg, #122c39, #0e2230);
}
.emt-ds-lane > button, .emt-ds-action-stack button { justify-self: start; }
.emt-ds-lane-index, .emt-ds-section-kicker {
  color: #8dc8d0;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.emt-ds-lane h4 { font-size: 1rem; line-height: 1.25; }
.emt-ds-patient, .emt-ds-family, .emt-ds-document { grid-column: span 4; }
.emt-ds-policy, .emt-ds-contact { grid-column: span 6; }
.emt-ds-patient { border-top-color: #e49a83; }
.emt-ds-patient .emt-ds-lane-index { color: #e3a897; }
.emt-ds-family { border-top-color: #e5bc79; }
.emt-ds-family .emt-ds-lane-index { color: #e6c991; }
.emt-ds-document { border-top-color: #a2b6e2; }
.emt-ds-document .emt-ds-lane-index { color: #b3c4e6; }
.emt-ds-policy { border-top-color: #87d4bb; }
.emt-ds-policy .emt-ds-lane-index { color: #a3e0c8; }
.emt-ds-contact { border-top-color: #77d0d5; }
.emt-ds-primary-text, .emt-ds-lane-detail { color: #d3e5e9; font-size: .8rem; line-height: 1.48; }
.emt-ds-micro { color: #abc2cb; font-size: .72rem; line-height: 1.44; }
.emt-ds-patient-visual {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 113px;
  padding: 10px;
  border: 1px solid rgba(225, 165, 143, .23);
  border-radius: 8px;
  background: radial-gradient(circle at 18% 49%, rgba(226, 138, 120, .2), transparent 37%), #0a1e2c;
}
.emt-ds-figure { position: relative; flex: none; width: 58px; height: 87px; }
.emt-ds-figure span { position: absolute; display: block; background: #c38d84; }
.emt-ds-figure-head { top: 3px; left: 23px; width: 18px; height: 18px; border-radius: 50%; }
.emt-ds-figure-body { top: 25px; left: 20px; width: 24px; height: 41px; border-radius: 11px 11px 5px 5px; transform: rotate(-42deg); }
.emt-ds-figure-arm.left { top: 43px; left: 3px; width: 26px; height: 8px; border-radius: 6px; transform: rotate(-13deg); }
.emt-ds-figure-arm.right { top: 48px; left: 34px; width: 24px; height: 8px; border-radius: 6px; transform: rotate(27deg); }
.emt-ds-vitals { display: flex; flex-wrap: wrap; align-content: center; gap: 5px; min-width: 0; }
.emt-ds-vitals span {
  padding: 5px 6px;
  border: 1px solid rgba(239, 168, 151, .35);
  border-radius: 5px;
  background: rgba(220, 135, 117, .12);
  color: #f4c5b7;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .03em;
}
.emt-ds-quote {
  padding: 16px;
  border: 1px solid rgba(236, 193, 124, .23);
  border-radius: 8px;
  background: rgba(229, 178, 103, .08);
  color: #f2ddbd;
  font-size: .97rem;
  font-style: italic;
  line-height: 1.45;
}
.emt-ds-status {
  display: inline-block;
  justify-self: start;
  padding: 5px 7px;
  border: 1px solid rgba(242, 197, 127, .45);
  border-radius: 5px;
  color: #f2d39b;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.emt-ds-status[data-state="collected"] { border-color: rgba(117, 210, 197, .42); color: #9fe1d7; }
.emt-ds-paper {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  width: min(100%, 174px);
  min-height: 115px;
  padding: 12px;
  border: 1px solid #b6b8ab;
  border-radius: 3px;
  background: #d9dccf;
  box-shadow: 5px 5px 0 rgba(4, 13, 21, .3);
  transform: rotate(-2deg);
}
.emt-ds-paper[data-revealed="true"] { background: #f0ebd9; }
.emt-ds-paper-title { color: #344b53; font-size: .63rem; font-weight: 900; letter-spacing: .08em; }
.emt-ds-paper-line { height: 4px; border-radius: 2px; background: #87999b; }
.emt-ds-paper-line.short { width: 65%; }
.emt-ds-paper-redaction { height: 13px; width: 72%; background: #20323b; }
.emt-ds-action-stack { display: flex; flex-wrap: wrap; align-items: start; gap: 7px; }
.emt-ds-lab button.secondary-button, .emt-ds-segmented button {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(143, 207, 215, .38);
  border-radius: 6px;
  background: #173f4b;
  color: #e8f8f8;
  font-size: .73rem;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
}
.emt-ds-lab button.secondary-button:not(:disabled):hover, .emt-ds-segmented button:not(:disabled):hover { background: #235665; border-color: #a3e4e5; }
.emt-ds-segmented { display: flex; flex-wrap: wrap; gap: 7px; }
.emt-ds-segmented button[aria-pressed="true"] { background: #315c58; border-color: #9cdec4; box-shadow: inset 0 0 0 1px rgba(156, 222, 196, .3); }
.emt-ds-policy-title { color: #b6edd2; font-size: .86rem; }
.emt-ds-contact-state { display: grid; align-content: start; gap: 7px; padding: 11px; border: 1px solid rgba(136, 208, 215, .25); border-radius: 7px; background: #0a202e; }
.emt-ds-contact-state strong { color: #9ce2e0; font-size: .8rem; }
.emt-ds-contact-state p { color: #c9dee4; font-size: .77rem; line-height: 1.42; }
.emt-ds-lower { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 11px; }
.emt-ds-panel { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 16px; border: 1px solid var(--ds-line); border-radius: 10px; background: #0d2532; }
.emt-ds-panel h4, .emt-ds-record h4 { font-size: 1.03rem; }
.emt-ds-panel-intro { color: var(--ds-muted); font-size: .77rem; line-height: 1.5; }
.emt-ds-role-grid { display: grid; gap: 7px; }
.emt-ds-role-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 6px; padding: 8px; border: 1px solid rgba(149, 204, 213, .2); border-left: 3px solid var(--ds-amber); border-radius: 6px; background: #102e3b; }
.emt-ds-role-row[data-state="confirmed"] { border-left-color: var(--ds-green); }
.emt-ds-role-row[data-state="unassigned"] { border-left-color: #e88f86; }
.emt-ds-role-row label { display: grid; gap: 4px; color: #d7e9eb; font-size: .72rem; font-weight: 740; }
.emt-ds-role-row select { min-width: 0; width: 100%; min-height: 33px; padding: 5px; border: 1px solid var(--ds-line); border-radius: 5px; background: #081e2c; color: var(--ds-ink); font-size: .75rem; }
.emt-ds-role-badge { align-self: center; min-width: 69px; color: #f3d3a4; font-size: .61rem; font-weight: 800; text-align: right; }
.emt-ds-role-row[data-state="confirmed"] .emt-ds-role-badge { color: #ace7c4; }
.emt-ds-crew-warnings { margin: 0; padding: 10px 10px 10px 28px; border-radius: 6px; background: rgba(236, 187, 112, .075); color: #e6d7bb; font-size: .73rem; line-height: 1.45; }
.emt-ds-crew-warnings li + li { margin-top: 4px; }
.emt-ds-decision-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.emt-ds-fact-tile { min-width: 0; padding: 9px; border: 1px solid rgba(137, 199, 209, .24); border-left: 3px solid #e7bf7b; border-radius: 6px; background: #102e3b; }
.emt-ds-fact-tile[data-kind="observed"], .emt-ds-fact-tile[data-kind="matched-detail"] { border-left-color: #8cddc3; }
.emt-ds-fact-tile strong { display: block; color: #e4f1f1; font-size: .74rem; }
.emt-ds-fact-tile span { display: inline-block; margin: 3px 0; color: #a6dfcb; font-size: .61rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.emt-ds-fact-tile[data-kind="unresolved"] span, .emt-ds-fact-tile[data-kind="reported"] span { color: #efcb90; }
.emt-ds-fact-tile p { color: #c3d7dd; font-size: .7rem; line-height: 1.4; }
.emt-ds-decision-summary { padding: 9px 11px; border: 1px solid rgba(229, 174, 120, .28); border-radius: 6px; background: rgba(209, 128, 90, .08); color: #e8d4c3; font-size: .75rem; line-height: 1.45; }
.emt-ds-record { display: grid; gap: 11px; min-width: 0; padding: 16px; border: 1px solid var(--ds-line); border-radius: 10px; background: #0d2532; }
.emt-ds-record-header { display: flex; align-items: end; flex-wrap: wrap; gap: 5px 12px; }
.emt-ds-record-header .emt-ds-section-kicker { flex-basis: 100%; }
.emt-ds-progress { margin-left: auto; color: #a2d9d4; font-size: .72rem; font-weight: 760; }
.emt-ds-timeline { display: grid; gap: 6px; max-height: 330px; overflow: auto; margin: 0; padding: 0 4px 0 0; list-style: none; }
.emt-ds-event { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 3px 10px; padding: 9px 11px; border-left: 3px solid #68c6cb; border-radius: 5px; background: #112f3c; }
.emt-ds-event time { color: #9ce2e0; font-size: .7rem; font-weight: 800; }
.emt-ds-event-source { color: #d9eaea; font-size: .72rem; font-weight: 760; }
.emt-ds-event p { grid-column: 2; color: #bcd2d9; font-size: .73rem; line-height: 1.43; }
.emt-ds-handoff-label { display: grid; gap: 7px; color: #d9e9ed; font-size: .79rem; font-weight: 760; }
.emt-ds-handoff { display: block; width: 100%; min-height: 150px; padding: 11px; border: 1px solid rgba(143, 206, 213, .3); border-radius: 6px; background: #081d2a; color: #d6e9e9; font-size: .73rem; font-weight: 400; line-height: 1.48; resize: vertical; }
.emt-ds-record-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.emt-ds-replay { display: grid; gap: 5px; padding: 11px; border: 1px solid rgba(130, 209, 199, .3); border-radius: 6px; background: #103638; }
.emt-ds-replay[hidden], .emt-ds-action-stack button[hidden] { display: none; }
.emt-ds-replay strong { color: #afe9d4; font-size: .77rem; }
.emt-ds-replay p { color: #d0e4df; font-size: .72rem; line-height: 1.42; }
.emt-ds-safety { padding: 11px 13px; border: 1px solid rgba(236, 178, 114, .36); border-radius: 7px; background: rgba(219, 144, 89, .075); color: #eed9bb; font-size: .78rem; line-height: 1.5; }
.emt-ds-sources { color: #b7ced4; font-size: .73rem; line-height: 1.4; }
.emt-ds-sources a { color: #9bdbe8; }
.emt-ds-text-equivalent { padding: 10px 12px; border: 1px solid rgba(139, 195, 209, .21); border-radius: 6px; background: #0b202d; color: #c0d3da; font-size: .73rem; line-height: 1.48; }
.emt-ds-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 900px) {
  .emt-ds-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emt-ds-patient, .emt-ds-family, .emt-ds-document, .emt-ds-policy, .emt-ds-contact { grid-column: auto; }
  .emt-ds-document { grid-column: 1 / -1; }
  .emt-ds-lower { grid-template-columns: 1fr; }
}
@media (max-width: 590px) {
  .emt-ds-head { padding: 17px; }
  .emt-ds-board { grid-template-columns: 1fr; }
  .emt-ds-patient, .emt-ds-family, .emt-ds-document, .emt-ds-policy, .emt-ds-contact { grid-column: 1; }
  .emt-ds-lane, .emt-ds-panel, .emt-ds-record { padding: 12px; }
  .emt-ds-role-row { grid-template-columns: minmax(0, 1fr) auto; }
  .emt-ds-role-badge { grid-column: 1 / -1; text-align: left; }
  .emt-ds-decision-map { grid-template-columns: 1fr; }
  .emt-ds-progress { width: 100%; margin-left: 0; }
  .emt-ds-event { grid-template-columns: 1fr; }
  .emt-ds-event p { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .emt-ds-lab *, .emt-ds-lab *::before, .emt-ds-lab *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
