#tq-deploy-gate {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 76% 12%, #f2cb9a 0, #f2cb9a00 36%),
    linear-gradient(145deg, #173e3b, #23594e 72%, #956a49);
  color: #fffaf0;
  font-family: Sarabun, system-ui, sans-serif;
}

#tq-deploy-gate .tq-deploy-card {
  width: min(100%, 34rem);
  padding: clamp(24px, 6vw, 44px);
  border: 1px solid #f5dfb37d;
  border-radius: 24px;
  background: #153c38eF;
  box-shadow: 0 24px 70px #102b2b70;
}

#tq-deploy-gate .tq-deploy-eyebrow {
  margin: 0 0 10px;
  color: #f1ce87;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

#tq-deploy-gate h1 {
  margin: 0 0 16px;
  color: #fffaf0;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  line-height: 1.3;
}

#tq-deploy-gate #tq-deploy-status {
  min-height: 3.4em;
  margin: 0;
  color: #f6edda;
  line-height: 1.7;
}

#tq-deploy-gate .tq-deploy-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

#tq-deploy-gate .tq-deploy-actions a,
#tq-deploy-gate .tq-deploy-actions button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid #f3d58d;
  border-radius: 12px;
  padding: 10px 16px;
  background: #f1ce87;
  color: #173e3b;
  font: 700 0.95rem/1.3 Sarabun, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

#tq-deploy-gate .tq-deploy-actions a:hover,
#tq-deploy-gate .tq-deploy-actions button:hover {
  background: #ffe7ad;
}

#tq-deploy-gate .tq-deploy-actions #tq-deploy-portal {
  border-color: #f6edda80;
  background: transparent;
  color: #fffaf0;
}

#tq-deploy-gate [hidden] {
  display: none !important;
}

.tq-deploy-accountbar {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
  color: #fff4d4;
  font-size: 0.8rem;
}

.tq-deploy-accountbar .tq-deploy-accountbar__identity {
  max-width: min(28vw, 18rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tq-deploy-accountbar a,
.tq-deploy-accountbar button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid #f6edda6e;
  border-radius: 10px;
  padding: 7px 11px;
  background: #153c38a8;
  color: #fffaf0;
  font: 700 0.78rem/1.25 Sarabun, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.tq-deploy-accountbar a:hover,
.tq-deploy-accountbar button:hover {
  background: #28675a;
}

body.is-playing .tq-deploy-accountbar {
  display: none;
}

@media (max-width: 760px) {
  .tq-deploy-accountbar {
    gap: 6px;
    font-size: 0.7rem;
  }

  .tq-deploy-accountbar .tq-deploy-accountbar__identity {
    max-width: 31vw;
  }

  .tq-deploy-accountbar a,
  .tq-deploy-accountbar button {
    padding-inline: 8px;
    font-size: 0.7rem;
  }
}
