:root {
    color-scheme: light;
    --primary: #1d4ed8;
    --text-muted: #6b7280;
    --page-background: #f9fafb;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--page-background);
    color: #ffffff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

.app-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    background: linear-gradient(135deg, #203981 0%, #1365d5 100%);
}

.maintenance-screen {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
}

.maintenance-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(2.5rem, env(safe-area-inset-top)) 2rem 3rem;
    text-align: center;
}

.app-icon {
    display: grid;
    width: 5rem;
    height: 5rem;
    margin-bottom: 0.85rem;
    border-radius: 1.5rem;
    background: var(--primary);
    box-shadow: 0 4px 20px -2px rgba(0, 32, 82, 0.32);
    place-items: center;
}

.app-icon svg {
    width: 2.35rem;
    height: 2.35rem;
    fill: currentColor;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 3.25rem;
    font-size: clamp(1.9rem, 9vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.maintenance-message {
    width: 100%;
    max-width: 22rem;
}

.status-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.status-label::before {
    width: 0.5rem;
    height: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: #fbbf24;
    content: "";
}

h2 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}

.maintenance-message > p:last-child {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    line-height: 1.6;
}

footer {
    display: flex;
    min-height: calc(4.5rem + env(safe-area-inset-bottom));
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom));
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

@media (min-width: 448px) {
    .app-shell {
        max-width: 28rem;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
    }
}

@media (max-height: 650px) {
    .maintenance-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .app-icon {
        width: 4.25rem;
        height: 4.25rem;
    }

    h1 {
        margin-bottom: 2rem;
    }

}

