.portal-gate {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f9;
    font-family: "Google Sans", "Segoe UI", Roboto, Arial, sans-serif;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.portal-gate.portal-gate--hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.portal-gate__panel {
    text-align: center;
    width: min(420px, 92vw);
}

.portal-gate__panel--loading {
    width: auto;
}

.portal-gate__panel--logo-only .portal-gate__g-logo {
    margin-bottom: 0;
}

.portal-gate__panel--captcha {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18), 0 4px 16px rgba(60, 64, 67, 0.08);
    padding: 32px 28px 28px;
}

.portal-gate__title {
    font-size: 22px;
    font-weight: 400;
    color: #202124;
    margin: 0 0 8px;
}

.portal-gate__subtitle {
    font-size: 14px;
    color: #5f6368;
    margin: 0 0 24px;
    line-height: 1.5;
}

.portal-gate__v3-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 78px;
    font-size: 14px;
    color: #5f6368;
}

.portal-gate__v3-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid #dadce0;
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: portal-gate-spin 0.8s linear infinite;
}

@keyframes portal-gate-spin {
    to { transform: rotate(360deg); }
}

.portal-gate__turnstile,
.portal-gate__widget {
    display: flex;
    justify-content: center;
    min-height: 78px;
}

.portal-gate__dev-btn {
    margin-top: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background: #1a73e8;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.portal-gate__dev-btn:hover {
    background: #1765cc;
}

.portal-gate__error {
    margin-top: 16px;
    color: #d93025;
    font-size: 13px;
}

.portal-gate__g-logo {
    margin: 0 auto 20px;
    animation: portal-gate-pulse 2.4s ease-in-out infinite;
}

.portal-gate__custom-logo {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin: 0 auto;
}

.portal-gate__workspace {
    font-size: 22px;
    font-weight: 400;
    color: #5f6368;
    letter-spacing: 0.01em;
    margin: 0 0 12px;
}

.portal-gate__loading-hint {
    font-size: 13px;
    color: #80868b;
    margin: 0;
}

.portal-gate__loading-hint[hidden] {
    display: none !important;
}

@keyframes portal-gate-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.88; transform: scale(0.98); }
}

html.portal-gate-pending {
    overflow: hidden;
}

html.portal-gate-pending body .main-ele {
    visibility: hidden;
}

body.portal-gate-active {
    overflow: hidden;
}
