:root {
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #eef3ff;
  background: #080b13;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(90, 98, 255, 0.13), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(0, 209, 178, 0.09), transparent 30%),
    #080b13;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.16;
  pointer-events: none;
}

.ambient-one {
  top: -10rem;
  right: 8%;
  background: #775cff;
}

.ambient-two {
  bottom: -13rem;
  left: 12%;
  background: #00c9a7;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  background: linear-gradient(145deg, #7466ff, #3f45d9);
  box-shadow: 0 14px 34px rgba(81, 76, 224, 0.32);
  font-size: 21px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 2px;
  color: #7f899f;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connection {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #99a3b9;
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #657087;
  box-shadow: 0 0 0 4px rgba(101, 112, 135, 0.12);
}

.status-dot[data-status="connecting"] {
  background: #ffb84d;
  box-shadow: 0 0 0 4px rgba(255, 184, 77, 0.12);
}

.status-dot[data-status="online"] {
  background: #42d392;
  box-shadow: 0 0 0 4px rgba(66, 211, 146, 0.12);
}

.status-dot[data-status="error"] {
  background: #ff657a;
  box-shadow: 0 0 0 4px rgba(255, 101, 122, 0.12);
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.75fr);
  gap: 28px 64px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 146px);
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero {
  max-width: 640px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: #8f86ff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 6.2vw, 84px);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.hero h1 span {
  color: #959bff;
}

.hero-copy {
  max-width: 520px;
  margin: 28px 0 0;
  color: #99a3b9;
  font-size: 17px;
  line-height: 1.8;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.feature-row span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #b9c1d2;
  font-size: 12px;
}

.panel,
.activity-panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(17, 22, 35, 0.82);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px);
}

.panel {
  padding: 30px;
  border-radius: 24px;
}

.panel-heading,
.activity-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-heading h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.035em;
}

.version {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(143, 134, 255, 0.1);
  color: #aaa4ff;
  font-size: 11px;
}

.form-stack,
.meeting-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

label > span {
  display: block;
  margin-bottom: 8px;
  color: #aab3c6;
  font-size: 13px;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  outline: none;
  background: rgba(7, 10, 18, 0.66);
  color: #f4f6fb;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input {
  height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 90px;
  padding: 13px 14px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #7770f2;
  box-shadow: 0 0 0 3px rgba(119, 112, 242, 0.12);
}

.primary-button {
  height: 50px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #7167ef, #565ce6);
  color: white;
  box-shadow: 0 14px 28px rgba(72, 74, 206, 0.28);
  font-weight: 700;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

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

.primary-button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.privacy-note {
  margin: 15px 0 0;
  color: #687389;
  font-size: 11px;
  text-align: center;
}

.connection-help {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 184, 77, 0.16);
  border-radius: 12px;
  background: rgba(255, 184, 77, 0.045);
  color: #8f99ad;
  font-size: 11px;
  line-height: 1.65;
}

.connection-help summary {
  color: #d5b878;
  cursor: pointer;
  font-weight: 650;
}

.connection-help p {
  margin: 9px 0 0;
}

.connection-help code {
  color: #c6ccda;
}

.text-button {
  border: 0;
  background: transparent;
  color: #939db2;
  font-size: 12px;
}

.text-button:hover {
  color: #fff;
}

.account-chip {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 24px 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.account-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: #252b47;
  color: #aaa5ff;
  font-size: 12px;
  font-weight: 800;
}

.account-chip small,
.account-chip strong {
  display: block;
}

.account-chip small {
  margin-bottom: 3px;
  color: #737e94;
  font-size: 10px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.tab {
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7e899f;
  font-weight: 650;
}

.tab.active {
  background: #252b40;
  color: #fff;
}

.option-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.switch-field {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.switch-field input {
  width: 16px;
  height: 16px;
}

.switch-field span {
  margin: 0;
}

.activity-panel {
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 18px;
}

.activity-heading {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #8e98ac;
  font-size: 12px;
}

.activity-log {
  max-height: 130px;
  overflow: auto;
  padding: 12px 16px;
  background: rgba(3, 5, 10, 0.5);
  color: #8892a6;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.65;
}

.activity-log p {
  margin: 0 0 4px;
}

.log-success {
  color: #72d9a9;
}

.log-error {
  color: #ff8191;
}

.muted-log {
  color: #596378;
}

.toast {
  position: fixed;
  z-index: 100000;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 13px 17px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: #1b2131;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translateY(12px);
  transition: 180ms ease;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast[data-type="success"] {
  border-color: rgba(66, 211, 146, 0.3);
}

.toast[data-type="error"] {
  border-color: rgba(255, 101, 122, 0.32);
}

/* Make the official UMP meeting component behave like a full-screen meeting room. */
.ump-sdk-metting-card {
  position: fixed !important;
  z-index: 9999 !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
}

.ump-sdk-metting-player {
  min-height: 0 !important;
}

@media (max-width: 820px) {
  .topbar,
  .shell {
    width: min(100% - 28px, 620px);
  }

  .shell {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 24px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 68px);
  }

  .activity-panel {
    grid-column: auto;
  }
}
