#codeeAdminGate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #101828;
  background:
    radial-gradient(circle at 20% 5%, rgba(10, 132, 255, .18), transparent 28%),
    radial-gradient(circle at 78% 12%, rgba(52, 199, 89, .14), transparent 26%),
    linear-gradient(180deg, rgba(245, 248, 253, .94), rgba(228, 235, 247, .96));
  backdrop-filter: blur(28px) saturate(150%);
}

#codeeAdminGate[hidden] {
  display: none;
}

.codee-temp-access-banner {
  position: sticky;
  top: 0;
  z-index: 2147482500;
  display: grid;
  gap: 3px;
  padding: 10px 18px;
  color: #072116;
  background: linear-gradient(90deg, rgba(209, 250, 229, .96), rgba(219, 234, 254, .96));
  border-bottom: 1px solid rgba(16, 185, 129, .30);
  box-shadow: 0 10px 28px rgba(21, 37, 70, .10);
  font: 600 .84rem/1.35 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.codee-temp-access-banner strong {
  font-weight: 900;
}

.codee-temp-access-banner span {
  color: #12382f;
  font-weight: 700;
}

.codee-temp-access-banner,
.codee-temp-access-banner strong,
.codee-temp-access-banner span {
  font-size: max(.86rem, 12px);
  line-height: 1.42;
}

.codee-gate-card {
  width: min(100%, 520px);
  border: 1px solid rgba(125, 143, 170, .28);
  border-radius: 28px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 30px 90px rgba(21, 37, 70, .24);
  overflow: hidden;
}

.codee-gate-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid rgba(125, 143, 170, .20);
  background: rgba(255, 255, 255, .72);
}

.codee-gate-logo-mark {
  width: 56px;
  height: 62px;
  display: inline-grid;
  place-items: center;
  position: relative;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 44%, rgba(10, 132, 255, .12), transparent 62%);
}

.codee-gate-logo {
  width: 54px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(10, 132, 255, .22));
}

.codee-gate-eye-glow {
  position: absolute;
  left: 60.5%;
  top: 44%;
  width: 11px;
  height: 7px;
  border-radius: 999px;
  background: #67e8f9;
  box-shadow:
    0 0 8px rgba(103, 232, 249, .95),
    0 0 18px rgba(10, 132, 255, .85),
    0 0 32px rgba(10, 132, 255, .55);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-10deg);
  animation: codeeEyePulse 1.8s ease-in-out infinite;
}

@keyframes codeeEyePulse {
  0%, 100% {
    opacity: .78;
    transform: translate(-50%, -50%) rotate(-10deg) scale(.92);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-10deg) scale(1.14);
  }
}

.codee-gate-title {
  min-width: 0;
}

.codee-gate-title strong {
  display: block;
  font: 800 1.08rem/1.1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  letter-spacing: 0;
}

.codee-gate-title span {
  display: block;
  margin-top: 4px;
  color: #667085;
  font: 600 .82rem/1.35 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.codee-gate-mail {
  margin-left: auto;
  width: 46px;
  height: 34px;
  border-radius: 10px;
  position: relative;
  background: linear-gradient(180deg, #67b7ff 0%, #0a84ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .54), 0 12px 24px rgba(10, 132, 255, .18);
}

.codee-gate-mail::before,
.codee-gate-mail::after {
  content: "";
  position: absolute;
  inset: 7px 8px;
  pointer-events: none;
}

.codee-gate-mail::before {
  border-left: 2px solid rgba(255, 255, 255, .88);
  border-bottom: 2px solid rgba(255, 255, 255, .88);
  border-radius: 0 0 0 3px;
  transform: rotate(-45deg) translate(1px, -5px);
}

.codee-gate-mail::after {
  border-right: 2px solid rgba(255, 255, 255, .62);
  border-bottom: 2px solid rgba(255, 255, 255, .62);
  border-radius: 0 0 3px 0;
  transform: rotate(45deg) translate(-1px, -5px);
}

.codee-gate-body {
  padding: 22px;
}

.codee-gate-status {
  min-height: 22px;
  margin: 0 0 14px;
  color: #475467;
  font: 650 .88rem/1.4 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.codee-gate-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.codee-face-panel {
  min-height: 184px;
  border-radius: 22px;
  border: 1px solid rgba(125, 143, 170, .24);
  background: linear-gradient(180deg, #f8fbff, #eef4fb);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.codee-face-panel video,
.codee-face-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.codee-face-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0a84ff;
  background: rgba(10, 132, 255, .10);
  box-shadow: inset 0 0 0 1px rgba(10, 132, 255, .18);
}

.codee-face-placeholder::before {
  content: "";
  width: 42px;
  height: 42px;
  border: 3px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 28px 0 -12px currentColor;
}

.codee-gate-fields {
  display: grid;
  gap: 10px;
  align-content: start;
}

.codee-gate-fields label {
  display: grid;
  gap: 6px;
  color: #344054;
  font: 750 .78rem/1.2 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
}

.codee-gate-fields input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(125, 143, 170, .34);
  border-radius: 14px;
  padding: 0 14px;
  color: #101828;
  background: rgba(255, 255, 255, .92);
  outline: none;
  font: 750 1rem/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.codee-gate-fields input:focus {
  border-color: rgba(10, 132, 255, .72);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, .12);
}

.codee-gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.codee-gate-btn {
  min-height: 44px;
  border: 1px solid rgba(125, 143, 170, .30);
  border-radius: 14px;
  color: #111827;
  background: rgba(255, 255, 255, .86);
  font: 800 .88rem/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.codee-gate-btn.primary {
  color: #fff;
  border-color: rgba(10, 132, 255, .72);
  background: linear-gradient(180deg, #0a84ff, #0066d6);
  box-shadow: 0 14px 30px rgba(10, 132, 255, .25);
}

.codee-gate-btn:disabled {
  cursor: wait;
  opacity: .62;
}

.codee-gate-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  color: #475467;
  background: rgba(10, 132, 255, .08);
  font: 650 .8rem/1.45 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.codee-gate-card.is-error .codee-gate-status {
  color: #b42318;
}

body.codee-admin-locked {
  overflow: hidden;
}

@media (max-width: 640px) {
  #codeeAdminGate {
    padding: 14px;
  }

  .codee-gate-card {
    border-radius: 22px;
  }

  .codee-gate-grid {
    grid-template-columns: 1fr;
  }

  .codee-face-panel {
    min-height: 210px;
  }
}
