html:has(.telehealth-workspace),
.telehealth-workspace {
  height: 100%;
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #0f1c1a;
  color: #e8f4f2;
}
.telehealth-shell { display: flex; height: 100%; }
.telehealth-video { flex: 1; position: relative; min-width: 0; min-height: 0; height: 100%; background: #102522; }
.telehealth-jitsi { position: absolute; inset: 0; overflow: hidden; }
.telehealth-jitsi video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #102522; }
.telehealth-jitsi video[data-telehealth-workspace-target="localVideo"] {
  inset: auto 16px 16px auto; width: 168px; height: 118px; border-radius: 12px; z-index: 2; box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.telehealth-video-status {
  position: absolute; left: 16px; right: 16px; top: 16px;
  margin: 0; text-align: center; color: #fff; font-size: 1rem; z-index: 3; pointer-events: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
}
.telehealth-retry {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 4; white-space: nowrap;
}
.telehealth-banner { position: absolute; z-index: 2; left: 16px; right: 16px; top: 16px; background: #2A9D8F; color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.telehealth-panel { width: 42%; max-width: 520px; min-width: 280px; background: #f4fbfa; color: #1f2a37; padding: 16px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.telehealth-panel.is-collapsed { width: 72px; min-width: 72px; }
.telehealth-panel.is-collapsed textarea, .telehealth-panel.is-collapsed .telehealth-script, .telehealth-panel.is-collapsed label, .telehealth-panel.is-collapsed .telehealth-hint, .telehealth-panel.is-collapsed form { display: none; }
.telehealth-panel__top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.telehealth-panel label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; color: #5b6b73; }
.telehealth-panel textarea { width: 100%; border: 1px solid #e2eeec; border-radius: 12px; padding: 10px; font: inherit; resize: vertical; }
.telehealth-script { background: #fff; border-radius: 12px; padding: 10px; max-height: 180px; overflow: auto; font-size: 0.92rem; }
.telehealth-hint { color: #5b6b73; font-size: 0.85rem; }
.telehealth-btn { background: linear-gradient(90deg, #40C4B6, #2A9D8F); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.telehealth-btn--ghost { background: #fff; color: #2A9D8F; border: 1px solid #2A9D8F; }
.telehealth-btn--solid { width: 100%; margin-top: 8px; }
.telehealth-check { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; }
.telehealth-transfer { display: grid; gap: 8px; margin-top: 8px; }
.telehealth-transfer select { padding: 8px; border-radius: 10px; border: 1px solid #e2eeec; }
.telehealth-handoff { max-width: 560px; margin: 12vh auto; background: #f4fbfa; color: #1f2a37; padding: 32px; border-radius: 24px; text-align: center; }
@media (max-width: 900px) {
  .telehealth-shell { flex-direction: column; }
  .telehealth-panel, .telehealth-video { width: 100%; max-width: none; height: 50%; }
}
