.cstdc-maintenance-banner.d-none {
    display: none !important;
}

.cstdc-maintenance-banner {
    align-items: center;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 1px solid #ffdf7e;
    border-left: 5px solid #f59f00;
    border-radius: 12px;
    bottom: 16px;
    box-shadow: 0 8px 30px rgba(36, 44, 60, 0.18);
    color: #5f4200;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: space-between;
    left: 50%;
    max-width: 720px;
    padding: 10px 14px;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    z-index: 1055;
}

.cstdc-maintenance-banner.is-active {
    background: linear-gradient(135deg, #fff0f0 0%, #ffe4e4 100%);
    border-color: #ffb3b3;
    border-left-color: #dc3545;
    color: #6b1f26;
}

.cstdc-maintenance-banner__content {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.cstdc-maintenance-banner__icon {
    align-items: center;
    background: rgba(245, 159, 0, 0.14);
    border-radius: 50%;
    color: #f59f00;
    display: inline-flex;
    flex: 0 0 32px;
    font-size: .85rem;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.is-active .cstdc-maintenance-banner__icon {
    animation: cstdc-maintenance-pulse 2s infinite;
    background: rgba(220, 53, 69, 0.14);
    color: #dc3545;
}

@keyframes cstdc-maintenance-pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.35); }
    70% { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.cstdc-maintenance-banner__title-block {
    flex: 1;
    min-width: 0;
}

.cstdc-maintenance-banner__title {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
}

.cstdc-maintenance-banner__badges {
    display: inline-flex;
    gap: 5px;
}

.cstdc-maintenance-banner__badge {
    border-radius: 999px;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 2px 6px;
    text-transform: uppercase;
}

.cstdc-maintenance-banner__badge--active {
    background: #dc3545;
    color: #fff;
}

.cstdc-maintenance-banner__badge--scheduled {
    background: #f59f00;
    color: #fff;
}

.cstdc-maintenance-banner__badge--developer {
    background: #0d6efd;
    color: #fff;
}

.cstdc-maintenance-banner__reason {
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cstdc-maintenance-banner__countdown {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 110px;
    text-align: right;
}

.cstdc-maintenance-banner__countdown-label {
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cstdc-maintenance-banner__countdown-value {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1.2;
}

.cstdc-maintenance-banner__countdown-end {
    font-size: .7rem;
    opacity: 0.85;
}

.cstdc-maintenance-banner__progress {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    flex-basis: 100%;
    height: 4px;
    margin-top: 2px;
    overflow: hidden;
    width: 100%;
}

.cstdc-maintenance-banner__progress-bar {
    background: currentColor;
    border-radius: 999px;
    display: block;
    height: 100%;
    transition: width 1s linear;
    width: 100%;
}

.is-active .cstdc-maintenance-banner__progress-bar {
    background: #dc3545;
}

.cstdc-login-visual {
    display: block;
    min-height: 350px;
    width: 100%;
}

.cstdc-login-illustration,
.cstdc-login-maintenance {
    width: 100%;
}

.cstdc-login-illustration .contact-img-inner {
    width: 100%;
}

.cstdc-login-visual--maintenance {
    min-height: 320px;
}

.cstdc-login-illustration--hidden {
    display: none !important;
}

.cstdc-maintenance-banner--inline {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    bottom: auto;
    box-shadow: none;
    color: #17324d;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
    left: auto;
    margin: 0;
    max-width: 100%;
    min-height: 350px;
    overflow: hidden;
    padding: 32px 24px;
    position: relative !important;
    right: auto;
    text-align: center;
    top: auto;
    transform: none !important;
    width: 100%;
}

.cstdc-maintenance-banner.cstdc-maintenance-banner--inline {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.cstdc-maintenance-banner--inline::before {
    animation: cstdc-maintenance-blob 10s ease-in-out infinite alternate;
    background: radial-gradient(circle at 30% 25%, rgba(13, 110, 253, 0.18), rgba(255, 255, 255, 0.92) 54%, rgba(225, 239, 255, 0.76) 100%);
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    content: '';
    height: 88%;
    left: 6%;
    position: absolute;
    top: 6%;
    width: 88%;
    z-index: 0;
}

.cstdc-maintenance-banner--inline::after {
    animation: cstdc-maintenance-orbit 7s ease-in-out infinite;
    border: 1px solid rgba(13, 110, 253, 0.18);
    border-radius: 50%;
    content: '';
    height: 92px;
    position: absolute;
    right: 10%;
    top: 8%;
    width: 92px;
    z-index: 0;
}

.cstdc-maintenance-banner--inline.is-active {
    color: #5b2028;
}

.cstdc-maintenance-banner--inline.is-active::before {
    background: radial-gradient(circle at 30% 25%, rgba(220, 53, 69, 0.14), rgba(255, 255, 255, 0.94) 54%, rgba(255, 232, 234, 0.78) 100%);
    border-color: rgba(220, 53, 69, 0.14);
}

.cstdc-maintenance-banner--inline.is-active::after {
    border-color: rgba(220, 53, 69, 0.2);
}

@keyframes cstdc-maintenance-blob {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: scale(0.98) rotate(-1deg); }
    25% { border-radius: 35% 65% 27% 73% / 71% 25% 75% 29%; }
    50% { border-radius: 41% 59% 45% 55% / 32% 21% 79% 68%; transform: scale(1.02) rotate(1deg); }
    75% { border-radius: 69% 31% 39% 61% / 70% 83% 17% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: scale(0.98) rotate(-1deg); }
}

@keyframes cstdc-maintenance-orbit {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: .55; }
    50% { transform: translate(-16px, 12px) scale(1.16); opacity: .95; }
}

.cstdc-maintenance-banner--inline > * {
    position: relative;
    z-index: 1;
}

.cstdc-maintenance-banner--inline .cstdc-maintenance-banner__content {
    align-items: center;
    flex-direction: column;
    gap: 0;
    max-width: 360px;
}

.cstdc-maintenance-banner--inline .cstdc-maintenance-banner__icon {
    display: none;
}

.cstdc-maintenance-banner--inline .cstdc-maintenance-banner__title-block {
    width: 100%;
}

.cstdc-maintenance-banner--inline .cstdc-maintenance-banner__title {
    justify-content: center;
    font-size: 1.25rem;
}

.cstdc-maintenance-banner--inline .cstdc-maintenance-banner__reason {
    font-size: .92rem;
    line-height: 1.5;
    margin-top: 10px;
    max-width: 340px;
    overflow: visible;
    white-space: normal;
}

.cstdc-maintenance-banner--inline .cstdc-maintenance-banner__meta {
    margin-top: 8px;
}

.cstdc-maintenance-banner--inline .cstdc-maintenance-banner__countdown {
    align-items: center;
    background: transparent;
    border: 0;
    flex-basis: auto;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
    min-width: 0;
    padding: 0;
    text-align: center;
    width: auto;
}

.cstdc-maintenance-banner--inline .cstdc-maintenance-banner__countdown-label {
    font-size: .7rem;
}

.cstdc-maintenance-banner--inline .cstdc-maintenance-banner__countdown-value {
    font-size: 1.7rem;
}

.cstdc-maintenance-banner--inline .cstdc-maintenance-banner__countdown-end {
    font-size: .72rem;
}

.cstdc-maintenance-banner--inline .cstdc-maintenance-banner__progress {
    flex-basis: auto;
    margin-top: -4px;
    max-width: 220px;
    width: 70%;
}

.cstdc-login-maintenance {
    display: block;
    width: 100%;
}

.cstdc-login-maintenance:empty {
    display: none;
}

@media (max-width: 991.98px) {
    .cstdc-login-visual {
        min-height: 0;
    }

    .cstdc-login-illustration {
        display: none !important;
    }

    .cstdc-maintenance-banner--inline {
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    .cstdc-maintenance-banner {
        border-radius: 10px;
        bottom: 12px;
        gap: 8px 12px;
        padding: 10px 12px;
        width: calc(100% - 24px);
    }

    .cstdc-maintenance-banner__countdown {
        align-items: flex-start;
        flex-basis: 100%;
        flex-direction: row;
        gap: 8px;
        justify-content: space-between;
        text-align: left;
        width: 100%;
    }

    .cstdc-maintenance-banner__countdown-label {
        display: none;
    }
}
