html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #f7f8fb;
  color: #111827;
}

.room-body {
  margin: 0;
  overflow: hidden;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.app-fullscreen {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.home-shell {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
}

.home-copy {
  width: min(760px, 100%);
  padding: 48px 0;
}

.home-copy h1 {
  max-width: 680px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 20px;
}

.home-copy p {
  max-width: 560px;
  color: #526071;
  font-size: 1.1rem;
}

.eyebrow,
.room-kicker {
  color: #146c5f;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.room-launcher {
  margin-top: 36px;
  max-width: 620px;
}

.join-row {
  display: flex;
  gap: 12px;
}

.course-ui-body {
  background: #f5f7fb;
  margin: 0;
  overflow: auto;
}

.course-app-shell {
  min-height: 100vh;
}

.course-app-shell main {
  min-height: 100vh;
}

.course-page {
  --course-ink: #111827;
  --course-muted: #5b6678;
  --course-line: #dfe5ee;
  --course-soft: #f5f7fb;
  --course-card: #ffffff;
  --course-teal: #146c5f;
  --course-blue: #2563eb;
  --course-gold: #b7791f;
  --course-red: #b42318;
  --course-shadow: 0 22px 60px rgba(17, 24, 39, .10);
  color: var(--course-ink);
  min-height: 100vh;
}

.course-page *,
.course-page *::before,
.course-page *::after {
  box-sizing: border-box;
}

.course-page a {
  color: inherit;
  text-decoration: none;
}

.course-landing {
  background:
    linear-gradient(90deg, rgba(20, 108, 95, .07), transparent 26%),
    linear-gradient(180deg, #f8fafc, #f2f5fa);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 28px;
}

.course-topbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1280px;
  width: 100%;
  z-index: 2;
}

.course-brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 0;
}

.course-brand-mark {
  align-items: center;
  background: #146c5f;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.course-brand strong,
.course-brand small {
  display: block;
  line-height: 1.1;
}

.course-brand strong {
  font-size: 1rem;
}

.course-brand small {
  color: var(--course-muted);
  font-size: .78rem;
  margin-top: 3px;
}

.course-topbar-actions,
.dashboard-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.course-ghost-link,
.course-lang-button,
.course-primary-button,
.course-secondary-button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.course-ghost-link,
.course-lang-button {
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--course-line);
  color: var(--course-teal);
  padding: 8px 13px;
}

.course-ghost-link:hover,
.course-lang-button:hover,
.course-primary-button:hover,
.course-secondary-button:hover,
.dashboard-actions button:hover {
  transform: translateY(-1px);
}

.course-primary-button {
  background: #1f2937;
  border: 1px solid #1f2937;
  color: #fff;
  padding: 10px 16px;
  width: 100%;
}

.course-secondary-button {
  background: #fff;
  border: 1px solid var(--course-line);
  color: var(--course-ink);
  padding: 10px 14px;
}

.landing-grid {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  margin: 0 auto;
  max-width: 1280px;
  min-height: 0;
  padding: 28px 0 0;
  width: 100%;
}

.landing-story {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  min-height: 620px;
}

.story-card,
.schedule-visual,
.access-panel,
.dashboard-nav,
.catalog-panel,
.side-widget,
.dashboard-actions button,
.course-card-item {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--course-line);
  border-radius: 8px;
  box-shadow: var(--course-shadow);
}

.story-card-main {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
}

.course-kicker {
  color: var(--course-teal);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.story-card h1 {
  font-size: clamp(2.4rem, 5vw, 5.6rem);
  letter-spacing: 0;
  line-height: .96;
  margin: 0 0 20px;
  max-width: 760px;
}

.story-card p {
  color: var(--course-muted);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.55;
  margin: 0;
  max-width: 650px;
}

.course-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  max-width: 620px;
}

.course-metrics span {
  border: 1px solid #e7edf5;
  border-radius: 8px;
  padding: 14px;
}

.course-metrics strong,
.course-metrics small {
  display: block;
}

.course-metrics strong {
  font-size: 1.7rem;
  line-height: 1;
}

