.rysena-maintenance-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(10, 28, 49, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rysena-maintenance-overlay[hidden] {
    display: none;
}

html.rysena-maintenance-active,
html.rysena-maintenance-active body {
    overflow: hidden !important;
}

.rysena-maintenance-dialog {
    width: min(560px, 100%);
    padding: clamp(30px, 6vw, 54px);
    border: 1px solid #d5e1ef;
    border-radius: 28px;
    color: #17263c;
    background: #f8fbff;
    box-shadow: 0 30px 80px rgba(8, 25, 46, 0.28);
    text-align: center;
}

.rysena-maintenance-mark {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 22px;
    border-radius: 22px;
    color: #2375e5;
    background: #e5f0ff;
}

.rysena-maintenance-mark svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rysena-maintenance-eyebrow {
    margin: 0 0 10px;
    color: #2375e5;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.rysena-maintenance-dialog h2 {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    line-height: 1.18;
}

.rysena-maintenance-message {
    margin: 16px auto 0;
    max-width: 430px;
    color: #61758e;
    font-size: 1rem;
    line-height: 1.65;
}

.rysena-maintenance-countdown {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 24px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #176b49;
    background: #e6f7ef;
    font-size: 0.88rem;
    font-weight: 700;
}

.rysena-maintenance-countdown strong {
    min-width: 2ch;
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
}

.rysena-maintenance-note {
    margin: 18px 0 0;
    color: #7a8da4;
    font-size: 0.82rem;
}

html[data-theme="dark"] .rysena-maintenance-overlay {
    background: rgba(3, 12, 24, 0.86);
}

html[data-theme="dark"] .rysena-maintenance-dialog {
    border-color: #29415f;
    color: #eef5ff;
    background: #101f32;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .rysena-maintenance-mark {
    color: #7db4ff;
    background: #17365c;
}

html[data-theme="dark"] .rysena-maintenance-eyebrow {
    color: #7db4ff;
}

html[data-theme="dark"] .rysena-maintenance-message {
    color: #b5c5d9;
}

html[data-theme="dark"] .rysena-maintenance-countdown {
    color: #8ee0bd;
    background: #153c30;
}

html[data-theme="dark"] .rysena-maintenance-note {
    color: #91a6bf;
}

@media (max-width: 560px) {
    .rysena-maintenance-overlay { padding: 14px; }
    .rysena-maintenance-dialog { border-radius: 22px; }
}

