/* Страница /telemost — premium lobby + видеосеанс */

html.telemost-page,
html.telemost-page body,
.telemost-body {
  height: 100%;
  max-height: 100dvh;
  margin: 0;
  overflow: hidden;
}

.telemost-body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  font-family: var(--font-body);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(ellipse 80% 55% at 50% -8%, rgba(52, 211, 153, 0.14), transparent 58%),
    radial-gradient(ellipse 60% 45% at 92% 18%, rgba(139, 92, 246, 0.12), transparent 52%),
    radial-gradient(ellipse 50% 40% at 8% 72%, rgba(59, 130, 246, 0.1), transparent 48%),
    linear-gradient(180deg, #0b1220 0%, #020617 42%, #030712 100%);
}

[data-theme="light"] .telemost-body {
  background:
    radial-gradient(ellipse 80% 55% at 50% -8%, rgba(52, 211, 153, 0.12), transparent 58%),
    radial-gradient(ellipse 60% 45% at 92% 18%, rgba(167, 139, 250, 0.1), transparent 52%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 55%, #f1f5f9 100%);
}

.telemost-error {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  color: #e2e8f0;
}

.telemost-error__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.telemost-error__text {
  margin: 0;
  max-width: 28rem;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  color: #94a3b8;
}

.telemost-error__link {
  color: #34d399;
  text-decoration: none;
}

.telemost-error__link:hover {
  text-decoration: underline;
}

.telemost-app {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.telemost-body > .footer {
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  padding: 0.75rem 1rem;
}

.telemost-app--lobby {
  overflow: hidden;
}

@media (max-width: 768px) {
  .telemost-body > .footer {
    font-size: 0.75rem;
    line-height: 1.5;
    padding: 1rem 0.75rem max(1rem, env(safe-area-inset-bottom, 0px));
  }
}

/* ——— Typography (Playfair + DM Sans) ——— */

.telemost-header .oge-duty-teacher-modal__title.task-premium-section-title {
  display: block;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.15;
  text-transform: none;
  color: #f8fafc;
}

[data-theme="light"] .telemost-header .oge-duty-teacher-modal__title.task-premium-section-title {
  color: #0f172a;
}

.telemost-header .oge-duty-teacher-modal__subtitle {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.9);
}

[data-theme="light"] .telemost-header .oge-duty-teacher-modal__subtitle {
  color: #64748b;
}

.telemost-header__back {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.telemost-picker__list .oge-duty-teacher-card__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.telemost-picker__list .oge-duty-teacher-card__status {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.telemost-picker__list .oge-duty-teacher-card__role--admin {
  font-family: var(--font-body);
  letter-spacing: 0.1em;
}

.telemost-picker__list .oge-duty-teacher-btn-premium {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.telemost-room .oge-duty-call-devices__title,
.telemost-room .oge-duty-call-devices__label,
.telemost-room .oge-duty-teacher-call__tool-label,
.telemost-room .oge-duty-teacher-call__local-label {
  font-family: var(--font-body);
  letter-spacing: 0.045em;
}

.telemost-room .oge-duty-teacher-call__remote-name,
.telemost-room [data-telemost-remote-bar-name] {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.telemost-room .oge-duty-teacher-call__remote-badge {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ——— Header ——— */

.telemost-header--lobby {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
}

.telemost-header--lobby .telemost-header__logo {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  min-width: 0;
}

.telemost-header--lobby .telemost-header__center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: auto;
  max-width: min(calc(100% - 2rem), 42rem);
  padding: 0 0.5rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.telemost-header__phone {
  width: 3.1rem;
  height: 3.1rem;
  flex-shrink: 0;
}

.telemost-header__phone-svg {
  width: 1.35rem;
  height: 1.35rem;
}

.telemost-header__center-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.3rem;
  min-width: 0;
  text-align: left;
}

.telemost-header--lobby .telemost-header__actions {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin-left: auto;
}

.telemost-header__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.12;
  color: #f8fafc;
}

[data-theme="light"] .telemost-header__title {
  color: #0f172a;
}

.telemost-header__subtitle {
  margin: 0;
  max-width: 34rem;
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.92);
}

[data-theme="light"] .telemost-header__subtitle {
  color: #64748b;
}

.telemost-header__logo.header__logo {
  min-width: 0;
}

.telemost-header__logo .header__logo-img {
  width: clamp(11rem, 24vw, 18rem);
}

.telemost-header {
  flex: 0 0 auto;
  position: relative;
  z-index: 4;
  min-height: 4.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: linear-gradient(
    168deg,
    rgba(42, 50, 64, 0.99) 0%,
    rgba(26, 32, 44, 0.97) 46%,
    rgba(16, 20, 30, 0.99) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 10px 32px rgba(0, 0, 0, 0.28);
}

[data-theme="light"] .telemost-header {
  background: linear-gradient(168deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 24px rgba(15, 23, 42, 0.08);
}

.telemost-header__back {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.45);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.telemost-header__back:hover {
  color: #f8fafc;
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow:
    0 0 14px rgba(52, 211, 153, 0.18),
    0 2px 0 rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .telemost-header__back {
  color: #334155;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
}

/* ——— Lobby (premium panel + centered cards) ——— */

.oge-duty-teacher-card--meeting::after {
  background: linear-gradient(
    160deg,
    rgba(59, 130, 246, 0.42) 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(96, 165, 250, 0.28) 100%
  );
}

.oge-duty-teacher-card__avatar-wrap--meeting {
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow:
    0 8px 28px rgba(59, 130, 246, 0.28),
    0 0 0 4px rgba(59, 130, 246, 0.14);
}

.oge-duty-teacher-card__avatar--meeting {
  font-size: 2.35rem;
  background: linear-gradient(
    165deg,
    rgba(59, 130, 246, 0.35) 0%,
    rgba(37, 99, 235, 0.22) 100%
  );
}

[data-theme="light"] .oge-duty-teacher-card__avatar--meeting {
  background: linear-gradient(
    165deg,
    rgba(219, 234, 254, 0.95) 0%,
    rgba(191, 219, 254, 0.75) 100%
  );
}

.telemost-lobby {
  margin: 0 0 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(15, 23, 42, 0.55);
}

.telemost-meeting-share__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.9);
}

.telemost-meeting-share__row {
  display: flex;
  gap: 0.5rem;
}

.telemost-meeting-share__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.45);
  color: #e2e8f0;
  font-size: 0.75rem;
}

.telemost-meeting-share__copy {
  flex: 0 0 auto;
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.telemost-lobby {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem 0.75rem;
  overflow: hidden;
}

.telemost-lobby__panel {
  position: relative;
  isolation: isolate;
  width: min(100%, 78rem);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem clamp(1rem, 2.5vw, 1.75rem) 0.85rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(
    168deg,
    rgba(42, 50, 64, 0.96) 0%,
    rgba(26, 32, 44, 0.94) 46%,
    rgba(16, 20, 30, 0.98) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 -2px 0 rgba(0, 0, 0, 0.32) inset,
    0 28px 72px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.telemost-lobby__meeting-banner {
  flex: 0 0 auto;
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(59, 130, 246, 0.12);
}

.telemost-lobby__meeting-banner[hidden] {
  display: none !important;
}

.telemost-lobby__meeting-banner-title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #e2e8f0;
}

.telemost-lobby__meeting-banner-text {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.82);
}

.telemost-lobby__meeting-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.telemost-lobby__meeting-banner-btn {
  flex: 1 1 auto;
  min-width: 9rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.telemost-lobby__meeting-banner-btn--primary {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(96, 165, 250, 0.45);
  color: #dbeafe;
}

.telemost-lobby__meeting-banner-btn--danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

[data-theme="light"] .telemost-lobby__meeting-banner {
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(219, 234, 254, 0.85);
}

[data-theme="light"] .telemost-lobby__meeting-banner-title {
  color: #0f172a;
}

[data-theme="light"] .telemost-lobby__meeting-banner-text {
  color: #475569;
}

[data-theme="light"] .telemost-lobby__meeting-banner-btn--primary {
  background: #dbeafe;
  color: #1d4ed8;
}

[data-theme="light"] .telemost-lobby__meeting-banner-btn--danger {
  background: #fee2e2;
  color: #b91c1c;
}

.telemost-lobby__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(52, 211, 153, 0.32) 0%,
    rgba(255, 255, 255, 0.07) 42%,
    rgba(139, 92, 246, 0.2) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

[data-theme="light"] .telemost-lobby__panel {
  background: linear-gradient(168deg, #ffffff 0%, #f8fafc 52%, #f1f5f9 100%);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 20px 48px rgba(15, 23, 42, 0.1),
    0 8px 20px rgba(15, 23, 42, 0.06);
}

.telemost-picker {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
}

.telemost-app--lobby .telemost-picker__list {
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 1rem;
  max-width: 100%;
  padding: 0.15rem 0.1rem 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.telemost-app--lobby .telemost-picker__list .oge-duty-teacher-card {
  flex: 0 0 16.5rem;
  width: 16.5rem;
  min-height: 0;
  max-height: 100%;
  padding: 1rem 0.95rem 1.05rem;
  scroll-snap-align: center;
}

.telemost-app--lobby .telemost-picker__list .oge-duty-teacher-card__avatar-wrap {
  width: 5.75rem;
  height: 5.75rem;
}

.telemost-picker__list .oge-duty-teacher-card__call {
  max-width: 100%;
  margin-top: 0.5rem;
}

.telemost-lobby-placeholder {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.55rem 0 0;
  text-align: center;
}

.telemost-dialing-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 20rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.telemost-dialing-bar[hidden] {
  display: none !important;
}

.telemost-dialing-bar__label {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
}

[data-theme="light"] .telemost-dialing-bar__label {
  color: #334155;
}

.telemost-dialing-bar__cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.telemost-dialing-bar__cancel:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.65);
}

[data-theme="light"] .telemost-dialing-bar__cancel {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
}

.telemost-lobby-placeholder__text {
  margin: 0;
  max-width: 28rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(148, 163, 184, 0.95);
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.35);
}

[data-theme="light"] .telemost-lobby-placeholder__text {
  color: #64748b;
  border-color: rgba(100, 116, 139, 0.28);
  background: rgba(248, 250, 252, 0.85);
}

.telemost-app--session .telemost-lobby,
.telemost-app--session .telemost-picker,
.telemost-app--session .telemost-lobby-placeholder {
  display: none;
}

.telemost-app.telemost-app--in-call .telemost-lobby {
  display: none;
}

/* ——— Video room ——— */

.telemost-room {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  pointer-events: auto;
  opacity: 1;
  padding: 0;
}

.telemost-room[hidden] {
  display: none !important;
}

.telemost-room .oge-duty-teacher-modal__panel {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 0;
  transform: none;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.telemost-room .oge-duty-teacher-modal__body {
  flex: 1;
  min-height: 0;
}

.telemost-room .oge-duty-teacher-modal__resize {
  display: none !important;
}

html[data-palette="pink"] .telemost-lobby__panel::after {
  background: linear-gradient(
    160deg,
    rgba(244, 114, 182, 0.35) 0%,
    rgba(255, 255, 255, 0.07) 42%,
    rgba(167, 139, 250, 0.22) 100%
  );
}

@media (max-width: 720px) {
  .telemost-header__back {
    display: none;
  }

  .telemost-header--lobby {
    padding-inline: 0.85rem;
    min-height: 4.25rem;
  }

  .telemost-header--lobby .telemost-header__center {
    gap: 0.65rem;
    max-width: min(calc(100% - 1rem), 20rem);
  }

  .telemost-header__phone {
    width: 2.65rem;
    height: 2.65rem;
  }

  .telemost-header__phone-svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  .telemost-header__title {
    font-size: 1.15rem;
  }

  .telemost-header__subtitle {
    font-size: 0.78rem;
  }

  .telemost-header__logo .header__logo-img {
    width: min(11rem, 52vw);
  }

  .telemost-lobby {
    align-items: center;
    padding: 0.5rem 0.65rem 0.55rem;
  }

  .telemost-lobby__panel {
    padding: 0.75rem 0.65rem 0.65rem;
    border-radius: 18px;
  }

  .telemost-app--lobby .telemost-picker__list {
    gap: 0.75rem;
  }

  .telemost-app--lobby .telemost-picker__list .oge-duty-teacher-card {
    flex: 0 0 14.5rem;
    width: 14.5rem;
    padding: 0.85rem 0.75rem 0.9rem;
  }

  .telemost-app--lobby .telemost-picker__list .oge-duty-teacher-card__avatar-wrap {
    width: 5rem;
    height: 5rem;
  }
}

@media (max-width: 480px) {
  .telemost-app--lobby .telemost-picker__list .oge-duty-teacher-card {
    flex: 0 0 13.5rem;
    width: 13.5rem;
  }
}

/* ——— Видеосеанс: минимализм как Яндекс Телемост ——— */

.telemost-body:has(.telemost-app--session),
.telemost-body:has(.telemost-app--in-call) {
  background: #121212;
}

.telemost-body:has(.telemost-app--session) > .footer,
.telemost-body:has(.telemost-app--in-call) > .footer {
  display: none;
}

.telemost-app--session .telemost-header,
.telemost-app--in-call .telemost-header {
  min-height: 2.75rem;
  padding: 0 1rem;
  border: none;
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

.telemost-app--session .telemost-header__session-bar,
.telemost-app--in-call .telemost-header__session-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.telemost-app--session .telemost-header__session-mark,
.telemost-app--in-call .telemost-header__session-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
}

.telemost-app--session .telemost-header__session-title,
.telemost-app--in-call .telemost-header__session-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.telemost-app--session .telemost-header__back,
.telemost-app--in-call .telemost-header__back {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  border: none;
  background: transparent;
  box-shadow: none;
}

.telemost-app--session .telemost-header__back:hover,
.telemost-app--in-call .telemost-header__back:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.telemost-app--session .telemost-room .oge-duty-teacher-modal__panel,
.telemost-app--in-call .telemost-room .oge-duty-teacher-modal__panel {
  background: #2b2b2e;
  border: none;
  box-shadow: none;
}

.telemost-app--session .telemost-call__body,
.telemost-app--in-call .telemost-call__body {
  padding: 0;
}

.telemost-app--session .telemost-call,
.telemost-app--in-call .telemost-call {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.telemost-app--session .telemost-call__stage,
.telemost-app--in-call .telemost-call__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: #2b2b2e;
  box-shadow: none;
}

/* Лобби → звонок: тот же минималистичный header */
.telemost-app--in-call .telemost-header--lobby .telemost-header__logo,
.telemost-app--in-call .telemost-header--lobby .telemost-header__phone,
.telemost-app--in-call .telemost-header--lobby .telemost-header__subtitle,
.telemost-app--in-call .telemost-header--lobby .oge-duty-teacher-modal__theme-toggle {
  display: none;
}

.telemost-app--in-call .telemost-header--lobby .telemost-header__center {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  pointer-events: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.telemost-app--in-call .telemost-header--lobby .telemost-header__title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.telemost-app--session .telemost-call__remote,
.telemost-app--in-call .telemost-call__remote {
  background: #2b2b2e;
  padding: 0 !important;
}

.telemost-app--session .telemost-participant,
.telemost-app--in-call .telemost-participant {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 0;
}

.telemost-app--session .telemost-participant__avatar,
.telemost-app--in-call .telemost-participant__avatar {
  position: relative;
  width: min(12.5rem, 42vw);
  height: min(12.5rem, 42vw);
}

.telemost-app--session .telemost-participant__photo,
.telemost-app--in-call .telemost-participant__photo {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: none;
}

.telemost-app--session .telemost-participant__initial,
.telemost-app--in-call .telemost-participant__initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #6ee7c5;
  color: #111827;
  font-family: var(--font-body);
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  user-select: none;
}

.telemost-app--session .telemost-participant__photo:not([hidden]) + .telemost-participant__initial,
.telemost-app--in-call .telemost-participant__photo:not([hidden]) + .telemost-participant__initial {
  display: none;
}

.telemost-app--session .telemost-participant-chip,
.telemost-app--in-call .telemost-participant-chip {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 5.75rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: calc(100% - 2rem);
  padding: 0.35rem 0.7rem;
  border-radius: 0.45rem;
  background: #000;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  pointer-events: none;
}

.telemost-app--session .telemost-participant-chip__name,
.telemost-app--in-call .telemost-participant-chip__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telemost-app--session .telemost-participant-chip__mic,
.telemost-app--in-call .telemost-participant-chip__mic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.72);
}

.telemost-app--session .telemost-participant-chip__mic--live,
.telemost-app--in-call .telemost-participant-chip__mic--live {
  color: rgba(255, 255, 255, 0.92);
}

.telemost-app--session .telemost-participant-chip__mic--live .telemost-participant-chip__mic-off,
.telemost-app--in-call .telemost-participant-chip__mic--live .telemost-participant-chip__mic-off,
.telemost-app--session .telemost-participant-chip__mic--muted .telemost-participant-chip__mic-on,
.telemost-app--in-call .telemost-participant-chip__mic--muted .telemost-participant-chip__mic-on {
  display: none;
}

.telemost-app--session .telemost-call__remote.oge-duty-teacher-call__remote--active .telemost-participant,
.telemost-app--in-call .telemost-call__remote.oge-duty-teacher-call__remote--active .telemost-participant {
  display: none;
}

.telemost-app--session .telemost-call__remote-video,
.telemost-app--in-call .telemost-call__remote-video {
  background: #2b2b2e;
}

.telemost-app--session .telemost-call__local,
.telemost-app--in-call .telemost-call__local {
  right: 1rem;
  bottom: 5.5rem;
  width: 7.5rem;
  height: 4.5rem;
  border: none;
  border-radius: 0.65rem;
  background: #3d3d3d;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.telemost-app--session .telemost-call__local-placeholder,
.telemost-app--in-call .telemost-call__local-placeholder {
  background: #3d3d3d;
}

.telemost-app--session .oge-duty-teacher-call__local-video:not([hidden]),
.telemost-app--in-call .oge-duty-teacher-call__local-video:not([hidden]),
.telemost-app--session .telemost-local-vbg-canvas:not([hidden]),
.telemost-app--in-call .telemost-local-vbg-canvas:not([hidden]) {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.telemost-app--session
  .oge-duty-teacher-call__local:has(.oge-duty-teacher-call__local-video:not([hidden]))
  .telemost-call__local-placeholder,
.telemost-app--in-call
  .oge-duty-teacher-call__local:has(.oge-duty-teacher-call__local-video:not([hidden]))
  .telemost-call__local-placeholder,
.telemost-app--session
  .oge-duty-teacher-call__local:has(.telemost-local-vbg-canvas:not([hidden]))
  .telemost-call__local-placeholder,
.telemost-app--in-call
  .oge-duty-teacher-call__local:has(.telemost-local-vbg-canvas:not([hidden]))
  .telemost-call__local-placeholder {
  display: none;
}

.telemost-app--session .telemost-participant__initial--local,
.telemost-app--in-call .telemost-participant__initial--local {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.125rem;
  font-weight: 600;
}

.telemost-app--session .telemost-call__toolbar,
.telemost-app--in-call .telemost-call__toolbar {
  position: absolute;
  z-index: 6;
  left: 50%;
  right: auto;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: 0.625rem 0.75rem;
  border: none;
  border-radius: 1rem;
  background: #3d3d3d;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
  box-sizing: border-box;
}

.telemost-app--session .oge-duty-teacher-call__toolbar.telemost-call__toolbar,
.telemost-app--in-call .oge-duty-teacher-call__toolbar.telemost-call__toolbar {
  margin-top: 0;
  border: none;
  background: #3d3d3d;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.telemost-call__toolbar--dock {
  max-width: none;
}

.telemost-toolbar__group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.telemost-toolbar__group--actions {
  margin-left: 1rem;
}

.telemost-toolbar__group--end {
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.telemost-app:not(.telemost-app--meeting) .telemost-tool-btn--hand,
.telemost-app:not(.telemost-app--meeting) .telemost-tool-btn--participants,
.telemost-app:not(.telemost-app--meeting) .telemost-tool-btn--chat,
.telemost-app:not(.telemost-app--meeting) .telemost-tool-btn--more {
  display: none;
}

/* ——— Окно настроек (premium) ——— */

.telemost-settings {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.telemost-settings[hidden] {
  display: none;
}

.telemost-settings__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 16, 0.72);
  backdrop-filter: blur(10px);
}

.telemost-settings--premium {
  --ts-text: rgba(255, 255, 255, 0.94);
  --ts-text-muted: rgba(255, 255, 255, 0.58);
  --ts-border: rgba(255, 255, 255, 0.1);
  --ts-nav-hover: rgba(255, 255, 255, 0.06);
  --ts-nav-active: rgba(255, 255, 255, 0.11);
  --ts-control-bg: rgba(255, 255, 255, 0.06);
  --ts-control-bg-hover: rgba(255, 255, 255, 0.1);
  --ts-input-bg: rgba(15, 18, 28, 0.72);
  --ts-accent: #6ee7c5;
  --ts-link: #7dd3fc;
  --ts-camera-preview-height: 18.5rem;
  --ts-camera-preview-fit: contain;
}

.telemost-settings__dialog.telemost-settings--premium {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: min(100%, 52rem);
  height: 36rem;
  max-height: calc(100dvh - 2.5rem);
  border-radius: 1.125rem;
  border: 1px solid var(--ts-border);
  background: linear-gradient(
    165deg,
    rgba(26, 31, 46, 0.98) 0%,
    rgba(12, 14, 22, 0.99) 100%
  );
  color: var(--ts-text);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.telemost-settings--premium::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(110, 231, 197, 0.34) 0%,
    rgba(255, 255, 255, 0.08) 42%,
    rgba(125, 211, 252, 0.26) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.telemost-settings__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.35rem;
  border-bottom: 1px solid var(--ts-border);
  flex-shrink: 0;
}

.telemost-settings__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.telemost-settings__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  border: none;
  border-radius: 0.625rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.telemost-settings__close:hover {
  background: var(--ts-nav-hover);
  color: #fff;
}

.telemost-settings__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 13.25rem minmax(0, 1fr);
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.telemost-settings__nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem;
  border-right: 1px solid var(--ts-border);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.telemost-settings__nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: none;
  border-radius: 0.7rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.telemost-settings__nav-item:hover {
  background: var(--ts-nav-hover);
}

.telemost-settings__nav-item.is-active {
  background: var(--ts-nav-active);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.telemost-settings__nav-icon {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.92;
}

.telemost-settings__nav-label {
  line-height: 1.25;
  min-width: 0;
}

.telemost-settings__content {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1.15rem 1.5rem 1.25rem;
  overflow: hidden;
}

.telemost-settings__panel {
  display: none;
  min-height: 0;
}

.telemost-settings__panel[hidden] {
  display: none !important;
}

.telemost-settings__panel.is-active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.telemost-settings__panel-title {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.telemost-settings__account {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.telemost-settings__account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--tm-avatar-bg, linear-gradient(145deg, #6ee7c5 0%, #34d399 100%));
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(52, 211, 153, 0.28);
}

.telemost-settings__account-info {
  flex: 1;
  min-width: 10rem;
}

.telemost-settings__account-name {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  font-weight: 600;
}

.telemost-settings__account-email {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ts-text-muted);
}

.telemost-settings__account-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.65rem;
  background: var(--ts-control-bg);
  border: 1px solid var(--ts-border);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.telemost-settings__account-edit:hover {
  background: var(--ts-control-bg-hover);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.telemost-settings__hint {
  margin: 0;
  max-width: 28rem;
  color: var(--ts-text-muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.telemost-settings__field {
  display: block;
  max-width: 100%;
  flex-shrink: 0;
}

.telemost-settings__field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.telemost-settings__field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ts-text-muted);
}

.telemost-settings__field-hint[hidden] {
  display: none;
}

.telemost-settings__select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.telemost-settings__select-wrap {
  position: relative;
}

.telemost-settings__select {
  width: 100%;
  padding: 0.58rem 2.1rem 0.58rem 0.8rem;
  border: 1px solid var(--ts-border);
  border-radius: 0.65rem;
  background: var(--ts-input-bg);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  appearance: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.telemost-settings__select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.8rem;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid rgba(255, 255, 255, 0.55);
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.telemost-settings__select:focus {
  outline: 2px solid rgba(110, 231, 197, 0.45);
  outline-offset: 1px;
}

.telemost-settings__field--video {
  margin-bottom: 0.65rem;
}

/* ——— Вкладка «Звук» ——— */

.telemost-settings__sound-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.telemost-settings__sound-card {
  padding: 0.7rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--ts-border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.telemost-settings__sound-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.telemost-settings__sound-card-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.telemost-settings__level {
  display: flex;
  align-items: flex-end;
  gap: 0.15rem;
  height: 1rem;
  flex-shrink: 0;
}

.telemost-settings__level-bar {
  display: block;
  width: 0.22rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: height 0.08s ease, background 0.08s ease;
}

.telemost-settings__level-bar.is-active {
  background: var(--ts-accent, #6ee7c5);
}

.telemost-settings__sound-row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
}

.telemost-settings__select-wrap--grow {
  flex: 1;
  min-width: 0;
}

.telemost-settings__test-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-shrink: 0;
  min-width: 6.75rem;
  padding: 0.52rem 0.75rem;
  border: 1px solid var(--ts-border);
  border-radius: 0.65rem;
  background: var(--ts-control-bg);
  color: var(--ts-text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.telemost-settings__test-btn:hover {
  background: var(--ts-control-bg-hover);
  border-color: rgba(255, 255, 255, 0.16);
}

.telemost-settings__test-btn.is-active {
  background: rgba(110, 231, 197, 0.14);
  border-color: rgba(110, 231, 197, 0.35);
  color: #fff;
}

.telemost-settings__toggle-row--inset {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 2rem;
}

[data-telemost-settings-panel="sound"] .telemost-settings__panel-title {
  margin-bottom: 0.65rem;
}

[data-telemost-settings-panel="sound"] .telemost-settings__field-hint {
  margin-top: 0.4rem;
}

.telemost-settings__video-preview {
  position: relative;
  width: 100%;
  height: var(--ts-camera-preview-height, 18.5rem);
  margin-bottom: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.telemost-settings__video-preview-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--ts-camera-preview-fit, contain);
  object-position: center;
}

.telemost-settings__video-preview-media[hidden] {
  display: none;
}

.telemost-settings__video-preview-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  color: var(--ts-text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.telemost-settings__video-preview-empty[hidden] {
  display: none;
}

.telemost-settings__panel.is-active[data-telemost-settings-panel="background"] {
  flex-direction: column;
}

[data-telemost-settings-panel="background"] .telemost-settings__panel-title {
  margin-bottom: 0.65rem;
  flex-shrink: 0;
}

.telemost-settings__bg-preview {
  position: relative;
  width: 100%;
  height: var(--ts-camera-preview-height, 18.5rem);
  margin-bottom: 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.telemost-settings__bg-preview-canvas,
.telemost-settings__bg-preview-source {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--ts-camera-preview-fit, contain);
  object-position: center;
}

.telemost-settings__bg-preview-canvas:not([hidden]) {
  z-index: 2;
}

.telemost-settings__bg-preview-source[hidden],
.telemost-settings__bg-preview-canvas[hidden] {
  display: none;
}

.telemost-settings__bg-preview-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  color: var(--ts-text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.telemost-settings__bg-preview-empty[hidden] {
  display: none;
}

.telemost-settings__bg-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 0.15rem;
  align-content: start;
}

.telemost-settings__bg-option {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.telemost-settings__bg-option:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.telemost-settings__bg-option.is-selected {
  border-color: var(--ts-accent, #5282ff);
  box-shadow: 0 0 0 1px var(--ts-accent, #5282ff);
}

.telemost-settings__bg-option--none,
.telemost-settings__bg-option--upload {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
}

.telemost-settings__bg-option--preset {
  background-size: cover;
  background-position: center;
}

.telemost-settings__toggles {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
  justify-content: center;
}

.telemost-settings__toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 2.35rem;
  padding: 0.15rem 0;
}

.telemost-settings__toggle-row--hint {
  align-items: flex-start;
  padding-top: 0.35rem;
}

.telemost-settings__toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.telemost-settings__toggle-label {
  font-size: 0.875rem;
  line-height: 1.3;
}

.telemost-settings__toggle-hint {
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--ts-text-muted);
}

.telemost-settings__switch {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.telemost-settings__switch-track {
  display: block;
  position: relative;
  width: 2.625rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease;
}

.telemost-settings__switch-thumb {
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

.telemost-settings__switch.is-on .telemost-settings__switch-track {
  background: #34c759;
}

.telemost-settings__switch.is-on .telemost-settings__switch-thumb {
  transform: translateX(1.125rem);
}

.telemost-settings__help-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.telemost-settings__help-list li + li {
  margin-top: 0.55rem;
}

.telemost-settings__help-link {
  color: var(--ts-link);
  font-size: 0.9rem;
  text-decoration: none;
}

.telemost-settings__help-link:hover {
  text-decoration: underline;
}

body.telemost-settings-open {
  overflow: hidden;
}

[data-theme="light"] .telemost-settings--premium {
  --ts-text: #0f172a;
  --ts-text-muted: rgba(15, 23, 42, 0.58);
  --ts-border: rgba(15, 23, 42, 0.1);
  --ts-nav-hover: rgba(15, 23, 42, 0.05);
  --ts-nav-active: rgba(15, 23, 42, 0.08);
  --ts-control-bg: rgba(15, 23, 42, 0.05);
  --ts-control-bg-hover: rgba(15, 23, 42, 0.08);
  --ts-input-bg: rgba(255, 255, 255, 0.92);
  --ts-link: #2563eb;
}

[data-theme="light"] .telemost-settings__dialog.telemost-settings--premium {
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(241, 245, 249, 0.99) 100%
  );
  box-shadow:
    0 28px 72px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .telemost-settings__close {
  color: rgba(15, 23, 42, 0.72);
}

[data-theme="light"] .telemost-settings__close:hover {
  color: #0f172a;
}

[data-theme="light"] .telemost-settings__nav-item {
  color: rgba(15, 23, 42, 0.82);
}

[data-theme="light"] .telemost-settings__account-edit {
  color: #0f172a;
}

[data-theme="light"] .telemost-settings__account-edit:hover {
  color: #0f172a;
}

[data-theme="light"] .telemost-settings__select {
  color: #0f172a;
}

[data-theme="light"] .telemost-settings__switch-track {
  background: rgba(15, 23, 42, 0.16);
}

html[data-palette="pink"] .telemost-settings--premium::after {
  background: linear-gradient(
    160deg,
    rgba(244, 114, 182, 0.38) 0%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(167, 139, 250, 0.28) 100%
  );
}

@media (max-width: 720px) {
  .telemost-settings {
    padding: 0;
    align-items: stretch;
  }

  .telemost-settings__dialog.telemost-settings--premium {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .telemost-settings__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .telemost-settings__nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: none;
    border-bottom: 1px solid var(--ts-border);
    padding: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .telemost-settings__nav::-webkit-scrollbar {
    display: none;
  }

  .telemost-settings__nav-item {
    flex: 0 0 auto;
    min-width: 2.75rem;
    justify-content: center;
    padding: 0.55rem 0.35rem;
  }

  .telemost-settings__nav-label {
    display: none;
  }

  .telemost-settings__content {
    padding: 0.95rem 1rem 1rem;
  }

  .telemost-settings--premium {
    --ts-camera-preview-height: 14rem;
  }

  .telemost-settings__video-preview {
    height: var(--ts-camera-preview-height, 14rem);
  }

  .telemost-settings__bg-preview {
    height: var(--ts-camera-preview-height, 14rem);
  }

  .telemost-settings__bg-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .telemost-settings__sound-card {
    padding: 0.6rem 0.65rem;
  }

  .telemost-settings__test-btn {
    min-width: 0;
    padding: 0.52rem 0.55rem;
  }

  .telemost-settings__test-btn svg {
    display: none;
  }

  .telemost-settings__toggle-row {
    min-height: 2.1rem;
  }
}

.telemost-room--hide-self .telemost-call__local {
  display: none !important;
}

.telemost-room--hide-remote-video .telemost-call__remote-video {
  display: none !important;
}

.telemost-room--hide-remote-video .telemost-call__remote-fallback {
  display: flex !important;
}

.telemost-room--hide-remote-video .telemost-participant-chip,
.telemost-room--hide-remote-video .oge-duty-call-room__remote-bar {
  display: none !important;
}

.telemost-app--meeting .telemost-meeting-share {
  display: none;
}

/* ——— Приглашение на встречу ——— */

.telemost-invite {
  position: fixed;
  inset: 0;
  z-index: 118;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.telemost-invite[hidden] {
  display: none;
}

.telemost-invite__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 16, 0.72);
  backdrop-filter: blur(10px);
}

.telemost-invite__dialog--premium {
  --ti-text: rgba(255, 255, 255, 0.94);
  --ti-text-muted: rgba(255, 255, 255, 0.62);
  --ti-border: rgba(255, 255, 255, 0.12);
  --ti-input-bg: rgba(15, 18, 28, 0.72);
  --ti-accent: #6ee7c5;
  --ti-accent-text: #042f2e;
  --ti-secondary-bg: rgba(255, 255, 255, 0.08);
  --ti-secondary-text: rgba(255, 255, 255, 0.92);
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  border-radius: 1.125rem;
  border: 1px solid var(--ti-border);
  background: linear-gradient(
    165deg,
    rgba(26, 31, 46, 0.98) 0%,
    rgba(12, 14, 22, 0.99) 100%
  );
  color: var(--ti-text);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.telemost-invite__header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--ti-border);
}

.telemost-invite__mark {
  font-size: 1.35rem;
  line-height: 1;
}

.telemost-invite__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display, var(--font-body));
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.telemost-invite__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--ti-secondary-bg);
  color: var(--ti-text);
  cursor: pointer;
  transition: background 0.15s ease;
}

.telemost-invite__close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.telemost-invite__body {
  padding: 1rem 1rem 1.15rem;
}

.telemost-invite__lead {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ti-text-muted);
}

.telemost-invite__code {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--ti-text-muted);
}

.telemost-invite__code-value {
  color: var(--ti-text);
  letter-spacing: 0.08em;
}

.telemost-invite__field {
  display: block;
  margin-bottom: 0.85rem;
}

.telemost-invite__field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ti-text-muted);
}

.telemost-invite__input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--ti-border);
  background: var(--ti-input-bg);
  color: var(--ti-text);
  font-size: 0.75rem;
  line-height: 1.35;
}

.telemost-invite__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.telemost-invite__btn {
  flex: 1 1 auto;
  min-width: 8.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.telemost-invite__btn:active {
  transform: translateY(1px);
}

.telemost-invite__btn--primary {
  background: linear-gradient(180deg, #7ef0d0 0%, var(--ti-accent) 100%);
  color: var(--ti-accent-text);
  box-shadow:
    0 2px 0 rgba(4, 47, 46, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.telemost-invite__btn--secondary {
  background: var(--ti-secondary-bg);
  color: var(--ti-secondary-text);
  border-color: var(--ti-border);
}

.telemost-invite__status {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ti-accent);
}

[data-theme="light"] .telemost-invite__dialog--premium {
  --ti-text: #0f172a;
  --ti-text-muted: #64748b;
  --ti-border: rgba(15, 23, 42, 0.1);
  --ti-input-bg: #f8fafc;
  --ti-secondary-bg: #f1f5f9;
  --ti-secondary-text: #0f172a;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-palette="pink"] .telemost-invite__dialog--premium {
  --ti-accent: #f9a8d4;
  --ti-accent-text: #831843;
}

html[data-palette="pink"][data-theme="light"] .telemost-invite__dialog--premium {
  background: linear-gradient(165deg, #fff1f2 0%, #ffe4e6 100%);
}

.telemost-app--meeting-kids .telemost-invite__dialog--premium {
  border-radius: 1.35rem;
}

.telemost-app--meeting-kids .telemost-invite__title {
  font-family: "Playfair Display", Georgia, serif;
}

/* —— Запись на консультацию (лобби /telemost/) —— */
@keyframes telemost-consultation-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes telemost-consultation-glow-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.telemost-consultation {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.telemost-consultation[hidden] {
  display: none;
}

.telemost-consultation__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(110, 231, 197, 0.14) 0%, transparent 62%),
    rgba(8, 10, 16, 0.8);
  backdrop-filter: blur(14px);
}

.telemost-consultation__dialog--premium {
  --tc-text: rgba(255, 255, 255, 0.96);
  --tc-text-muted: rgba(255, 255, 255, 0.62);
  --tc-border: rgba(255, 255, 255, 0.12);
  --tc-input-bg: rgba(10, 14, 24, 0.78);
  --tc-input-bg-focus: rgba(12, 18, 30, 0.92);
  --tc-placeholder: rgba(255, 255, 255, 0.34);
  --tc-accent: #6ee7c5;
  --tc-accent-soft: rgba(110, 231, 197, 0.18);
  --tc-accent-text: #042f2e;
  --tc-secondary-bg: rgba(255, 255, 255, 0.08);
  --tc-error: #fca5a5;
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(100%, 27.5rem);
  border-radius: 1.35rem;
  border: 1px solid var(--tc-border);
  background: linear-gradient(
    168deg,
    rgba(34, 40, 56, 0.98) 0%,
    rgba(18, 22, 34, 0.99) 52%,
    rgba(10, 12, 20, 1) 100%
  );
  color: var(--tc-text);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 -2px 0 rgba(0, 0, 0, 0.28) inset,
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  animation: telemost-consultation-in 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.telemost-consultation__dialog--premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

.telemost-consultation__dialog--premium::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(110, 231, 197, 0.42) 0%,
    rgba(255, 255, 255, 0.1) 42%,
    rgba(125, 211, 252, 0.32) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.telemost-consultation__glow {
  position: absolute;
  top: -3.5rem;
  left: 50%;
  width: 14rem;
  height: 14rem;
  margin-left: -7rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(110, 231, 197, 0.28) 0%,
    rgba(125, 211, 252, 0.12) 42%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
  animation: telemost-consultation-glow-pulse 4.5s ease-in-out infinite;
}

.telemost-consultation__header {
  position: relative;
  z-index: 3;
  padding: 1.35rem 1.15rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.telemost-consultation__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding-top: 0.15rem;
}

.telemost-consultation__icon-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 1rem;
  border: 1px solid rgba(110, 231, 197, 0.34);
  background: linear-gradient(
    165deg,
    rgba(110, 231, 197, 0.22) 0%,
    rgba(15, 23, 42, 0.72) 100%
  );
  box-shadow:
    0 10px 28px rgba(110, 231, 197, 0.2),
    0 0 0 4px rgba(110, 231, 197, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.telemost-consultation__icon-badge-ring {
  position: absolute;
  inset: -0.35rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(110, 231, 197, 0.22);
  opacity: 0.75;
}

.telemost-consultation__icon-badge-emoji {
  font-size: 1.55rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}

.telemost-consultation__title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0.42rem 0.95rem 0.48rem;
  max-width: 100%;
  font-family: var(--font-display, var(--font-body));
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 197, 0.32);
  background: linear-gradient(
    165deg,
    rgba(22, 28, 38, 0.96) 0%,
    rgba(14, 18, 26, 0.92) 100%
  );
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(110, 231, 197, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.telemost-consultation__title-text {
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(167, 243, 208, 0.96) 48%,
    rgba(186, 230, 253, 0.94) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.telemost-consultation__teacher {
  margin: 0;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--tc-text-muted);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.telemost-consultation__teacher[hidden] {
  display: none;
}

.telemost-consultation__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--tc-text);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.12s ease;
}

.telemost-consultation__close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.telemost-consultation__close:active {
  transform: scale(0.96);
}

.telemost-consultation__body {
  position: relative;
  z-index: 3;
  padding: 1.05rem 1.15rem 1.2rem;
}

.telemost-consultation__lead {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  color: var(--tc-text-muted);
}

.telemost-consultation__field {
  display: block;
  margin-bottom: 0.9rem;
}

.telemost-consultation__field-label {
  display: block;
  margin-bottom: 0.38rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tc-text-muted);
}

.telemost-consultation__input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--tc-border);
  background: var(--tc-input-bg);
  color: var(--tc-text);
  font-size: 0.875rem;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.telemost-consultation__input:focus {
  outline: none;
  border-color: rgba(110, 231, 197, 0.58);
  background: var(--tc-input-bg-focus);
  box-shadow:
    0 0 0 3px rgba(110, 231, 197, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.telemost-consultation__input::placeholder {
  color: var(--tc-placeholder);
  opacity: 1;
}

.telemost-consultation__urgent {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.1rem 0 1rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.telemost-consultation__urgent:has(.telemost-consultation__urgent-input:checked) {
  border-color: rgba(110, 231, 197, 0.34);
  background: var(--tc-accent-soft);
  box-shadow: 0 0 0 1px rgba(110, 231, 197, 0.1);
}

.telemost-consultation__urgent-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.telemost-consultation__urgent-box {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.35rem;
  border: 1px solid var(--tc-border);
  background: var(--tc-input-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.telemost-consultation__urgent-input:checked + .telemost-consultation__urgent-box {
  border-color: rgba(110, 231, 197, 0.7);
  background:
  linear-gradient(180deg, #7ef0d0 0%, var(--tc-accent) 100%);
  box-shadow:
    0 1px 0 rgba(4, 47, 46, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.telemost-consultation__urgent-input:checked + .telemost-consultation__urgent-box::after {
  content: "";
  display: block;
  width: 0.35rem;
  height: 0.6rem;
  margin: 0.12rem auto 0;
  border-right: 2px solid var(--tc-accent-text);
  border-bottom: 2px solid var(--tc-accent-text);
  transform: rotate(45deg);
}

.telemost-consultation__urgent-text {
  font-size: 0.875rem;
  font-weight: 600;
}

.telemost-consultation__error {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tc-error);
}

.telemost-consultation__error[hidden],
.telemost-consultation__status[hidden] {
  display: none;
}

.telemost-consultation__actions {
  display: flex;
}

.telemost-consultation__btn {
  flex: 1 1 auto;
  min-width: 8.5rem;
  padding: 0.7rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    opacity 0.15s ease;
}

.telemost-consultation__btn:active:not(:disabled) {
  transform: translateY(1px);
}

.telemost-consultation__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.telemost-consultation__btn--primary {
  background: linear-gradient(180deg, #7ef0d0 0%, var(--tc-accent) 100%);
  color: var(--tc-accent-text);
  box-shadow:
    0 2px 0 rgba(4, 47, 46, 0.22),
    0 10px 24px rgba(110, 231, 197, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.telemost-consultation__btn--primary:hover:not(:disabled) {
  box-shadow:
    0 2px 0 rgba(4, 47, 46, 0.22),
    0 14px 30px rgba(110, 231, 197, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.telemost-consultation__status {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tc-accent);
  text-align: center;
}

html.telemost-consultation-open {
  overflow: hidden;
}

[data-theme="light"] .telemost-consultation__backdrop {
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(16, 185, 129, 0.1) 0%, transparent 62%),
    rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .telemost-consultation__dialog--premium {
  --tc-text: #0f172a;
  --tc-text-muted: #64748b;
  --tc-border: rgba(15, 23, 42, 0.12);
  --tc-input-bg: #ffffff;
  --tc-input-bg-focus: #f0fdf4;
  --tc-placeholder: #64748b;
  --tc-accent-soft: rgba(5, 150, 105, 0.1);
  --tc-secondary-bg: #f1f5f9;
  --tc-error: #dc2626;
  background: linear-gradient(168deg, #ffffff 0%, #f8fafc 52%, #eef2f7 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 24px 48px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .telemost-consultation__input {
  border-color: rgba(15, 23, 42, 0.14);
  background: var(--tc-input-bg);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .telemost-consultation__input:focus {
  border-color: rgba(5, 150, 105, 0.42);
  background: var(--tc-input-bg-focus);
  box-shadow:
    0 0 0 3px rgba(16, 185, 129, 0.14),
    0 1px 2px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .telemost-consultation__close {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: #334155;
}

[data-theme="light"] .telemost-consultation__close:hover {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.16);
}

[data-theme="light"] .telemost-consultation__dialog--premium::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.95) 50%,
    transparent 100%
  );
}

[data-theme="light"] .telemost-consultation__dialog--premium::after {
  background: linear-gradient(
    160deg,
    rgba(20, 184, 166, 0.34) 0%,
    rgba(255, 255, 255, 0.55) 42%,
    rgba(139, 92, 246, 0.2) 100%
  );
}

[data-theme="light"] .telemost-consultation__header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 100%);
}

[data-theme="light"] .telemost-consultation__icon-badge {
  border-color: rgba(5, 150, 105, 0.28);
  background: linear-gradient(165deg, rgba(209, 250, 229, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  box-shadow:
    0 10px 24px rgba(5, 150, 105, 0.12),
    0 0 0 4px rgba(5, 150, 105, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .telemost-consultation__title {
  border-color: rgba(5, 150, 105, 0.22);
  background: linear-gradient(165deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .telemost-consultation__title-text {
  background: linear-gradient(120deg, #0f172a 0%, #047857 52%, #0369a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .telemost-consultation__teacher {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(241, 245, 249, 0.9);
}

[data-theme="light"] .telemost-consultation__urgent {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.95);
}

html[data-palette="pink"] .telemost-consultation__dialog--premium {
  --tc-accent: #f9a8d4;
  --tc-accent-soft: rgba(249, 168, 212, 0.16);
  --tc-accent-text: #831843;
}

html[data-palette="pink"] .telemost-consultation__dialog--premium::after {
  background: linear-gradient(
    160deg,
    rgba(249, 168, 212, 0.42) 0%,
    rgba(255, 255, 255, 0.1) 42%,
    rgba(251, 113, 133, 0.28) 100%
  );
}

html[data-palette="pink"] .telemost-consultation__icon-badge {
  border-color: rgba(249, 168, 212, 0.42);
  box-shadow:
    0 10px 28px rgba(244, 114, 182, 0.22),
    0 0 0 4px rgba(249, 168, 212, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html[data-palette="pink"] .telemost-consultation__title {
  border-color: rgba(249, 168, 212, 0.34);
}

html[data-palette="pink"][data-theme="light"] .telemost-consultation__dialog--premium {
  background: linear-gradient(168deg, #fff1f2 0%, #ffe4e6 52%, #fce7f3 100%);
}

.telemost-app--session .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn,
.telemost-app--in-call .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  width: auto;
  height: 2.75rem;
  min-height: 2.75rem;
  max-height: 2.75rem;
  padding: 0 0.65rem;
  margin: 0;
  border: none;
  border-radius: 0.75rem;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
}

.telemost-app--session .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn--icon,
.telemost-app--in-call .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn--icon {
  width: 2.75rem;
  min-width: 2.75rem;
  padding: 0;
}

.telemost-app--session .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn--labeled,
.telemost-app--in-call .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn--labeled {
  padding: 0 0.85rem;
}

.telemost-app--session .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn:hover,
.telemost-app--in-call .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.telemost-app--session .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn.is-active,
.telemost-app--in-call .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn.is-active {
  background: rgba(255, 255, 255, 0.16);
  border: none;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.92);
}

.telemost-app--session .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn.is-muted,
.telemost-app--in-call .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn.is-muted {
  border: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
}

.telemost-app--session .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn--hand.is-raised,
.telemost-app--in-call .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn--hand.is-raised {
  background: rgba(255, 255, 255, 0.2);
}

.telemost-app--session .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn--hangup,
.telemost-app--in-call .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn--hangup {
  background: #8b1e1e;
  color: #fff;
}

.telemost-app--session .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn--hangup:hover,
.telemost-app--in-call .telemost-room .oge-duty-teacher-call__tool.telemost-tool-btn--hangup:hover {
  background: #a32222;
}

.telemost-app--session .telemost-tool-btn__label,
.telemost-app--in-call .telemost-tool-btn__label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.telemost-app--session .telemost-tool-btn__badge,
.telemost-app--in-call .telemost-tool-btn__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.telemost-app--session .telemost-tool-icon,
.telemost-app--in-call .telemost-tool-icon {
  display: block;
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
}

.telemost-tool-btn__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  font-size: 1.125rem;
  line-height: 1;
  flex-shrink: 0;
}

.telemost-tool-btn__emoji--dots {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.telemost-app--session .telemost-tool-btn--mic.is-muted .telemost-tool-btn__emoji--mic-on,
.telemost-app--in-call .telemost-tool-btn--mic.is-muted .telemost-tool-btn__emoji--mic-on,
.telemost-app--session .telemost-tool-btn--cam.is-off .telemost-tool-btn__emoji--cam-on,
.telemost-app--in-call .telemost-tool-btn--cam.is-off .telemost-tool-btn__emoji--cam-on {
  display: none;
}

.telemost-app--session .telemost-tool-btn--mic:not(.is-muted) .telemost-tool-btn__emoji--mic-off,
.telemost-app--in-call .telemost-tool-btn--mic:not(.is-muted) .telemost-tool-btn__emoji--mic-off,
.telemost-app--session .telemost-tool-btn--cam:not(.is-off) .telemost-tool-btn__emoji--cam-off,
.telemost-app--in-call .telemost-tool-btn--cam:not(.is-off) .telemost-tool-btn__emoji--cam-off {
  display: none;
}

.telemost-app--session .telemost-tool-btn--mic.is-muted .telemost-tool-btn__emoji--mic-off,
.telemost-app--in-call .telemost-tool-btn--mic.is-muted .telemost-tool-btn__emoji--mic-off,
.telemost-app--session .telemost-tool-btn--cam.is-off .telemost-tool-btn__emoji--cam-off,
.telemost-app--in-call .telemost-tool-btn--cam.is-off .telemost-tool-btn__emoji--cam-off {
  display: inline-flex;
}

.telemost-app--session .telemost-tool-btn--mic,
.telemost-app--in-call .telemost-tool-btn--mic,
.telemost-app--session .telemost-tool-btn--cam,
.telemost-app--in-call .telemost-tool-btn--cam {
  position: static;
}

.telemost-tool-btn__icon-slot {
  position: relative;
  display: block;
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
}

.telemost-tool-btn__icon-slot .telemost-tool-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.telemost-tool-btn--mic .telemost-tool-btn__icon-slot .telemost-tool-icon--mic-on {
  transform: translateY(-1px);
}

.telemost-app--session .telemost-tool-btn--mic .telemost-tool-icon,
.telemost-app--in-call .telemost-tool-btn--mic .telemost-tool-icon,
.telemost-app--session .telemost-tool-btn--cam .telemost-tool-icon,
.telemost-app--in-call .telemost-tool-btn--cam .telemost-tool-icon {
  position: absolute;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  height: 100%;
}

.telemost-app--session .telemost-tool-btn--mic.is-muted .telemost-tool-icon--mic-on,
.telemost-app--in-call .telemost-tool-btn--mic.is-muted .telemost-tool-icon--mic-on,
.telemost-app--session .telemost-tool-btn--cam.is-off .telemost-tool-icon--cam-on,
.telemost-app--in-call .telemost-tool-btn--cam.is-off .telemost-tool-icon--cam-on {
  display: none;
}

.telemost-app--session .telemost-tool-btn--mic:not(.is-muted) .telemost-tool-icon--mic-off,
.telemost-app--in-call .telemost-tool-btn--mic:not(.is-muted) .telemost-tool-icon--mic-off,
.telemost-app--session .telemost-tool-btn--cam:not(.is-off) .telemost-tool-icon--cam-off,
.telemost-app--in-call .telemost-tool-btn--cam:not(.is-off) .telemost-tool-icon--cam-off {
  display: none;
}

.telemost-app--session .telemost-tool-btn--mic.is-muted .telemost-tool-icon--mic-off,
.telemost-app--in-call .telemost-tool-btn--mic.is-muted .telemost-tool-icon--mic-off,
.telemost-app--session .telemost-tool-btn--cam.is-off .telemost-tool-icon--cam-off,
.telemost-app--in-call .telemost-tool-btn--cam.is-off .telemost-tool-icon--cam-off {
  display: block;
}

.telemost-app--session .telemost-tool-btn--link.is-copied,
.telemost-app--in-call .telemost-tool-btn--link.is-copied {
  background: rgba(255, 255, 255, 0.2);
}

.telemost-app--session .oge-duty-teacher-call__remote-name,
.telemost-app--in-call .oge-duty-teacher-call__remote-name,
.telemost-app--session .oge-duty-teacher-call__remote-badge,
.telemost-app--in-call .oge-duty-teacher-call__remote-badge,
.telemost-app--session .oge-duty-teacher-call__local-label,
.telemost-app--in-call .oge-duty-teacher-call__local-label,
.telemost-app--session .oge-duty-call-room__remote-bar,
.telemost-app--in-call .oge-duty-call-room__remote-bar {
  display: none !important;
}

@media (max-width: 720px) {
  .telemost-app--session .telemost-tool-btn__label,
  .telemost-app--in-call .telemost-tool-btn__label {
    display: none;
  }

  .telemost-app--session .telemost-call__toolbar,
  .telemost-app--in-call .telemost-call__toolbar {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 1rem);
    max-width: calc(100% - 1rem);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .telemost-app--session .telemost-participant-chip,
  .telemost-app--in-call .telemost-participant-chip {
    bottom: 5.25rem;
  }

  .telemost-app--session .telemost-call__local,
  .telemost-app--in-call .telemost-call__local {
    width: 6rem;
    height: 3.75rem;
    bottom: 4.85rem;
  }
}

/* ——— Видеовстреча: премиальный экран + темы ——— */

.telemost-tool-btn__hint {
  display: none;
}

.telemost-app--meeting {
  --tm-body-bg: #0c0e14;
  --tm-stage-bg: #151821;
  --tm-stage-glow-a: rgba(56, 189, 248, 0.08);
  --tm-stage-glow-b: rgba(167, 139, 250, 0.1);
  --tm-header-bg: rgba(8, 10, 16, 0.92);
  --tm-header-border: rgba(255, 255, 255, 0.06);
  --tm-header-text: rgba(255, 255, 255, 0.92);
  --tm-dock-bg: rgba(22, 26, 36, 0.88);
  --tm-dock-border: rgba(255, 255, 255, 0.1);
  --tm-dock-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --tm-hint-color: rgba(255, 255, 255, 0.62);
  --tm-label-color: rgba(255, 255, 255, 0.9);
  --tm-pill-bg: rgba(255, 255, 255, 0.05);
  --tm-pill-border: rgba(255, 255, 255, 0.1);
  --tm-btn-bg: rgba(255, 255, 255, 0.06);
  --tm-btn-bg-hover: rgba(255, 255, 255, 0.12);
  --tm-btn-bg-active: rgba(255, 255, 255, 0.16);
  --tm-btn-text: rgba(255, 255, 255, 0.92);
  --tm-btn-hangup: #8b1e1e;
  --tm-btn-hangup-hover: #a32222;
  --tm-avatar-bg: linear-gradient(145deg, #6ee7c5 0%, #34d399 100%);
  --tm-chip-bg: rgba(0, 0, 0, 0.72);
}

[data-theme="light"] .telemost-app--meeting {
  --tm-body-bg: #eef2f8;
  --tm-stage-bg: #e2e8f0;
  --tm-stage-glow-a: rgba(59, 130, 246, 0.12);
  --tm-stage-glow-b: rgba(244, 114, 182, 0.1);
  --tm-header-bg: rgba(255, 255, 255, 0.94);
  --tm-header-border: rgba(15, 23, 42, 0.08);
  --tm-header-text: #0f172a;
  --tm-dock-bg: rgba(255, 255, 255, 0.92);
  --tm-dock-border: rgba(15, 23, 42, 0.1);
  --tm-dock-shadow: 0 16px 40px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --tm-hint-color: #64748b;
  --tm-label-color: #0f172a;
  --tm-pill-bg: rgba(255, 255, 255, 0.85);
  --tm-pill-border: rgba(15, 23, 42, 0.1);
  --tm-btn-bg: rgba(15, 23, 42, 0.06);
  --tm-btn-bg-hover: rgba(15, 23, 42, 0.1);
  --tm-btn-bg-active: rgba(15, 23, 42, 0.14);
  --tm-btn-text: #0f172a;
  --tm-btn-hangup: #dc2626;
  --tm-btn-hangup-hover: #ef4444;
  --tm-chip-bg: rgba(15, 23, 42, 0.82);
}

html[data-palette="pink"] .telemost-app--meeting {
  --tm-stage-glow-a: rgba(244, 114, 182, 0.14);
  --tm-stage-glow-b: rgba(167, 139, 250, 0.16);
  --tm-avatar-bg: linear-gradient(145deg, #fbcfe8 0%, #f472b6 100%);
}

.telemost-body:has(.telemost-app--meeting) {
  background: var(--tm-body-bg);
}

/* ——— Видеовстреча: блокирующая модалка ——— */

html.telemost-meeting-modal-open,
html.telemost-meeting-modal-open body,
.telemost-body--meeting-modal {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.telemost-body--meeting-modal {
  background:
    radial-gradient(ellipse 80% 55% at 50% -8%, rgba(56, 189, 248, 0.1), transparent 58%),
    radial-gradient(ellipse 60% 45% at 92% 18%, rgba(167, 139, 250, 0.1), transparent 52%),
    linear-gradient(180deg, #0c0e14 0%, #06080f 100%);
}

.telemost-body--meeting-modal > .footer {
  display: none !important;
}

.telemost-meeting-modal__backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  cursor: default;
}

.telemost-app--meeting-modal {
  position: fixed;
  z-index: 9991;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1280px, calc(100vw - 2.5rem));
  height: min(800px, calc(100dvh - 2.5rem));
  max-height: calc(100dvh - 2.5rem);
  flex: none;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 24px 64px rgba(0, 0, 0, 0.58),
    0 8px 24px rgba(0, 0, 0, 0.38);
  outline: none;
}

.telemost-body--meeting-modal.telemost-body:has(.telemost-app--session),
html.telemost-meeting-modal-open.telemost-page body.telemost-body--meeting-modal {
  background:
    radial-gradient(ellipse 80% 55% at 50% -8%, rgba(56, 189, 248, 0.1), transparent 58%),
    radial-gradient(ellipse 60% 45% at 92% 18%, rgba(167, 139, 250, 0.1), transparent 52%),
    linear-gradient(180deg, #0c0e14 0%, #06080f 100%);
}

.telemost-app--meeting-modal .telemost-header {
  flex-shrink: 0;
  border-radius: 20px 20px 0 0;
}

.telemost-app--meeting-modal [data-duty-session-window-controls] {
  display: none !important;
}

.telemost-app--meeting-modal .telemost-room.oge-duty-teacher-modal {
  position: relative;
  inset: auto;
  z-index: auto;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  opacity: 1;
  pointer-events: auto;
  overflow: hidden;
  isolation: auto;
}

.telemost-app--meeting-modal .telemost-room .oge-duty-teacher-modal__panel {
  border-radius: 0;
}

.telemost-app--meeting-modal .telemost-settings {
  position: absolute;
  inset: 0;
  z-index: 200;
  padding: 0.85rem;
}

@media (max-width: 720px) {
  .telemost-app--meeting-modal {
    top: 0;
    left: 0;
    transform: none;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }

  .telemost-app--meeting-modal .telemost-header {
    border-radius: 0;
  }

  .telemost-meeting-modal__backdrop {
    background: rgba(2, 6, 23, 0.92);
  }
}

.telemost-app--meeting .telemost-header {
  background: var(--tm-header-bg);
  border-bottom: 1px solid var(--tm-header-border);
  backdrop-filter: blur(14px);
}

.telemost-app--meeting .telemost-header__session-title,
.telemost-app--meeting .telemost-header__session-mark {
  color: var(--tm-header-text);
}

.telemost-app--meeting .telemost-header__back {
  color: var(--tm-header-text);
}

.telemost-app--meeting .telemost-room .oge-duty-teacher-modal__panel {
  background: var(--tm-stage-bg);
}

.telemost-app--meeting .telemost-call__stage--premium {
  background:
    radial-gradient(ellipse 55% 45% at 18% 22%, var(--tm-stage-glow-a), transparent 70%),
    radial-gradient(ellipse 50% 40% at 82% 78%, var(--tm-stage-glow-b), transparent 72%),
    var(--tm-stage-bg);
}

.telemost-app--meeting .telemost-participant__initial {
  background: var(--tm-avatar-bg);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.28);
}

.telemost-app--meeting .telemost-participant-chip {
  background: var(--tm-chip-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.telemost-app--meeting .telemost-call__local {
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

/* Один на встрече: своё видео на всю сцену */
.telemost-app--meeting .telemost-call__stage--solo .telemost-call__remote {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent;
  pointer-events: none;
}

.telemost-app--meeting .telemost-call__stage--solo [data-telemost-remote-fallback],
.telemost-app--meeting .telemost-call__stage--solo [data-telemost-participant-chip],
.telemost-app--meeting .telemost-call__stage--solo [data-telemost-remote-bar] {
  display: none !important;
}

.telemost-app--meeting .telemost-call__stage--solo .telemost-call__local {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: var(--tm-stage-bg, #2b2b2e);
}

.telemost-app--meeting .telemost-call__stage--solo .oge-duty-teacher-call__local-video:not([hidden]),
.telemost-app--meeting .telemost-call__stage--solo .telemost-local-vbg-canvas:not([hidden]) {
  object-fit: contain;
}

.telemost-app--meeting .telemost-call__stage--solo .telemost-call__local-placeholder {
  background: var(--tm-stage-bg, #2b2b2e);
}

.telemost-app--meeting .telemost-call__stage--solo .telemost-participant__initial--local {
  font-size: clamp(2rem, 8vw, 4rem);
}

.telemost-call__remote--peer-media-off .telemost-call__remote-video,
.telemost-call__remote--host-media-off .telemost-call__remote-video {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.telemost-call__remote--peer-media-off .telemost-call__remote-fallback,
.telemost-call__remote--host-media-off .telemost-call__remote-fallback {
  display: flex !important;
}

.telemost-app--meeting .telemost-call__remote--peer-media-off.oge-duty-teacher-call__remote--active .telemost-participant,
.telemost-app--session .telemost-call__remote--peer-media-off.oge-duty-teacher-call__remote--active .telemost-participant,
.telemost-app--in-call .telemost-call__remote--peer-media-off.oge-duty-teacher-call__remote--active .telemost-participant,
.telemost-app--meeting .telemost-call__remote--host-media-off.oge-duty-teacher-call__remote--active .telemost-participant,
.telemost-app--session .telemost-call__remote--host-media-off.oge-duty-teacher-call__remote--active .telemost-participant,
.telemost-app--in-call .telemost-call__remote--host-media-off.oge-duty-teacher-call__remote--active .telemost-participant {
  display: flex !important;
}

.telemost-app--meeting .telemost-call__stage--solo .telemost-call__remote--peer-media-off [data-telemost-remote-fallback],
.telemost-app--meeting .telemost-call__stage--solo .telemost-call__remote--host-media-off [data-telemost-remote-fallback] {
  display: flex !important;
}

.telemost-app--meeting .telemost-call__toolbar--premium {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--tm-dock-border);
  border-radius: 1.25rem;
  background: var(--tm-dock-bg);
  box-shadow: var(--tm-dock-shadow);
  backdrop-filter: blur(18px);
  gap: 0.15rem;
}

.telemost-app--meeting .telemost-call__toolbar--premium .telemost-toolbar__group {
  gap: 0.45rem;
}

.telemost-app--meeting .telemost-call__toolbar--premium .telemost-toolbar__group--actions {
  margin-left: 0.85rem;
}

.telemost-app--meeting .telemost-call__toolbar--premium .telemost-toolbar__group--end {
  margin-left: 0.85rem;
  padding-left: 0.85rem;
  border-left-color: var(--tm-dock-border);
}

.telemost-app--meeting .telemost-call__toolbar--premium .oge-duty-teacher-call__tool.telemost-tool-btn--plain {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 2.75rem;
  min-height: 2.75rem;
  max-height: 2.75rem;
  padding: 0 0.65rem;
  border: none;
  border-radius: 0.75rem;
  background: var(--tm-btn-bg);
  color: var(--tm-btn-text);
  box-shadow: none;
  transition: background 0.15s ease;
}

.telemost-app--meeting .telemost-call__toolbar--premium .telemost-tool-btn--plain.telemost-tool-btn--icon {
  width: 2.75rem;
  min-width: 2.75rem;
  padding: 0;
}

.telemost-app--meeting .telemost-call__toolbar--premium .telemost-tool-btn--plain.telemost-tool-btn--labeled {
  padding: 0 0.85rem;
}

.telemost-app--meeting .telemost-call__toolbar--premium .telemost-tool-btn--plain:hover {
  background: var(--tm-btn-bg-hover);
  transform: none;
}

.telemost-app--meeting .telemost-call__toolbar--premium .telemost-tool-btn--plain.is-active {
  background: var(--tm-btn-bg-active);
}

.telemost-app--meeting .telemost-call__toolbar--premium .telemost-tool-btn--plain.is-muted,
.telemost-app--meeting .telemost-call__toolbar--premium .telemost-tool-btn--plain.is-off {
  background: var(--tm-btn-bg);
  opacity: 0.85;
}

.telemost-app--meeting .telemost-call__toolbar--premium .telemost-tool-btn--plain.telemost-tool-btn--hand.is-raised {
  background: var(--tm-btn-bg-active);
}

.telemost-app--meeting .telemost-call__toolbar--premium .telemost-tool-btn--plain.telemost-tool-btn--hangup {
  background: var(--tm-btn-hangup);
  color: #fff;
}

.telemost-app--meeting .telemost-call__toolbar--premium .telemost-tool-btn--plain.telemost-tool-btn--hangup:hover {
  background: var(--tm-btn-hangup-hover);
}

.telemost-app--meeting .telemost-call__toolbar--premium .telemost-tool-btn--plain.telemost-tool-btn--link.is-copied {
  background: var(--tm-btn-bg-active);
}

.telemost-app--meeting .telemost-call__toolbar--premium .telemost-tool-btn--plain .telemost-tool-icon {
  width: 1.375rem;
  height: 1.375rem;
}

.telemost-app--meeting .telemost-call__toolbar--premium .telemost-tool-btn--plain .telemost-tool-btn__icon-slot .telemost-tool-icon {
  width: 100%;
  height: 100%;
}

.telemost-app--meeting .telemost-call__toolbar--premium .telemost-tool-btn__label {
  color: var(--tm-label-color);
  font-weight: 500;
}

.telemost-app--meeting .telemost-call__toolbar--premium .telemost-tool-btn__badge {
  background: rgba(255, 255, 255, 0.14);
  color: var(--tm-btn-text);
  font-weight: 600;
}

[data-theme="light"] .telemost-app--meeting .telemost-call__toolbar--premium .telemost-tool-btn__badge {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

@media (max-width: 720px) {
  .telemost-app--meeting .telemost-call__toolbar--premium .telemost-tool-btn--plain.telemost-tool-btn--icon {
    width: 2.75rem;
    min-width: 2.75rem;
  }
}

/* ——— Блокировка лобби при активной встрече ——— */

html.telemost-meeting-blocker-open,
html.telemost-meeting-blocker-open body {
  overflow: hidden !important;
}

.telemost-meeting-blocker {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.telemost-meeting-blocker__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(10px);
}

.telemost-meeting-blocker__panel {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  padding: 1.75rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(168deg, rgba(42, 50, 64, 0.99) 0%, rgba(16, 20, 30, 0.99) 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.telemost-meeting-blocker__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
}

.telemost-meeting-blocker__text {
  margin: 0 0 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.88);
}

.telemost-meeting-blocker__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.telemost-meeting-blocker__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.telemost-meeting-blocker__btn--primary {
  background: #6ee7c5;
  color: #0f172a;
}

.telemost-meeting-blocker__btn--primary:hover {
  background: #5dd9b8;
}

.telemost-meeting-blocker__btn--danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.telemost-meeting-blocker__btn--danger:hover {
  background: rgba(239, 68, 68, 0.24);
}

.telemost-meeting-blocker__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ——— Видеовстреча: детский планшет (premium + themes) ——— */

.telemost-app--meeting-kids {
  /* тёмная тема по умолчанию */
  --kids-bezel: linear-gradient(148deg, #4338ca 0%, #7c3aed 28%, #db2777 58%, #0891b2 100%);
  --kids-bezel-ring: rgba(255, 255, 255, 0.14);
  --kids-bezel-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 7px rgba(255, 255, 255, 0.06),
    0 32px 80px rgba(0, 0, 0, 0.55),
    inset 0 2px 0 rgba(255, 255, 255, 0.28);
  --kids-camera-ring: rgba(255, 255, 255, 0.35);
  --kids-home-bar: rgba(255, 255, 255, 0.42);
  --kids-screen-bg: #14101f;
  --kids-screen-border: rgba(255, 255, 255, 0.14);
  --kids-stage-bg: #1a1628;
  --kids-stage-top: #221c34;
  --kids-stage-glow-a: rgba(129, 140, 248, 0.28);
  --kids-stage-glow-b: rgba(244, 114, 182, 0.22);
  --kids-stage-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.32);
  --kids-header-bg: linear-gradient(180deg, rgba(36, 30, 56, 0.98) 0%, rgba(26, 22, 40, 0.98) 100%);
  --kids-header-line: rgba(167, 139, 250, 0.22);
  --kids-header-text: #f5f3ff;
  --kids-header-text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  --kids-mark-bg: linear-gradient(145deg, #fde68a 0%, #f472b6 100%);
  --kids-mark-shadow: 0 4px 0 rgba(190, 24, 93, 0.35);
  --kids-back-btn-bg: rgba(255, 255, 255, 0.08);
  --kids-back-btn-border: rgba(196, 181, 253, 0.45);
  --kids-back-btn-text: #e9d5ff;
  --kids-back-btn-shadow: 0 3px 0 rgba(76, 29, 149, 0.45);
  --kids-dock-bg: rgba(24, 20, 36, 0.88);
  --kids-dock-border: rgba(255, 255, 255, 0.16);
  --kids-dock-shadow: 0 12px 0 rgba(49, 46, 129, 0.35),
    0 22px 44px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --kids-label: #ddd6fe;
  --kids-btn-border: rgba(255, 255, 255, 0.72);
  --kids-btn-inset: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  --kids-btn-shadow: 0 5px 0 rgba(15, 23, 42, 0.28);
  --kids-btn-link: linear-gradient(180deg, #6ee7b7 0%, #34d399 100%);
  --kids-btn-mic: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%);
  --kids-btn-cam: linear-gradient(180deg, #93c5fd 0%, #60a5fa 100%);
  --kids-btn-hand: linear-gradient(180deg, #fdba74 0%, #fb923c 100%);
  --kids-btn-screen: linear-gradient(180deg, #d8b4fe 0%, #c084fc 100%);
  --kids-btn-people: linear-gradient(180deg, #f9a8d4 0%, #f472b6 100%);
  --kids-btn-chat: linear-gradient(180deg, #67e8f9 0%, #22d3ee 100%);
  --kids-btn-settings: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
  --kids-btn-more: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
  --kids-btn-hangup: linear-gradient(180deg, #fca5a5 0%, #f87171 100%);
  --kids-btn-hangup-shadow: 0 5px 0 rgba(185, 28, 28, 0.42);
  --kids-avatar-bg: linear-gradient(145deg, #fde68a 0%, #f472b6 52%, #60a5fa 100%);
  --kids-avatar-text: #312e81;
  --kids-chip-bg: rgba(76, 29, 149, 0.82);
  --kids-chip-border: rgba(255, 255, 255, 0.28);
  --kids-badge-bg: #8b5cf6;
  --kids-focus-ring: rgba(167, 139, 250, 0.55);
  --kids-local-border: rgba(255, 255, 255, 0.88);
  --kids-local-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

html[data-theme="light"] .telemost-app--meeting-kids {
  --kids-bezel: linear-gradient(148deg, #fb7185 0%, #c084fc 32%, #60a5fa 66%, #4ade80 100%);
  --kids-bezel-ring: rgba(255, 255, 255, 0.92);
  --kids-bezel-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65),
    0 0 0 8px rgba(255, 255, 255, 0.38),
    0 28px 70px rgba(91, 33, 182, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.72);
  --kids-camera-ring: rgba(255, 255, 255, 0.85);
  --kids-home-bar: rgba(255, 255, 255, 0.82);
  --kids-screen-bg: #fff9fc;
  --kids-screen-border: rgba(255, 255, 255, 0.95);
  --kids-stage-bg: #eef2ff;
  --kids-stage-top: #faf5ff;
  --kids-stage-glow-a: rgba(251, 113, 133, 0.2);
  --kids-stage-glow-b: rgba(96, 165, 250, 0.18);
  --kids-stage-shadow: inset 0 2px 10px rgba(91, 33, 182, 0.06),
    0 8px 22px rgba(124, 58, 237, 0.14);
  --kids-header-bg: linear-gradient(180deg, #fff 0%, #fff5fa 100%);
  --kids-header-line: rgba(244, 114, 182, 0.18);
  --kids-header-text: #5b21b6;
  --kids-header-text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  --kids-mark-bg: linear-gradient(145deg, #fef08a 0%, #fda4af 100%);
  --kids-mark-shadow: 0 3px 0 rgba(190, 24, 93, 0.18);
  --kids-back-btn-bg: rgba(255, 255, 255, 0.92);
  --kids-back-btn-border: rgba(167, 139, 250, 0.45);
  --kids-back-btn-text: #7c3aed;
  --kids-back-btn-shadow: 0 3px 0 rgba(124, 58, 237, 0.18);
  --kids-dock-bg: rgba(255, 255, 255, 0.94);
  --kids-dock-border: rgba(255, 255, 255, 0.98);
  --kids-dock-shadow: 0 10px 0 rgba(167, 139, 250, 0.2),
    0 18px 36px rgba(91, 33, 182, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --kids-label: #4338ca;
  --kids-btn-border: rgba(255, 255, 255, 0.98);
  --kids-btn-inset: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --kids-btn-shadow: 0 4px 0 rgba(15, 23, 42, 0.12);
  --kids-btn-hangup-shadow: 0 4px 0 rgba(185, 28, 28, 0.28);
  --kids-avatar-text: #5b21b6;
  --kids-chip-bg: rgba(91, 33, 182, 0.82);
  --kids-chip-border: rgba(255, 255, 255, 0.92);
  --kids-badge-bg: #8b5cf6;
  --kids-focus-ring: rgba(124, 58, 237, 0.45);
  --kids-local-border: #fff;
  --kids-local-shadow: 0 8px 20px rgba(124, 58, 237, 0.22);
}

html[data-palette="pink"] .telemost-app--meeting-kids {
  --kids-bezel: linear-gradient(148deg, #f472b6 0%, #e879f9 34%, #c084fc 68%, #fb7185 100%);
  --kids-stage-glow-a: rgba(244, 114, 182, 0.32);
  --kids-stage-glow-b: rgba(192, 132, 252, 0.28);
  --kids-mark-bg: linear-gradient(145deg, #fbcfe8 0%, #f472b6 100%);
  --kids-btn-people: linear-gradient(180deg, #fbcfe8 0%, #f472b6 100%);
  --kids-btn-screen: linear-gradient(180deg, #e9d5ff 0%, #d946ef 100%);
  --kids-badge-bg: #ec4899;
  --kids-focus-ring: rgba(244, 114, 182, 0.55);
}

html[data-palette="pink"][data-theme="dark"] .telemost-app--meeting-kids {
  --kids-screen-bg: #22161d;
  --kids-stage-bg: #2a1822;
  --kids-stage-top: #321c28;
  --kids-header-bg: linear-gradient(180deg, rgba(50, 32, 40, 0.98) 0%, rgba(38, 24, 32, 0.98) 100%);
  --kids-header-line: rgba(244, 114, 182, 0.24);
  --kids-header-text: #fff5f9;
  --kids-back-btn-text: #fbcfe8;
  --kids-back-btn-border: rgba(244, 114, 182, 0.42);
  --kids-dock-bg: rgba(38, 24, 32, 0.9);
  --kids-dock-shadow: 0 12px 0 rgba(157, 23, 77, 0.32),
    0 22px 44px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --kids-label: #fbcfe8;
  --kids-chip-bg: rgba(157, 23, 77, 0.85);
  --kids-avatar-text: #831843;
}

html[data-palette="pink"][data-theme="light"] .telemost-app--meeting-kids {
  --kids-screen-bg: #fff5f9;
  --kids-stage-bg: #fce7f3;
  --kids-stage-top: #fdf2f8;
  --kids-header-bg: linear-gradient(180deg, #fff 0%, #fdf2f8 100%);
  --kids-header-line: rgba(244, 114, 182, 0.22);
  --kids-header-text: #9d174d;
  --kids-back-btn-text: #db2777;
  --kids-back-btn-border: rgba(244, 114, 182, 0.45);
  --kids-label: #9d174d;
  --kids-chip-bg: rgba(190, 24, 93, 0.82);
  --kids-avatar-text: #831843;
  --kids-dock-shadow: 0 10px 0 rgba(244, 114, 182, 0.22),
    0 18px 36px rgba(157, 23, 77, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.telemost-body--meeting-modal:has(.telemost-app--meeting-kids) {
  background: radial-gradient(circle at 14% 16%, rgba(99, 102, 241, 0.28), transparent 32%),
    radial-gradient(circle at 86% 14%, rgba(236, 72, 153, 0.22), transparent 30%),
    radial-gradient(circle at 72% 84%, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(165deg, #0f1220 0%, #17132a 42%, #101828 100%);
}

html[data-theme="light"] .telemost-body--meeting-modal:has(.telemost-app--meeting-kids) {
  background: radial-gradient(circle at 12% 18%, rgba(251, 191, 36, 0.32), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(244, 114, 182, 0.28), transparent 30%),
    radial-gradient(circle at 72% 82%, rgba(96, 165, 250, 0.26), transparent 32%),
    radial-gradient(circle at 20% 78%, rgba(74, 222, 128, 0.22), transparent 28%),
    linear-gradient(165deg, #fffbeb 0%, #fdf2f8 38%, #eff6ff 100%);
}

html[data-palette="pink"][data-theme="dark"] .telemost-body--meeting-modal:has(.telemost-app--meeting-kids) {
  background: radial-gradient(circle at 14% 16%, rgba(236, 72, 153, 0.32), transparent 32%),
    radial-gradient(circle at 86% 14%, rgba(192, 132, 252, 0.26), transparent 30%),
    radial-gradient(circle at 72% 84%, rgba(244, 114, 182, 0.18), transparent 34%),
    linear-gradient(165deg, #261820 0%, #1a1018 42%, #120c12 100%);
}

html[data-palette="pink"][data-theme="light"] .telemost-body--meeting-modal:has(.telemost-app--meeting-kids) {
  background: radial-gradient(circle at 12% 18%, rgba(251, 207, 232, 0.55), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(244, 114, 182, 0.35), transparent 30%),
    radial-gradient(circle at 72% 82%, rgba(232, 121, 249, 0.28), transparent 32%),
    linear-gradient(165deg, #fdf2f8 0%, #fce7f3 38%, #faf5ff 100%);
}

.telemost-app--meeting-kids.telemost-app--meeting-modal {
  padding: 0 1.15rem 2.35rem;
  border: 5px solid var(--kids-bezel-ring);
  border-radius: 2.75rem;
  background: var(--kids-bezel);
  box-shadow: var(--kids-bezel-shadow);
  isolation: isolate;
  gap: 0;
}

.telemost-app--meeting-kids.telemost-app--meeting-modal::before {
  content: "";
  position: absolute;
  top: 0.38rem;
  left: 50%;
  z-index: 25;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--kids-camera-ring);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #64748b, #0f172a);
  transform: translateX(-50%);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.15);
  pointer-events: none;
}

.telemost-app--meeting-kids.telemost-app--meeting-modal::after {
  content: "";
  position: absolute;
  bottom: 0.72rem;
  left: 50%;
  z-index: 20;
  width: 3.25rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--kids-home-bar);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
  transform: translateX(-50%);
  pointer-events: none;
}

.telemost-app--meeting-kids .telemost-header {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  min-height: 2.65rem;
  margin: 0;
  padding: 0.4rem 1rem 0.35rem;
  border: none;
  border-radius: calc(2.75rem - 5px) calc(2.75rem - 5px) 0 0;
  background: var(--kids-header-bg);
  box-shadow: inset 0 -2px 0 var(--kids-header-line);
  backdrop-filter: blur(12px);
}

.telemost-app--meeting-kids.telemost-app--meeting-modal > .telemost-header {
  border-radius: calc(2.75rem - 5px) calc(2.75rem - 5px) 0 0;
}

.telemost-app--meeting-kids .telemost-header__session-bar--kids {
  gap: 0.55rem;
}

.telemost-app--meeting-kids .telemost-header__session-mark--kids {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.85rem;
  background: var(--kids-mark-bg);
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: var(--kids-mark-shadow);
}

.telemost-app--meeting-kids .telemost-header__session-title--kids {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--kids-header-text);
  text-shadow: var(--kids-header-text-shadow);
}

.telemost-app--meeting-kids .telemost-header__back {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--kids-back-btn-text);
  background: var(--kids-back-btn-bg);
  border: 2px solid var(--kids-back-btn-border);
  box-shadow: var(--kids-back-btn-shadow);
  backdrop-filter: blur(8px);
}

.telemost-app--meeting-kids .telemost-header__back:hover {
  filter: brightness(1.06);
  color: var(--kids-back-btn-text);
  background: var(--kids-back-btn-bg);
}

.telemost-app--meeting-kids .telemost-room.oge-duty-teacher-modal {
  z-index: 1;
  border-radius: 0 0 calc(2.75rem - 5px) calc(2.75rem - 5px);
  background: var(--kids-screen-bg);
}

.telemost-app--meeting-kids .telemost-room .oge-duty-teacher-modal__panel {
  background: var(--kids-screen-bg);
}

.telemost-app--meeting-kids .telemost-call__stage--premium {
  margin: 0.45rem 0.45rem 0;
  border: 4px solid var(--kids-screen-border);
  border-radius: 1.35rem;
  background:
    radial-gradient(ellipse 60% 50% at 20% 18%, var(--kids-stage-glow-a), transparent 72%),
    radial-gradient(ellipse 55% 45% at 82% 78%, var(--kids-stage-glow-b), transparent 72%),
    linear-gradient(180deg, var(--kids-stage-top) 0%, var(--kids-stage-bg) 100%);
  box-shadow: var(--kids-stage-shadow);
}

.telemost-app--meeting-kids .telemost-participant__initial {
  background: var(--kids-avatar-bg);
  color: var(--kids-avatar-text);
  font-weight: 800;
  box-shadow:
    0 0 0 5px var(--kids-screen-border),
    0 14px 30px rgba(0, 0, 0, 0.22);
}

.telemost-app--meeting-kids .telemost-participant-chip {
  border: 2px solid var(--kids-chip-border);
  border-radius: 999px;
  background: var(--kids-chip-bg);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.telemost-app--meeting-kids .telemost-call__local {
  border: 3px solid var(--kids-local-border);
  border-radius: 1rem;
  box-shadow: var(--kids-local-shadow);
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids {
  left: 50%;
  right: auto;
  bottom: 1.15rem;
  transform: translateX(-50%);
  flex-wrap: wrap;
  justify-content: center;
  max-width: calc(100% - 1.5rem);
  padding: 0.65rem 0.75rem;
  border: 3px solid var(--kids-dock-border);
  border-radius: 1.75rem;
  background: var(--kids-dock-bg);
  box-shadow: var(--kids-dock-shadow);
  backdrop-filter: blur(16px) saturate(1.15);
  gap: 0.35rem;
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-toolbar__group {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-toolbar__group--actions,
.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-toolbar__group--end {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}

.telemost-app--meeting-kids .telemost-tool-btn__label--kids-only {
  display: none;
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids {
  flex-direction: column;
  gap: 0.1rem;
  min-width: 3.35rem;
  height: auto;
  min-height: 3.35rem;
  max-height: none;
  padding: 0.35rem 0.45rem;
  border: 3px solid var(--kids-btn-border);
  border-radius: 1.1rem;
  font-weight: 800;
  box-shadow: var(--kids-btn-inset), var(--kids-btn-shadow);
  transition:
    transform 0.14s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.14s ease,
    filter 0.14s ease;
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids.telemost-tool-btn--icon,
.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids.telemost-tool-btn--labeled {
  width: auto;
  min-width: 3.35rem;
  padding: 0.35rem 0.55rem;
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids .telemost-tool-btn__emoji {
  font-size: 1.45rem;
  line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.65));
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids .telemost-tool-btn__label {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--kids-label);
  line-height: 1.1;
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids:active {
  transform: translateY(2px);
  box-shadow: var(--kids-btn-inset), 0 1px 0 rgba(15, 23, 42, 0.18);
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids-link {
  background: var(--kids-btn-link);
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids-mic {
  background: var(--kids-btn-mic);
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids-cam {
  background: var(--kids-btn-cam);
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids-hand {
  background: var(--kids-btn-hand);
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids-screen {
  background: var(--kids-btn-screen);
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids-people {
  background: var(--kids-btn-people);
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids-chat {
  background: var(--kids-btn-chat);
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids-settings {
  background: var(--kids-btn-settings);
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids-more {
  background: var(--kids-btn-more);
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids-hangup {
  min-width: 3.75rem;
  background: var(--kids-btn-hangup);
  box-shadow: var(--kids-btn-inset), var(--kids-btn-hangup-shadow);
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids.is-active,
.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids.is-raised {
  outline: 3px solid var(--kids-focus-ring);
  outline-offset: 1px;
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids.is-muted,
.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids.is-off {
  opacity: 0.72;
  filter: grayscale(0.25);
}

.telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn__badge {
  top: -0.2rem;
  right: -0.15rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border: 2px solid var(--kids-btn-border);
  border-radius: 999px;
  background: var(--kids-badge-bg);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.telemost-app--meeting-kids .telemost-call__stage--solo .telemost-call__local,
.telemost-app--meeting-kids .telemost-call__stage--solo .telemost-call__local-placeholder {
  background: var(--kids-stage-bg);
}

.telemost-app--meeting-kids .telemost-header .oge-duty-teacher-modal__theme-toggle {
  padding: 0.2rem 0.35rem;
  border-radius: 999px;
  background: var(--kids-back-btn-bg);
  border: 1px solid var(--kids-back-btn-border);
  box-shadow: var(--kids-btn-inset);
}

@media (min-width: 900px) {
  .telemost-app--meeting-kids .telemost-tool-btn__label--kids-only {
    display: inline;
  }

  .telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids {
    flex-direction: row;
    min-width: auto;
    min-height: 3rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
  }

  .telemost-app--meeting-kids .telemost-call__toolbar--kids .telemost-tool-btn--kids .telemost-tool-btn__label {
    font-size: 0.75rem;
  }
}

@media (max-width: 720px) {
  .telemost-app--meeting-kids.telemost-app--meeting-modal {
    padding: 0 0 2rem;
    border-radius: 0;
    border-width: 0;
  }

  .telemost-app--meeting-kids .telemost-header,
  .telemost-app--meeting-kids.telemost-app--meeting-modal > .telemost-header,
  .telemost-app--meeting-kids .telemost-room.oge-duty-teacher-modal {
    border-radius: 0;
  }

  .telemost-app--meeting-kids .telemost-call__stage--premium {
    margin: 0.25rem;
    border-width: 3px;
    border-radius: 1rem;
  }
}
