.result-panel video {
  display: block;
  justify-self: center;
  max-width: 100%;
  max-height: 70vh;
  background: #111;
  object-fit: contain;
}

.result-panel video[data-aspect="16:9"] {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.result-panel video[data-aspect="9:16"] {
  width: auto;
  height: min(70vh, 720px);
  aspect-ratio: 9 / 16;
}

.result-panel video[data-aspect="1:1"] {
  width: min(100%, 70vh);
  height: auto;
  aspect-ratio: 1 / 1;
}

.studio-login {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.studio-login-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(13, 24, 19, .42);
  backdrop-filter: blur(9px);
}

.studio-login-card {
  position: relative;
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 26px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 30px 90px rgba(15, 45, 31, .25);
}

.studio-login-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f0f4f2;
  color: #5f6864;
  font-size: 20px;
}

.studio-login-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #2bc995, #237dd8);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 12px 28px rgba(31, 154, 113, .24);
}

.studio-login-card h2 {
  margin: 8px 0 10px;
  font-size: 30px;
  letter-spacing: -.045em;
}

.studio-login-card > p {
  margin: 0 0 22px;
  color: #707a75;
  font-size: 13px;
  line-height: 1.65;
}

.studio-login-card form,
.studio-login-card label {
  display: grid;
  gap: 8px;
}

.studio-login-card form { gap: 14px; }
.studio-login-card label span { color: #4c5752; font-size: 11px; font-weight: 800; }

.studio-login-card input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dce6e1;
  border-radius: 13px;
  background: #f9fbfa;
  color: #1d2521;
}

.studio-login-card input[readonly] { color: #607069; background: #f0f5f2; }

.studio-login-card form button {
  height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, #26b984, #0d825c);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 13px 26px rgba(18, 139, 96, .22);
}

.studio-login-card form button:disabled { opacity: .55; cursor: wait; }
.studio-login-card > small { display: block; margin-top: 16px; color: #8b948f; font-size: 10px; line-height: 1.5; }
