html,
body,
#composeApplication {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow: hidden;
}

.startup-loader {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: grid;
    place-items: center;
    background: #f8fbff;
    opacity: 1;
    transition: opacity 260ms ease;
}

.startup-loader-mark {
    position: relative;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
}

.startup-loader-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.startup-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background:
        conic-gradient(from 90deg, #15803d 0deg, #38bdf8 110deg, rgba(21, 128, 61, 0.14) 112deg),
        radial-gradient(circle, transparent 58%, #ffffff 59%);
    animation: startup-loader-spin 1s linear infinite;
}

.startup-loader-ring::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: inherit;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.compose-ready .startup-loader {
    opacity: 0;
    pointer-events: none;
}

@keyframes startup-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .startup-loader-mark {
        width: 96px;
        height: 96px;
    }

    .startup-loader-logo {
        width: 62px;
        height: 62px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .startup-loader,
    .startup-loader-ring {
        transition: none;
        animation: none;
    }
}

.cookie-consent-banner,
.cookie-settings-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2147483000;
    display: none;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #162033;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cookie-consent-banner.is-visible,
.cookie-settings-panel.is-visible {
    display: block;
}

.cookie-consent-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.cookie-consent-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #475569;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.cookie-consent-button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #162033;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.cookie-consent-button.primary {
    border-color: #15803d;
    background: #15803d;
    color: #ffffff;
}

.cookie-settings-trigger {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2147482999;
    display: none;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #162033;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.cookie-settings-trigger.is-visible {
    display: inline-flex;
    align-items: center;
}