.course-metrics small {
  color: var(--course-muted);
  font-size: .78rem;
  margin-top: 6px;
}

.schedule-visual {
  align-self: stretch;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 420px;
  overflow: hidden;
}

.schedule-rail {
  align-items: center;
  background: #182235;
  color: #dce5ef;
  display: grid;
  font-size: .78rem;
  font-weight: 800;
  justify-items: center;
  padding: 18px 0;
}

.schedule-rail span:first-child {
  color: #fff;
  writing-mode: vertical-rl;
}

.schedule-stack {
  align-content: center;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.schedule-stack article {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.schedule-stack strong,
.schedule-stack small {
  display: block;
  min-width: 0;
}

.schedule-stack small {
  color: var(--course-muted);
  margin-top: 3px;
}

.course-dot,
.status-dot {
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 12px;
  width: 12px;
}

.course-dot-teal,
.status-approved {
  background: var(--course-teal);
}

.course-dot-blue {
  background: var(--course-blue);
}

.course-dot-gold,
.status-pending {
  background: var(--course-gold);
}

.access-panel {
  padding: 12px;
}

.access-tabs {
  background: #edf2f7;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr;
  padding: 6px;
}

.access-tab {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--course-muted);
  font-weight: 900;
  min-height: 42px;
}

.access-tab.is-active {
  background: #fff;
  color: var(--course-ink);
  box-shadow: 0 8px 22px rgba(17, 24, 39, .08);
}

.access-pane {
  display: none;
  padding: 26px 18px 12px;
}

.access-pane.is-active {
  display: block;
}

.participant-auth-mode {
  display: none;
}

.participant-auth-mode.is-active {
  display: block;
}

.access-heading h2 {
  font-size: 1.7rem;
  letter-spacing: 0;
  margin: 0 0 18px;
}

.access-form {
  display: grid;
  gap: 14px;
}

.access-form label {
  color: var(--course-ink);
  display: grid;
  font-weight: 800;
  gap: 7px;
}

.phone-field {
  color: var(--course-ink);
  display: grid;
  font-weight: 800;
  gap: 7px;
}

.phone-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
}

.phone-row select,
.access-form input[type="email"],
.access-form input[type="password"],
.access-form input[type="text"],
.access-form input[type="tel"] {
  background: #fff;
  border: 1px solid var(--course-line);
  border-radius: 8px;
  color: var(--course-ink);
  min-height: 48px;
  outline: none;
  padding: 10px 12px;
}

.phone-row select {
  color: var(--course-ink);
  font-weight: 800;
}

.access-form input:focus {
  border-color: var(--course-teal);
  box-shadow: 0 0 0 3px rgba(20, 108, 95, .14);
}

.phone-row select:focus {
  border-color: var(--course-teal);
  box-shadow: 0 0 0 3px rgba(20, 108, 95, .14);
}

.access-form input.is-invalid,
.phone-row select.is-invalid,
.phone-field.has-error .phone-row input {
  border-color: var(--course-red);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .12);
}

.field-error {
  color: var(--course-red);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.35;
}

.access-form-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.access-form-row a {
  color: var(--course-teal);
  font-weight: 800;
}

.access-form-row-end {
  justify-content: flex-end;
}

.check-label {
  align-items: center;
  display: inline-flex !important;
  gap: 8px !important;
  grid-template-columns: none;
}

.check-label input {
  accent-color: var(--course-teal);
}

.participant-auth-footer {
  align-items: center;
  border-top: 1px solid #e7edf5;
  color: var(--course-muted);
  display: flex;
  flex-wrap: wrap;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
  padding-top: 16px;
}

.mode-switch-button {
  background: transparent;
  border: 0;
  color: var(--course-teal);
  font-weight: 900;
  padding: 0;
}

.mode-switch-button:hover {
  color: #0f5f54;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.access-form .course-secondary-button {
  width: 100%;
}

.register-drawer {
  border-top: 1px solid #e7edf5;
  margin-top: 18px;
  padding-top: 16px;
}

