/* Shared by the live portal and the self-contained nginx fallback. */
.yt-maintenance {
  box-sizing: border-box; position: fixed; inset: 0; z-index: 2147483647;
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0;
  border: 0; padding: 32px 20px; overflow: auto; color: #181626;
  background: radial-gradient(ellipse at 15% 5%, #eeebfb, transparent 55%), #f8f8fc;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.yt-maintenance[open], .yt-maintenance-page { display: grid; place-items: center; }
.yt-maintenance::backdrop { background: #f8f8fc; }
.yt-maintenance * { box-sizing: border-box; }
.yt-maintenance-card {
  width: min(100%, 560px); padding: 44px; background: #fff;
  border: 1px solid #e7e4f0; border-radius: 20px; box-shadow: 0 20px 70px #1816260d;
}
.yt-maintenance-brand { margin: 0 0 38px; font-size: 22px; font-weight: 800; letter-spacing: -.8px; }
.yt-maintenance-brand span { display: block; margin-top: 3px; color: #847f97; font-size: 12px; font-weight: 500; letter-spacing: 1.3px; text-transform: uppercase; }
.yt-maintenance-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 24px; border-radius: 18px; background: #eeebfb; color: #5b4bd6; }
.yt-maintenance-icon svg { width: 30px; height: 30px; }
.yt-maintenance h1 { margin: 0 0 16px; font-size: clamp(28px, 5vw, 36px); line-height: 1.2; letter-spacing: -1px; font-weight: 650; }
.yt-maintenance p { margin: 0 0 20px; color: #625d76; }
.yt-maintenance-status { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.yt-maintenance-dot { flex: 0 0 8px; height: 8px; border-radius: 50%; background: #5b4bd6; animation: yt-maintenance-pulse 2s ease-in-out infinite; }
.yt-maintenance button { padding: 11px 20px; border: 1px solid #5b4bd6; border-radius: 8px; background: #5b4bd6; color: white; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.yt-maintenance button:hover { background: #4536b0; }
.yt-maintenance button:focus-visible { outline: 3px solid #cfc8f4; outline-offset: 3px; }
.yt-maintenance button:disabled { opacity: .65; cursor: wait; }
.yt-maintenance .yt-maintenance-note { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid #e7e4f0; font-size: 13px; }
@keyframes yt-maintenance-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .yt-maintenance-dot { animation: none; } }
@media (max-width: 480px) { .yt-maintenance-card { padding: 28px; } }
