.teams-trigger {
  cursor: pointer;
}

.teams-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 3000;
}

.teams-modal.is-open {
  display: flex;
}

.teams-modal-card {
  width: min(100%, 1100px);
  height: min(88vh, 860px);
  background: linear-gradient(145deg, rgba(10, 18, 38, 0.98), rgba(18, 31, 58, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.teams-modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.teams-modal-head h2 {
  font-size: 1.2rem;
}

.teams-modal-sub {
  margin-top: 8px;
  color: var(--muted);
}

.teams-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.teams-modal-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}

.teams-iframe-wrap {
  flex: 1;
  min-height: 0;
  background: rgba(255, 255, 255, 0.02);
}

.teams-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.teams-modal-note {
  padding: 14px 22px 18px;
  color: var(--muted);
  font-size: 0.94rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.status-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 10, 20, 0.56);
  backdrop-filter: blur(8px);
  z-index: 99999;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.status-modal-overlay.is-visible {
  opacity: 1;
}

.status-modal-card {
  width: min(92vw, 560px);
  max-width: 560px;
  padding: 30px 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(10, 18, 38, 0.98), rgba(18, 31, 58, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.status-modal-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--text);
}

.status-modal-message {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.status-modal-actions {
  display: flex;
  justify-content: center;
}

@media (max-width: 640px) {
  .teams-modal {
    padding: 12px;
  }

  .teams-modal-card {
    height: min(92vh, 920px);
  }

  .teams-modal-head {
    flex-direction: column;
  }

  .status-modal-overlay {
    padding: 16px;
  }

  .status-modal-card {
    padding: 26px 22px;
  }
}
