.emt-ecg-transfer-lab {
  display: grid;
  gap: 18px;
  padding: clamp(15px, 2.5vw, 24px);
  border: 1px solid rgba(104, 195, 220, 0.31);
  border-radius: 12px;
  background: radial-gradient(circle at 90% 2%, rgba(92, 182, 208, 0.1), transparent 31%), #101c28;
  color: var(--text, #e9f3f6);
}
.emt-ecg-transfer-lab * { box-sizing: border-box; }
.emt-ecg-transfer-lab :is(button, select, input, textarea):focus-visible { outline: 2px solid #a6edff; outline-offset: 3px; }
.emt-ecg-transfer-lab button { min-height: 39px; }
.emt-ecg-transfer-lab :is(h3, h4, h5, p, ul) { margin: 0; }
.emt-ecg-transfer-lab p { line-height: 1.5; }
.emt-et-head { display: grid; gap: 7px; max-width: 90ch; }
.emt-et-head h3 { font-size: 1.24rem; }
.emt-et-head p,
.emt-et-acquisition > p,
.emt-et-library > p,
.emt-et-receiver > p,
.emt-et-handoff > p,
.emt-et-sources { color: #bed0da; }
.emt-et-patient-section,
.emt-et-acquisition,
.emt-et-library,
.emt-et-transmit,
.emt-et-receiver,
.emt-et-artifacts,
.emt-et-handoff { display: grid; gap: 11px; }
.emt-et-artifacts > p { color: #bed0da; }
.emt-et-kicker { color: #98b4c2; font-size: 0.68rem; font-weight: 850; letter-spacing: 0.08em; }

.emt-et-moment-buttons,
.emt-et-actions,
.emt-et-footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.emt-et-moment-buttons button[aria-pressed="true"] {
  border-color: #83dbe3;
  background: rgba(83, 190, 199, 0.22);
  color: #ecffff;
}
.emt-et-patient-card {
  display: grid;
  gap: 7px;
  padding: 15px;
  border: 1px solid rgba(122, 212, 174, 0.35);
  border-left: 4px solid #7ed7ac;
  border-radius: 8px;
  background: rgba(78, 159, 112, 0.08);
}
.emt-et-patient-card[data-changed="true"] { border-color: rgba(237, 174, 116, 0.5); border-left-color: #ecae7c; background: rgba(193, 123, 78, 0.1); }
.emt-et-patient-card strong { font-size: 0.96rem; }
.emt-et-patient-card p { color: #d6e8e4; font-size: 0.83rem; }
.emt-et-patient-card[data-changed="true"] p { color: #e9d7c9; }

.emt-et-acquisition-controls {
  display: grid;
  grid-template-columns: auto minmax(210px, 1fr) minmax(210px, 1fr);
  gap: 11px;
  align-items: end;
}
.emt-et-field { display: grid; gap: 7px; font-size: 0.78rem; font-weight: 750; }
.emt-et-field select {
  min-height: 40px;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid rgba(170, 211, 226, 0.3);
  border-radius: 6px;
  background: #1a2a37;
  color: #e8f3f6;
  font: inherit;
}
.emt-et-preview {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(180px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(140, 197, 219, 0.24);
  border-radius: 8px;
  background: #0b1b29;
}
.emt-et-preview[data-quality="limited"] { border-color: rgba(245, 182, 112, 0.45); }
.emt-et-preview-graphic {
  position: relative;
  height: 78px;
  overflow: hidden;
  border: 1px solid rgba(150, 205, 222, 0.17);
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(120, 176, 194, 0.08) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(rgba(120, 176, 194, 0.08) 1px, transparent 1px) 0 0 / 18px 18px,
    #071823;
}
.emt-et-preview-graphic::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px solid rgba(181, 223, 231, 0.29);
}
.emt-et-preview-line {
  position: absolute;
  left: 3%; top: calc(50% - 7px);
  width: 94%; height: 14px;
  background: #69d4c9;
  clip-path: polygon(0 42%, 10% 38%, 20% 53%, 30% 44%, 40% 46%, 50% 37%, 60% 48%, 70% 42%, 80% 51%, 90% 38%, 100% 46%, 100% 64%, 90% 56%, 80% 68%, 70% 59%, 60% 65%, 50% 54%, 40% 63%, 30% 60%, 20% 69%, 10% 54%, 0 58%);
  filter: drop-shadow(0 0 5px rgba(105, 212, 201, 0.45));
}
.emt-et-preview[data-quality="limited"] .emt-et-preview-line {
  top: calc(50% - 18px);
  height: 36px;
  background: #f2b675;
  clip-path: polygon(0 46%, 7% 22%, 12% 66%, 19% 31%, 26% 79%, 32% 20%, 38% 53%, 45% 36%, 52% 69%, 60% 23%, 67% 61%, 74% 39%, 80% 78%, 87% 22%, 94% 57%, 100% 40%, 100% 54%, 94% 72%, 87% 36%, 80% 91%, 74% 53%, 67% 75%, 60% 37%, 52% 83%, 45% 49%, 38% 67%, 32% 33%, 26% 91%, 19% 45%, 12% 79%, 7% 36%, 0 61%);
}
.emt-et-preview-description { display: grid; gap: 5px; }
.emt-et-preview-description strong { color: #deeff2; font-size: 0.86rem; }
.emt-et-preview-description p { color: #a9c1cc; font-size: 0.76rem; }
.emt-et-acquisition > button { justify-self: start; }

.emt-et-record-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.emt-et-empty {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px dashed rgba(153, 204, 221, 0.3);
  border-radius: 7px;
  color: #b6cbd4;
  font-size: 0.83rem;
}
.emt-et-record-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(148, 201, 219, 0.27);
  border-radius: 8px;
  background: #102330;
  color: #d8e9ee;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.emt-et-record-card[data-selected="true"] { border-color: #86d7dc; box-shadow: inset 0 0 0 1px rgba(134, 215, 220, 0.3); }
.emt-et-record-card[data-status="confirmed"] { border-left: 4px solid #8ad9a9; }
.emt-et-record-card[data-status="awaiting-receipt"] { border-left: 4px solid #efc078; }
.emt-et-record-card strong { font-size: 0.83rem; }
.emt-et-record-card span { color: #b9ced7; font-size: 0.75rem; line-height: 1.4; }

.emt-et-transmit {
  padding: 15px;
  border: 1px solid rgba(146, 201, 222, 0.28);
  border-radius: 9px;
  background: rgba(7, 21, 33, 0.55);
}
.emt-et-selected-banner {
  padding: 11px 12px;
  border: 1px solid rgba(151, 204, 221, 0.2);
  border-radius: 7px;
  background: rgba(115, 171, 189, 0.08);
  color: #dcebf0;
  font-size: 0.82rem;
  line-height: 1.5;
}
.emt-et-selected-banner[data-status="confirmed"] { border-color: rgba(131, 219, 170, 0.38); }
.emt-et-selected-banner[data-status="awaiting-receipt"] { border-color: rgba(239, 192, 120, 0.44); }
.emt-et-status-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.emt-et-status-track span {
  padding: 7px 8px;
  border: 1px solid rgba(156, 200, 216, 0.18);
  border-radius: 6px;
  background: rgba(107, 156, 175, 0.07);
  color: #9eb4be;
  font-size: 0.7rem;
  font-weight: 760;
  text-align: center;
}
.emt-et-status-track span[data-state="current"] { border-color: #efc078; background: rgba(239, 192, 120, 0.14); color: #f3dbb2; }
.emt-et-status-track span[data-state="done"] { border-color: #78d4b0; background: rgba(120, 212, 176, 0.13); color: #c9f2dc; }
.emt-et-transmit > button { justify-self: start; }
.emt-et-verify-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.emt-et-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(159, 206, 222, 0.2);
  border-radius: 7px;
  color: #d4e4ea;
  font-size: 0.78rem;
  line-height: 1.4;
}
.emt-et-check input { flex: none; margin-top: 2px; accent-color: #67d0cb; }
.emt-et-issues {
  display: grid;
  gap: 4px;
  padding: 10px 12px 10px 30px;
  border: 1px solid rgba(242, 186, 117, 0.23);
  border-radius: 7px;
  background: rgba(226, 152, 76, 0.07);
  color: #ead5bb;
  font-size: 0.77rem;
  line-height: 1.45;
}
.emt-et-issues .emt-et-ready { color: #a4e5c2; }
.emt-et-issues .emt-et-reminder { color: #f0cc9c; }

.emt-et-receiver-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.emt-et-receiver-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(146, 199, 219, 0.25);
  border-top: 3px solid #a8b4be;
  border-radius: 8px;
  background: #0d2030;
}
.emt-et-receiver-card[data-received="true"] { border-top-color: #8ad6aa; }
.emt-et-receiver-card h5 { font-size: 0.88rem; }
.emt-et-receiver-card p { color: #c8dbe1; font-size: 0.78rem; }
.emt-et-receiver-notes { display: grid; gap: 4px; padding-left: 18px; color: #e3bf91; font-size: 0.74rem; line-height: 1.45; }
.emt-et-comparison {
  padding: 9px 12px;
  border-left: 3px solid #6dcbd3;
  background: rgba(91, 194, 205, 0.08);
  color: #d1e5e9;
  font-size: 0.8rem;
}
.emt-et-artifact-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.emt-et-artifact-sheet {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 15px;
  border: 1px solid #d7cfc1;
  border-radius: 3px;
  background: linear-gradient(130deg, #fffdf6, #f1ede3);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
  color: #253442;
}
.emt-et-artifact-sheet[data-present="false"] { background: linear-gradient(130deg, #f2f0e9, #e8e5dd); }
.emt-et-artifact-heading { display: grid; gap: 4px; padding-bottom: 8px; border-bottom: 2px solid #a2b1b7; }
.emt-et-artifact-source { color: #456170; font: 800 0.63rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.13em; }
.emt-et-artifact-heading strong { overflow-wrap: anywhere; font: 800 1.07rem/1.25 ui-monospace, SFMono-Regular, Consolas, monospace; }
.emt-et-artifact-stamp {
  justify-self: start;
  padding: 3px 7px;
  border: 2px solid #7b8791;
  color: #5b6872;
  font: 800 0.65rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.06em;
  transform: rotate(-1deg);
}
.emt-et-artifact-stamp[data-status="confirmed"] { border-color: #31745e; color: #28634f; }
.emt-et-artifact-stamp[data-status="awaiting-receipt"] { border-color: #a86b28; color: #8b561b; }
.emt-et-artifact-stamp[data-status="not-sent"] { border-color: #536978; color: #445866; }
.emt-et-artifact-details { display: grid; grid-template-columns: minmax(95px, 0.38fr) minmax(0, 1fr); gap: 5px 9px; margin: 0; font-size: 0.73rem; line-height: 1.45; }
.emt-et-artifact-details dt { color: #546874; font-weight: 800; }
.emt-et-artifact-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.emt-et-artifact-trace {
  display: grid;
  min-height: 73px;
  place-items: center;
  padding: 9px;
  border: 1px solid #d5b9b1;
  background:
    linear-gradient(90deg, rgba(198, 121, 120, 0.12) 1px, transparent 1px) 0 0 / 9px 9px,
    linear-gradient(rgba(198, 121, 120, 0.12) 1px, transparent 1px) 0 0 / 9px 9px,
    #fffaf5;
  color: #684f50;
  font-size: 0.68rem;
  font-weight: 750;
  text-align: center;
}
.emt-et-artifact-sheet small { color: #5d707a; font-size: 0.64rem; }
.emt-et-artifact-difference {
  padding: 10px 12px;
  border-left: 3px solid #efc078;
  background: rgba(239, 192, 120, 0.09);
  color: #e8d8bd !important;
  font-size: 0.79rem;
}
.emt-et-handoff textarea {
  width: 100%;
  min-height: 108px;
  padding: 10px 12px;
  border: 1px solid rgba(154, 205, 225, 0.3);
  border-radius: 7px;
  background: #091722;
  color: #eaf3f6;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}
.emt-et-handoff button { justify-self: start; }
.emt-et-live-summary { color: #acc4ce; font-size: 0.76rem; }
.emt-et-text-equivalent {
  padding: 10px 12px;
  border: 1px solid rgba(151, 204, 222, 0.19);
  border-radius: 7px;
  background: rgba(4, 17, 27, 0.5);
  color: #c4d7df;
  font-size: 0.76rem;
}
.emt-et-sources { font-size: 0.75rem; }
.emt-et-sources a { color: #93d2f0; }

@media (max-width: 830px) {
  .emt-et-acquisition-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emt-et-acquisition-controls > button { align-self: end; }
  .emt-et-verify-grid { grid-template-columns: 1fr; }
}
@media (max-width: 610px) {
  .emt-et-acquisition-controls,
  .emt-et-preview,
  .emt-et-record-list,
  .emt-et-receiver-grid,
  .emt-et-artifact-pair { grid-template-columns: 1fr; }
  .emt-et-acquisition-controls > button { justify-self: start; }
}
