html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
}

body {
    position: relative;
}

#ComposeTarget {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
}

#ComposeTarget[hidden] {
    display: none;
}

#loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    z-index: 1;
}

#loading.web-bootstrap-error {
    flex-direction: column;
    gap: 16px;
    padding: max(24px, env(safe-area-inset-top, 0px)) 24px max(24px, env(safe-area-inset-bottom, 0px));
    overflow: auto;
    box-sizing: border-box;
    color: #253047;
    font-family: system-ui, sans-serif;
    text-align: center;
}

.web-bootstrap-error h1 {
    margin: 0;
    font-size: 1.4rem;
}

.web-bootstrap-error p {
    max-width: 34rem;
    margin: 0;
    line-height: 1.5;
}

#pixyalbum-bootstrap-error-code {
    color: #586174;
    font-size: 0.875rem;
}

.web-bootstrap-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.web-bootstrap-actions button {
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid #1f3dba;
    border-radius: 8px;
    background: #ffffff;
    color: #1f3dba;
    font: inherit;
    cursor: pointer;
}

.web-bootstrap-actions button:focus-visible {
    outline: 3px solid #1f3dba;
    outline-offset: 3px;
}

.web-bootstrap-noscript {
    position: fixed;
    inset: 0;
    z-index: 2;
    margin: 0;
    padding: 24px;
    display: grid;
    place-items: center;
    background: #ffffff;
    font-family: system-ui, sans-serif;
}

@supports (height: 100dvh) {
    html,
    body,
    #ComposeTarget {
        height: 100dvh;
    }
}

@media (prefers-reduced-motion: reduce) {
    #loading svg circle:last-child {
        display: none;
    }
}