.register-drawer summary {
  color: var(--course-teal);
  cursor: pointer;
  font-weight: 900;
}

.register-form {
  margin-top: 14px;
}

.form-note,
.host-note p,
.soft-note {
  color: var(--course-muted);
  font-size: .9rem;
  line-height: 1.45;
  margin: 0;
}

.form-note.is-success {
  color: var(--course-teal);
  font-weight: 800;
}

.host-note {
  align-items: start;
  background: #fff8eb;
  border: 1px solid #f3d9a3;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
}

.course-dashboard {
  background: #eef3f8;
  display: grid;
  gap: 18px;
  grid-template-columns: 280px minmax(0, 1fr);
  padding: 18px;
}

.dashboard-nav {
  align-content: space-between;
  display: grid;
  gap: 22px;
  min-height: calc(100vh - 36px);
  padding: 18px;
  position: sticky;
  top: 18px;
}

.dashboard-brand {
  align-self: start;
}

.dashboard-menu {
  display: grid;
  gap: 8px;
}

.dashboard-menu a {
  align-items: center;
  border-radius: 8px;
  color: var(--course-muted);
  display: flex;
  gap: 10px;
  font-weight: 800;
  min-height: 44px;
  padding: 9px 10px;
}

.dashboard-menu a.is-active,
.dashboard-menu a:hover {
  background: #e8f7f3;
  color: var(--course-teal);
}

.menu-icon,
.action-icon {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.menu-icon {
  background: #f4f7fb;
  height: 32px;
  width: 32px;
}

.menu-icon svg,
.action-icon svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.dashboard-signout {
  width: 100%;
}

.dashboard-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.dashboard-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-width: 0;
}

.dashboard-header h1 {
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.profile-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--course-line);
  border-radius: 999px;
  display: inline-flex;
  gap: 10px;
  min-height: 42px;
  padding: 5px 12px 5px 5px;
}

