.omnimed-tele-page {
  min-height: 100dvh;
  background: #040b14;
  color: #e8f4ff;
}

.tele-perm-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
}

.tele-perm-card {
  max-width: 420px;
  width: 100%;
  padding: 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 243, 255, 0.35);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(4, 11, 20, 0.98));
  box-shadow: 0 0 48px rgba(0, 243, 255, 0.12);
}

.tele-perm-card h2 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tele-perm-list {
  margin: 1rem 0;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
}

.tele-perm-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tele-btn {
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s, box-shadow 0.12s;
}

.tele-btn--primary {
  background: linear-gradient(135deg, #00f3ff, #0891b2);
  color: #041018;
  border-color: rgba(0, 243, 255, 0.5);
}

.tele-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #a5f3fc;
  border-color: rgba(0, 243, 255, 0.25);
}

.tele-lobby {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.tele-lobby-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 243, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
}

.tele-clinic {
  display: none;
  grid-template-columns: 1fr 340px;
  grid-template-rows: 1fr auto;
  height: 100dvh;
  max-height: 100dvh;
}

.tele-clinic--active {
  display: grid;
}

@media (max-width: 900px) {
  .tele-clinic--active {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 280px auto;
  }
}

.tele-video-wrap {
  position: relative;
  background: #000;
  overflow: hidden;
}

.tele-video-remote {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 50vh;
}

.tele-video-local {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 28%;
  max-width: 200px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 2px solid rgba(0, 243, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.tele-controls {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tele-ctrl {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.tele-ctrl--off {
  background: rgba(244, 63, 94, 0.35);
  border-color: #f87171;
}

.tele-ctrl--ai-on {
  background: rgba(124, 58, 237, 0.5);
  border-color: #c4b5fd;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}

.tele-sidebar {
  display: flex;
  flex-direction: column;
  background: #0a1018;
  border-left: 1px solid rgba(0, 243, 255, 0.15);
  min-height: 0;
}

.tele-sidebar-head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #67e8f9;
}

.tele-chat-log,
.tele-transcript {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.tele-transcript {
  border-top: 1px solid rgba(124, 58, 237, 0.25);
  background: rgba(30, 27, 75, 0.2);
  max-height: 40%;
  display: none;
}

.tele-transcript--on {
  display: block;
}

.tele-chat-input-row {
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tele-chat-input-row input {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #020617;
  color: #fff;
  font-size: 0.85rem;
}

.tele-status-bar {
  grid-column: 1 / -1;
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.5);
}

.tele-end-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.85);
}

.tele-end-modal--open {
  display: flex;
}

.tele-end-card {
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 243, 255, 0.3);
  background: #0f172a;
}

.tele-end-card pre,
.tele-end-body {
  white-space: pre-wrap;
  font-size: 0.85rem;
  line-height: 1.55;
  margin-top: 1rem;
  color: #cbd5e1;
}

.tele-msg {
  margin-bottom: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
}

.tele-msg--mine {
  background: rgba(0, 243, 255, 0.1);
  text-align: right;
}
