/* Update warning banner + full-screen maintenance popup.
   Driven by maintenance-watch.js. Nothing here applies unless a class is added
   to <html>, so an idle system looks exactly the same as before. */

.hms-maint-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 16px;
    background: #b91c1c;
    color: #fff;
    font: 600 13.5px/1.35 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: .2px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.hms-maint-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fde68a;
    animation: hmsMaintPulse 1s ease-in-out infinite;
}

@keyframes hmsMaintPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .3; transform: scale(.75); }
}

/* Reserve the space the fixed banner covers, so no menu button hides under it. */
html.hms-warn-active body {
    padding-top: 40px !important;
    box-sizing: border-box;
}

/* Full-screen block. No close button on purpose: while the app is locked there is
   nothing safe to go back to. The background is fully opaque so the sole thing on
   screen is app_offline.htm - no part of the application is visible or clickable. */
.hms-maint-popup {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: flex;
    background: #0f172a;
}

.hms-maint-frame {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
}

html.hms-maint-locked {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .hms-maint-dot {
        animation: none;
    }
}