.profile-chip span {
  align-items: center;
  background: var(--course-teal);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.dashboard-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-actions button {
  border: 1px solid var(--course-line);
  color: var(--course-ink);
  display: grid;
  gap: 8px;
  justify-items: start;
  min-height: 132px;
  padding: 18px;
  text-align: start;
}

.dashboard-actions strong,
.dashboard-actions small {
  display: block;
}

.dashboard-actions small {
  color: var(--course-muted);
}

.action-icon {
  height: 42px;
  width: 42px;
}

.action-icon-teal {
  background: #e8f7f3;
  color: var(--course-teal);
}

.action-icon-blue {
  background: #eaf1ff;
  color: var(--course-blue);
}

.action-icon-red {
  background: #fff1f0;
  color: var(--course-red);
}

.dashboard-content {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.catalog-panel,
.side-widget {
  padding: 18px;
}

.panel-toolbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-toolbar h2,
.side-widget h2 {
  font-size: 1.35rem;
  margin: 0;
}

.segmented-filter {
  background: #edf2f7;
  border-radius: 8px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

.segmented-filter button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--course-muted);
  font-weight: 900;
  min-height: 34px;
  min-width: 44px;
  padding: 6px 10px;
}

.segmented-filter button.is-active {
  background: #fff;
  color: var(--course-ink);
}

.course-card-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-card-item {
  box-shadow: none;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.course-card-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.course-badge,
.course-seat-pill {
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
  padding: 5px 9px;
}

.course-badge {
  color: #fff;
}

.course-badge-teal {
  background: var(--course-teal);
}

.course-badge-gold {
  background: var(--course-gold);
}

.course-seat-pill {
  background: #f4f7fb;
  color: var(--course-muted);
}

.course-card-item h3 {
  font-size: 1.2rem;
  margin: 0;
}

.course-card-item p {
  color: var(--course-muted);
  margin: 0;
}

.course-card-item dl {
  border-top: 1px solid #e7edf5;
  display: grid;
  gap: 8px;
  margin: 0;
  padding-top: 12px;
}

.course-card-item dl div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.course-card-item dt {
  color: var(--course-muted);
  font-weight: 800;
}

.course-card-item dd {
  font-weight: 900;
  margin: 0;
  text-align: end;
}

.dashboard-side-stack {
  display: grid;
  gap: 14px;
}

.timeline-ticket {
  align-items: center;
  background: #182235;
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
}

.timeline-ticket > span {
  background: #fff;
  border-radius: 6px;
  color: #182235;
  flex: 0 0 auto;
  font-weight: 900;
  padding: 8px;
}

.timeline-ticket small {
  color: #c9d4e2;
  display: block;
}

.request-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.request-list li {
  align-items: start;
  border: 1px solid #e7edf5;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.request-list strong,
.request-list small {
  display: block;
}

.request-list small {
  color: var(--course-muted);
  margin-top: 2px;
}

.course-page[dir="rtl"] {
  text-align: right;
}

.course-page[dir="rtl"] .course-kicker,
.course-page[dir="rtl"] .story-card h1,
.course-page[dir="rtl"] .story-card p,
.course-page[dir="rtl"] .course-brand,
.course-page[dir="rtl"] .access-form label,
.course-page[dir="rtl"] .dashboard-actions button {
  letter-spacing: 0;
}

.course-page[dir="rtl"] .schedule-rail span:first-child {
  writing-mode: vertical-lr;
}

.course-page[dir="rtl"] .profile-chip {
  padding: 5px 5px 5px 12px;
}

.course-page[dir="rtl"] .course-card-item dd {
  text-align: left;
}

@media (max-width: 1180px) {
  .landing-grid,
  .landing-story,
  .dashboard-content {
    grid-template-columns: 1fr;
  }

  .landing-story {
    min-height: auto;
  }

  .schedule-visual {
    min-height: 280px;
  }

  .course-dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard-nav {
    min-height: auto;
    position: static;
  }

  .dashboard-menu {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .dashboard-menu a {
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .course-landing,
  .course-dashboard {
    padding: 14px;
  }

  .course-topbar,
  .dashboard-header,
  .panel-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .course-topbar-actions,
  .dashboard-header-actions {
    justify-content: stretch;
  }

  .course-topbar-actions > *,
  .dashboard-header-actions > * {
    flex: 1 1 auto;
  }

  .landing-grid {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  .course-metrics,
  .dashboard-actions,
  .course-card-list,
  .dashboard-menu {
    grid-template-columns: 1fr;
  }

  .story-card-main,
  .access-pane,
  .catalog-panel,
  .side-widget {
    padding: 18px;
  }

  .schedule-visual {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .access-panel {
    min-width: 0;
  }

  .phone-row {
    grid-template-columns: 1fr;
  }
}

.classroom-page {
  height: 100vh;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(20, 108, 95, .08), transparent 28%),
    linear-gradient(315deg, rgba(194, 65, 12, .08), transparent 34%),
    #f7f8fb;
  overflow: hidden;
}

.join-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.join-box {
  width: min(720px, 100%);
}

.join-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.language-toggle {
  background: #fff;
  border: 1px solid #d7dde6;
  border-radius: 999px;
  color: #146c5f;
  flex: 0 0 auto;
  font-weight: 800;
  min-height: 34px;
  padding: 6px 12px;
}

.language-toggle:hover {
  background: #e8f7f3;
  border-color: #9dd4c7;
}

.join-box h1 {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 28px;
  word-break: break-word;
}

.join-note {
  color: #526071;
  margin-top: 14px;
}

.meeting-shell {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
}

.meeting-topbar {
  align-items: center;
  display: flex;
  grid-row: 1;
  justify-content: space-between;
  gap: 16px;
}

.meeting-topbar h1 {
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0;
}

.status-cluster {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.role-pill,
.connection-pill {
  border: 1px solid #d7dde6;
  border-radius: 999px;
  background: #fff;
  color: #526071;
  font-size: .88rem;
  font-weight: 700;
  padding: 8px 12px;
}

.role-pill.host {
  background: #e8f7f3;
  border-color: #9dd4c7;
  color: #146c5f;
}

.connection-pill[data-state="connected"] {
  background: #edf7ed;
  border-color: #a7d9a9;
  color: #246b28;
}

.connection-pill[data-state="disconnected"] {
  background: #fff1f0;
  border-color: #ffccc7;
  color: #a8071a;
}

.media-notice {
  grid-row: 2;
  margin: 0;
}

.meeting-grid {
  display: grid;
  grid-row: 3;
  grid-template-columns: minmax(0, 1fr) 340px;
  height: 100%;
  min-height: 0;
  gap: 16px;
}

.stage,
.side-panel {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(17, 24, 39, .08);
  min-height: 0;
}

.stage {
  position: relative;
  display: grid;
  height: 100%;
  overflow: hidden;
}

.stage-empty {
  place-self: center;
  text-align: center;
  width: min(420px, 86%);
}

.stage-empty svg {
  width: 74px;
  height: 74px;
  fill: #146c5f;
  margin-bottom: 20px;
}

.stage-empty h2 {
  font-size: 1.6rem;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.stage-empty p {
  color: #526071;
}

.screen-card,
.focus-camera-card {
  position: absolute;
  inset: 0;
  background: #0f172a;
}

.screen-media-layer {
  inset: 0;
  overflow: hidden;
  position: absolute;
  transform-origin: 0 0;
  transition: transform .22s ease;
  will-change: transform;
}

.screen-card video,
.focus-camera-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.visual-aid-layer {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.screen-pointer {
  align-items: center;
  display: none;
  height: 46px;
  justify-content: center;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 46px;
  z-index: 5;
}

.screen-pointer.is-visible {
  display: inline-flex;
}

.screen-pointer span {
  background: #fbbf24;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(251, 191, 36, .26), 0 12px 28px rgba(0, 0, 0, .32);
  height: 18px;
  width: 18px;
}

.screen-region,
.screen-region-selection {
  border-radius: 6px;
  display: none;
  position: absolute;
  z-index: 4;
}

.screen-region.is-visible,
.screen-region-selection.is-visible {
  display: block;
}

.screen-region {
  border: 3px solid #fbbf24;
  box-shadow:
    0 0 0 9999px rgba(2, 6, 23, .34),
    0 0 0 6px rgba(251, 191, 36, .16),
    0 18px 48px rgba(0, 0, 0, .28);
}

.screen-region-selection {
  background: rgba(20, 108, 95, .12);
  border: 2px dashed #14b8a6;
  box-shadow: 0 0 0 9999px rgba(2, 6, 23, .2);
}

.screen-card.is-region-zoomed .media-label {
  display: none;
}

.stage.is-pointer-tool .screen-card,
.stage.is-region-tool .screen-card {
  cursor: crosshair;
}

.stage-actions {
  display: none;
  gap: 8px;
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 5;
}

.has-stage-media .stage-actions {
  display: flex;
}

.stage-action-button {
  align-items: center;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(215, 221, 230, .9);
  border-radius: 50%;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .22);
  color: #111827;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
  width: 44px;
}

.stage-action-button:hover {
  background: #fff;
  transform: translateY(-1px);
}

.stage-action-button svg {
  fill: currentColor;
  height: 22px;
  width: 22px;
}

.stage-action-button .icon-collapse {
  display: none;
}

.is-stage-focused .stage-action-button .icon-expand {
  display: none;
}

.is-stage-focused .stage-action-button .icon-collapse {
  display: block;
}

.media-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .78);
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
  padding: 6px 10px;
}

.classroom-page[dir="rtl"] .stage-actions {
  left: 14px;
  right: auto;
}

.classroom-page[dir="rtl"] .media-label {
  left: auto;
  right: 12px;
}

.side-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.side-panel-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 10px minmax(120px, var(--chat-panel-height, 33%));
  min-height: 0;
}

.side-panel-body.is-chat-collapsed {
  grid-template-rows: minmax(0, 1fr) 0 48px;
}

.panel-heading {
  align-items: center;
  border-bottom: 1px solid #e7ebf2;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  padding: 14px 16px;
}

.panel-title-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.moderation-controls {
  align-items: center;
  gap: 8px;
}

.panel-icon-button,
.participant-action-button {
  align-items: center;
  background: #fff;
  border: 1px solid #d7dde6;
  border-radius: 50%;
  color: #526071;
  display: inline-flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  width: 34px;
}

.panel-icon-button:hover,
.participant-action-button:hover {
  transform: translateY(-1px);
}

.panel-icon-button svg,
.participant-action-button svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.panel-icon-button.is-on {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}

.participant-action-button {
  background: #e8f7f3;
  border-color: #9dd4c7;
  color: #146c5f;
  height: 32px;
  width: 32px;
}

.participants {
  align-content: start;
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 12px;
}

.chat-resize-handle {
  align-items: center;
  background: #f1f5f9;
  border-bottom: 1px solid #e7ebf2;
  border-top: 1px solid #e7ebf2;
  cursor: row-resize;
  display: flex;
  justify-content: center;
  min-height: 10px;
  touch-action: none;
}

.chat-resize-handle::before {
  background: #aab4c2;
  border-radius: 999px;
  content: "";
  height: 3px;
  width: 42px;
}

.chat-resize-handle:hover::before,
.chat-resize-handle:focus-visible::before,
.side-panel-body.is-resizing-chat .chat-resize-handle::before {
  background: #146c5f;
}

.chat-resize-handle:focus-visible {
  outline: 2px solid rgba(20, 108, 95, .28);
  outline-offset: -2px;
}

.side-panel-body.is-chat-collapsed .chat-resize-handle {
  display: none;
}

.chat-panel {
  background: #fff;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}

.chat-heading {
  align-items: center;
  border-bottom: 1px solid #e7ebf2;
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 12px;
}

.chat-title-row {
  align-items: baseline;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.chat-title-row > span:first-child {
  font-weight: 800;
}

.chat-status {
  color: #526071;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chat-toggle-button,
.chat-send-button {
  align-items: center;
  background: #fff;
  border: 1px solid #d7dde6;
  border-radius: 50%;
  color: #111827;
  display: inline-flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
  width: 34px;
}

.chat-toggle-button:hover,
.chat-send-button:hover {
  transform: translateY(-1px);
}

.chat-toggle-button svg,
.chat-send-button svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.chat-toggle-button .icon-expand-chat {
  display: none;
}

.is-chat-collapsed .chat-toggle-button .icon-collapse-chat {
  display: none;
}

.is-chat-collapsed .chat-toggle-button .icon-expand-chat {
  display: block;
}

.chat-messages {
  align-content: start;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding: 10px 12px;
}

.chat-message {
  background: #f7f8fb;
  border: 1px solid #e4e9f1;
  border-radius: 8px;
  padding: 8px 10px;
}

.chat-message.is-host-message {
  background: #e8f7f3;
  border-color: #9dd4c7;
}

.chat-message.is-own-message:not(.is-host-message) {
  background: #eef6ff;
  border-color: #bfdcff;
}

.chat-message-meta {
  align-items: center;
  display: flex;
  gap: 6px;
  margin-bottom: 3px;
  min-width: 0;
}

.chat-sender {
  color: #111827;
  font-size: .78rem;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-role-pill {
  background: #146c5f;
  border-radius: 999px;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 2px 6px;
  text-transform: uppercase;
}

.chat-message-text {
  color: #1f2937;
  font-size: .9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-message-text a {
  color: #0f766e;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-message-text a:hover {
  color: #0b5f59;
}

.chat-composer {
  border-top: 1px solid #e7ebf2;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
}

.chat-input {
  border: 1px solid #d7dde6;
  border-radius: 999px;
  flex: 1 1 auto;
  min-width: 0;
  outline: none;
  padding: 8px 12px;
}

.chat-input:focus {
  border-color: #146c5f;
  box-shadow: 0 0 0 3px rgba(20, 108, 95, .12);
}

.chat-send-button {
  background: #146c5f;
  border-color: #146c5f;
  color: #fff;
}

.chat-send-button:disabled {
  background: #eef2f6;
  border-color: #d7dde6;
  color: #8b95a3;
  cursor: not-allowed;
  transform: none;
}

.chat-panel.is-chat-locked .chat-input {
  background: #f1f5f9;
  color: #8b95a3;
}

.is-chat-collapsed .chat-panel {
  grid-template-rows: 48px;
}

.is-chat-collapsed .chat-messages,
.is-chat-collapsed .chat-composer {
  display: none;
}

.participant-card,
.video-card {
  align-items: center;
  background: #f7f8fb;
  border: 1px solid #e4e9f1;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  position: relative;
}

.participant-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 10px;
}

.participant-main {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
}

.video-card {
  aspect-ratio: 16 / 10;
  background: #111827;
  overflow: hidden;
  padding: 0;
}

.video-card.is-hidden-by-stage {
  display: none;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar {
  align-items: center;
  background: #146c5f;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 36px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.participant-name {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.participant-flags {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  min-width: 24px;
}

.participant-flag {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.participant-flag svg {
  fill: currentColor;
  height: 16px;
  width: 16px;
}

.hand-flag {
  background: #fff7e6;
  color: #ad6800;
}

.participant-actions {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
  width: 100%;
}

.participant-action-button.is-allowed {
  background: #e8f7f3;
  border-color: #9dd4c7;
  color: #146c5f;
}

.participant-action-button.is-denied {
  background: #fff1f0;
  border-color: #ffd7d4;
  color: #a8071a;
}

.participant-action-button.is-kick {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}

.participant-action-button.is-kick:hover {
  background: #991b1b;
  border-color: #991b1b;
}

.meeting-toolbar {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(247, 248, 251, .74);
  border: 1px solid rgba(215, 221, 230, .7);
  border-radius: 999px;
  bottom: 18px;
  display: flex;
  gap: 12px;
  grid-column: 1;
  grid-row: 1;
  justify-content: center;
  left: 50%;
  min-height: 0;
  padding: 10px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 20;
}

.icon-button {
  align-items: center;
  background: #fff;
  border: 1px solid #d7dde6;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(17, 24, 39, .12);
  color: #111827;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
  width: 52px;
}

.icon-button:hover {
  transform: translateY(-1px);
}

.icon-button svg {
  fill: currentColor;
  height: 24px;
  width: 24px;
}

.icon-button.is-on {
  background: #146c5f;
  border-color: #146c5f;
  color: #fff;
}

.icon-button:disabled {
  background: #eef2f6;
  color: #8b95a3;
  cursor: not-allowed;
  transform: none;
}

.leave-button {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}

.host-only {
  display: none;
}

.is-host .host-only {
  display: inline-flex;
}

.is-host .attendee-only {
  display: none;
}

#audioSink {
  display: none;
}

.is-stage-focused .meeting-shell {
  gap: 0;
  padding: 0;
}

.is-stage-focused .meeting-topbar,
.is-stage-focused .media-notice,
.is-stage-focused .side-panel {
  display: none;
}

.is-stage-focused .meeting-grid {
  display: block;
  height: 100vh;
}

.is-stage-focused .stage {
  background: #05070d;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 100vh;
}

.is-stage-focused .screen-card,
.is-stage-focused .focus-camera-card {
  border-radius: 0;
}

.stage:fullscreen,
.meeting-shell:fullscreen .stage {
  background: #05070d;
  border: 0;
  border-radius: 0;
  height: 100vh;
  width: 100vw;
}

.stage:fullscreen .stage-actions,
.meeting-shell:fullscreen .stage-actions {
  display: flex;
}

.meeting-shell:fullscreen .meeting-toolbar {
  display: flex;
}

@media (max-width: 900px) {
  .meeting-grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(360px, 1fr) 220px;
  }

  .meeting-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .join-row {
    flex-direction: column;
  }

  .meeting-shell {
    padding: 12px;
  }

  .meeting-grid {
    grid-template-rows: minmax(280px, 1fr) 200px;
  }

  .icon-button {
    height: 48px;
    width: 48px;
  }
}
