.team-app-mode .team-install-gate { display: none !important; }
.team-app-mode [data-team-app-login] { display: block !important; }

.login-body:has(.team-install-gate) {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background-color: #05080d;
  background-image: url("/assets/primex-theme-bg.webp");
  background-blend-mode: multiply;
  background-position: center;
  background-size: cover;
}

.team-install-gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: transparent;
}

.team-install-panel {
  width: min(920px, 100%);
  overflow: hidden;
  border: 1px solid #29415f;
  border-radius: 0;
  background: rgba(7, 15, 27, .96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}

.team-install-panel > header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid #1e3048;
}

.team-install-panel .brand-large { gap: 10px; }
.team-install-panel .brand-logo { width: 148px; height: auto; display: block; }
.team-install-panel .brand-large em { padding: 4px 9px; font-size: 9px; }

.team-install-secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8fa7c8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.team-install-secure svg,
.team-install-panel > footer svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: #63d8c4;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-install-content {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.2fr);
  align-items: center;
  gap: 52px;
  padding: 52px 52px 32px;
}

.team-install-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.team-install-visual img {
  position: relative;
  z-index: 1;
  width: min(220px, 76%);
  height: auto;
  border-radius: 24%;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .52), 0 0 0 1px rgba(255, 194, 72, .35);
}

.team-install-rings {
  position: absolute;
  width: min(300px, 100%);
  aspect-ratio: 1;
  border: 1px solid #29496f;
  border-radius: 50%;
  box-shadow: inset 0 0 54px rgba(26, 113, 205, .16);
}

.team-install-rings::before,
.team-install-rings::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(229, 177, 70, .28);
  border-radius: 50%;
}

.team-install-rings::after { inset: 25%; border-style: solid; border-color: rgba(81, 146, 221, .24); }

.team-install-copy .eyebrow {
  margin: 0 0 10px;
  color: #e1b64f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.team-install-copy h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.team-install-copy > p:not(.eyebrow):not(.team-install-status) {
  max-width: 560px;
  margin: 18px 0 28px;
  color: #a8b7cc;
  font-size: 15px;
  line-height: 1.7;
}

.team-install-primary {
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid #f0bd4e;
  border-radius: 6px;
  background: #e8b43f;
  color: #09111d;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(219, 163, 42, .18);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.team-install-primary:hover { background: #f3c85f; box-shadow: 0 14px 34px rgba(219, 163, 42, .28); }
.team-install-primary:active { transform: translateY(1px); }
.team-install-primary:focus-visible { outline: 3px solid rgba(86, 161, 255, .62); outline-offset: 3px; }
.team-install-primary:disabled { cursor: default; opacity: .72; }
.team-install-primary.is-installed { border-color: #52c7ae; background: #52c7ae; }
.team-install-primary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.team-install-status {
  min-height: 34px;
  margin: 10px 0 20px;
  color: #7f96b7;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.team-install-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-install-steps li {
  min-width: 0;
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid #1d304a;
  border-radius: 0;
  background: #0b1727;
}

.team-install-steps li > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #d7a83f;
  border-radius: 50%;
  color: #efc45c;
  font-size: 11px;
  font-weight: 800;
}

.team-install-steps p { min-width: 0; margin: 1px 0 0; }
.team-install-steps strong { display: block; font-size: 11px; line-height: 1.35; }
.team-install-steps small { display: block; margin-top: 4px; color: #8194ae; font-size: 9px; line-height: 1.45; }

.team-install-panel > footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 28px;
  border-top: 1px solid #1e3048;
  background: #081321;
}

.team-install-panel > footer p { margin: 0; }
.team-install-panel > footer strong,
.team-install-panel > footer small { display: block; }
.team-install-panel > footer strong { color: #d5e0ee; font-size: 11px; }
.team-install-panel > footer small { margin-top: 3px; color: #7187a5; font-size: 10px; }

@media (max-width: 720px) {
  .team-install-gate { place-items: stretch; padding: 0; }
  .team-install-panel { min-height: 100vh; min-height: 100dvh; border: 0; }
  .team-install-panel > header { min-height: 64px; padding: 16px 20px; }
  .team-install-panel .brand-logo { width: 124px; }
  .team-install-secure { font-size: 9px; }
  .team-install-secure svg { width: 17px; height: 17px; }
  .team-install-content { grid-template-columns: 1fr; gap: 18px; padding: 26px 20px 16px; }
  .team-install-visual { min-height: 180px; }
  .team-install-visual img { width: 128px; }
  .team-install-rings { width: 176px; }
  .team-install-copy { text-align: center; }
  .team-install-copy .eyebrow { margin-bottom: 8px; }
  .team-install-copy h1 { max-width: 360px; margin-inline: auto; font-size: 30px; }
  .team-install-copy > p:not(.eyebrow):not(.team-install-status) { max-width: 430px; margin: 14px auto 22px; font-size: 13px; line-height: 1.6; }
  .team-install-primary { min-height: 52px; }
  .team-install-status { margin-bottom: 14px; }
  .team-install-steps { text-align: left; }
  .team-install-panel > footer { margin-top: auto; padding: 15px 20px max(15px, env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  .team-install-secure > svg + * { display: none; }
  .team-install-content { padding-top: 20px; }
  .team-install-visual { min-height: 154px; }
  .team-install-visual img { width: 112px; }
  .team-install-rings { width: 152px; }
  .team-install-copy h1 { font-size: 27px; }
  .team-install-steps { grid-template-columns: 1fr; }
  .team-install-steps li { min-height: 56px; align-items: center; }
  .team-install-steps small { font-size: 10px; }
}

@media (max-height: 690px) and (max-width: 720px) {
  .team-install-content { gap: 12px; padding: 16px 20px 12px; }
  .team-install-visual { min-height: 116px; }
  .team-install-visual img { width: 88px; }
  .team-install-rings { width: 118px; }
  .team-install-copy h1 { font-size: 24px; }
  .team-install-copy > p:not(.eyebrow):not(.team-install-status) { margin-block: 10px 16px; }
  .team-install-steps { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .team-install-gate *, .team-install-gate *::before, .team-install-gate *::after { transition: none !important; }
}
