:root {
  --vm-delegated-ink: #0d1734;
  --vm-delegated-primary: #5b5ee8;
  --vm-delegated-accent: #f59e0b;
  --vm-delegated-soft: #fff8e8;
}

.vm-delegated-banner {
  position: sticky;
  top: 0;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 24px;
  color: #36270c;
  background: linear-gradient(100deg, #fff7dd 0%, #fffaf0 52%, #f3f1ff 100%);
  border-bottom: 1px solid rgba(210, 148, 21, .24);
  box-shadow: 0 8px 24px rgba(39, 43, 98, .07);
}
.vm-delegated-mode .workspace-header { position: relative; top: auto; }

.vm-delegated-banner-copy,
.vm-delegated-banner-title,
.vm-delegated-banner form { display: flex; align-items: center; }
.vm-delegated-banner-copy { min-width: 0; gap: 12px; }
.vm-delegated-banner-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #f7aa17, #e57a0b);
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(229, 122, 11, .23);
}
.vm-delegated-banner-text { min-width: 0; }
.vm-delegated-banner-title { gap: 7px; color: var(--vm-delegated-ink); font-size: .83rem; font-weight: 900; }
.vm-delegated-banner-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-delegated-banner-text small { display: block; margin-top: 2px; color: #7a6744; font-size: .69rem; }
.vm-delegated-banner-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: #fff;
  background: var(--vm-delegated-ink);
  border: 0;
  border-radius: 11px;
  font-size: .72rem;
  font-weight: 850;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}
.vm-delegated-banner-button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(13, 23, 52, .2); }

.vm-delegated-gateway {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background: radial-gradient(circle at 15% 15%, rgba(91, 94, 232, .12), transparent 35%), #f4f6fb;
  font-family: Arial, sans-serif;
}
.vm-delegated-gateway-card {
  width: min(440px, 100%);
  padding: 38px;
  text-align: center;
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(23, 33, 69, .12);
}
.vm-delegated-gateway-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: #fff;
  background: linear-gradient(145deg, #6b6df0, #4c4fd6);
  border-radius: 20px;
  font-size: 1.35rem;
}
.vm-delegated-gateway-eyebrow { color: var(--vm-delegated-primary); font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.vm-delegated-gateway h1 { margin: 10px 0; color: var(--vm-delegated-ink); font-size: 1.7rem; font-weight: 900; }
.vm-delegated-gateway p { margin: 0 0 24px; color: #71809d; font-size: .9rem; line-height: 1.65; }
.vm-delegated-gateway-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  color: #fff;
  background: var(--vm-delegated-primary);
  border-radius: 13px;
  font-size: .8rem;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .vm-delegated-banner { align-items: stretch; flex-direction: column; gap: 9px; padding: 10px 13px; }
  .vm-delegated-banner-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
  .vm-delegated-banner-title { font-size: .75rem; }
  .vm-delegated-banner-text small { font-size: .64rem; }
  .vm-delegated-banner form,
  .vm-delegated-banner-button { width: 100%; }
  .vm-delegated-gateway-card { padding: 30px 22px; border-radius: 20px; }
}
