.emt-team-lab {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(85, 214, 190, 0.32);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(85, 214, 190, 0.09), transparent 45%), #101c28;
  color: var(--text);
}
.emt-team-lab [hidden] { display: none !important; }
.emt-team-head { display: grid; justify-items: start; gap: 7px; }
.emt-team-head h3 { margin: 0; font-size: 1.17rem; }
.emt-team-head p,
.emt-team-guide,
.emt-team-roles-section > p,
.emt-team-timeline-section > p,
.emt-team-text-equivalent,
.emt-team-safety,
.emt-team-references { margin: 0; color: #c5d4dd; line-height: 1.5; }
.emt-team-head p { max-width: 86ch; }
.emt-team-guide { padding: 10px 13px; border-left: 3px solid #6fb6ff; background: rgba(111, 182, 255, 0.08); font-size: 0.79rem; }
.emt-team-lab button { min-height: 36px; }
.emt-team-lab :is(button, select, input):focus-visible { outline: 2px solid #a8eaff; outline-offset: 3px; }
.emt-team-lab button:disabled { opacity: 0.5; cursor: not-allowed; }
.emt-team-presets,
.emt-team-roles-section,
.emt-team-prep,
.emt-team-situation,
.emt-team-timeline-section,
.emt-team-communication,
.emt-team-handoff { display: grid; gap: 11px; }
.emt-team-presets h4,
.emt-team-roles-section h4,
.emt-team-prep h4,
.emt-team-situation h4,
.emt-team-timeline-section h4,
.emt-team-communication h4,
.emt-team-handoff h4 { margin: 0; font-size: 0.95rem; }
.emt-team-presets { padding: 13px; border: 1px solid rgba(111, 182, 255, 0.25); border-radius: 8px; background: rgba(111, 182, 255, 0.06); }
.emt-team-preset-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.emt-team-preset-buttons button { font-size: 0.74rem; }
.emt-team-roles-section > p,
.emt-team-timeline-section > p { font-size: 0.78rem; }
.emt-team-count-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; }
.emt-team-count-row strong { margin-right: 6px; font-size: 0.8rem; }
.emt-team-count-row button[aria-pressed="true"] { border-color: #55d6be; background: rgba(85, 214, 190, 0.16); color: #e4fcf6; }
.emt-team-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.emt-team-role-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  align-items: center;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(4, 13, 22, 0.5);
}
.emt-team-role-row[data-confirmed="true"] { border-color: rgba(85, 214, 190, 0.35); }
.emt-team-role-row strong { font-size: 0.78rem; }
.emt-team-role-row select { min-height: 35px; min-width: 124px; padding: 5px 7px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 6px; color: var(--text); background: #1c2a35; }
.emt-team-role-row button { grid-column: 1; justify-self: start; min-height: 31px; padding: 5px 9px; font-size: 0.71rem; }
.emt-team-role-row button[aria-pressed="true"] { border-color: rgba(85, 214, 190, 0.6); color: #a4f1df; }
.emt-team-role-state { justify-self: end; color: #e8c692; font-size: 0.69rem; font-weight: 800; }
.emt-team-role-row[data-confirmed="true"] .emt-team-role-state { color: #97e7d6; }

.emt-team-prep { padding: 14px; border: 1px solid rgba(111, 182, 255, 0.25); border-radius: 8px; background: rgba(4, 13, 22, 0.4); }
.emt-team-checkbox { display: flex; align-items: flex-start; gap: 8px; color: #d3e1e5; font-size: 0.76rem; cursor: pointer; }
.emt-team-checkbox input { flex: 0 0 auto; margin-top: 2px; accent-color: #55d6be; }
.emt-team-switch-field { display: grid; gap: 6px; max-width: 390px; font-size: 0.76rem; }
.emt-team-switch-field select { min-height: 36px; padding: 6px 8px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 6px; color: var(--text); background: #1c2a35; }
.emt-team-situation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.emt-team-situation-card { min-height: 115px; padding: 12px; border: 1px solid rgba(111, 182, 255, 0.24); border-radius: 8px; background: #0b1824; }
.emt-team-kicker { color: #8edbd1; font-size: 0.67rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.emt-team-situation-card p { margin: 7px 0 0; color: #d2e0e4; font-size: 0.77rem; line-height: 1.45; }

.emt-team-timeline-section { padding: 14px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 8px; background: rgba(4, 13, 22, 0.48); }
.emt-team-bar-label { color: #d9ebed; font-size: 0.74rem; }
.emt-team-bar { position: relative; display: flex; height: 33px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 5px; background: #0b1723; overflow: hidden; }
.emt-team-bar-part { flex: 0 0 auto; height: 100%; }
.emt-team-bar-compressions { background: #55d6be; }
.emt-team-bar-breaths { background: #77bdf0; }
.emt-team-bar-setup { background: #e8b277; }
.emt-team-bar-analysis { background: #ed7e77; }
.emt-team-bar-switch { background: #c299ee; }
.emt-team-playhead { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; box-shadow: 0 0 8px #fff; }
.emt-team-scale { display: flex; justify-content: space-between; color: #a9bec8; font-size: 0.67rem; font-weight: 700; }
.emt-team-replay-field { display: grid; gap: 6px; max-width: 650px; }
.emt-team-replay-field strong { font-size: 0.77rem; }
.emt-team-replay-field input[type="range"] { width: 100%; accent-color: #55d6be; }
.emt-team-replay-field output { color: #8ee9d7; font-size: 0.73rem; font-weight: 800; }
.emt-team-replay-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.emt-team-replay-actions button { font-size: 0.73rem; }
.emt-team-fraction,
.emt-team-current-action { margin: 0; padding: 9px 11px; border-left: 3px solid #55d6be; background: rgba(85, 214, 190, 0.07); color: #c9dfe2; font-size: 0.76rem; line-height: 1.45; }
.emt-team-current-action { border-color: #77bdf0; background: rgba(119, 189, 240, 0.07); }
.emt-team-pause-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; margin: 0; padding-left: 20px; color: #bcd1d8; font-size: 0.72rem; line-height: 1.45; }

.emt-team-communication { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.emt-team-communication h4 { grid-column: 1 / -1; }
.emt-team-warning-list,
.emt-team-loop-list { display: grid; align-content: start; gap: 8px; margin: 0; padding: 12px 12px 12px 30px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; background: rgba(4, 13, 22, 0.48); color: #d0dee2; font-size: 0.75rem; line-height: 1.43; }
.emt-team-warning-list { border-color: rgba(229, 180, 123, 0.3); }
.emt-team-warning-list li::marker { color: #e5b47b; }
.emt-team-loop-list li::marker { color: #55d6be; }
.emt-team-handoff { padding: 14px; border: 1px solid rgba(111, 182, 255, 0.26); border-radius: 8px; background: rgba(111, 182, 255, 0.06); }
.emt-team-handoff-list { display: grid; gap: 7px; margin: 0; padding-left: 20px; }
.emt-team-handoff-list li { color: #d5e4e8; font-size: 0.76rem; line-height: 1.44; }
.emt-team-handoff-list strong { display: block; color: #95e5d5; font-size: 0.7rem; }
.emt-team-handoff-list span { display: block; }
.emt-team-text-equivalent { padding: 10px 12px; border: 1px solid rgba(111, 182, 255, 0.2); border-radius: 7px; background: rgba(111, 182, 255, 0.06); font-size: 0.77rem; }
.emt-team-safety { color: #e4cbaa; font-size: 0.78rem; }
.emt-team-references { font-size: 0.72rem; }
.emt-team-references a { color: #96e8dc; }
.emt-team-live-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 900px) {
  .emt-team-role-grid,
  .emt-team-communication { grid-template-columns: 1fr; }
  .emt-team-communication h4 { grid-column: auto; }
}
@media (max-width: 620px) {
  .emt-team-lab { padding: 14px; }
  .emt-team-role-row { grid-template-columns: 1fr; }
  .emt-team-role-row select,
  .emt-team-role-state { justify-self: stretch; }
  .emt-team-role-state { text-align: left; }
  .emt-team-situation-grid,
  .emt-team-pause-list { grid-template-columns: 1fr; }
}
