html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    background: #f6f1e7;
}

#compose-root {
    width: 100%;
    height: 100%;
}

#loading {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading svg {
    opacity: 0.8;
}

canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    outline: none;
}

body.avion-video-open {
    overflow: hidden;
}

.avion-video-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(25, 24, 20, 0.72);
    box-sizing: border-box;
}

.avion-video-modal.is-open {
    display: flex;
}

.avion-video-panel {
    width: min(900px, 86vw);
    max-height: calc(100vh - 48px);
    padding: 18px;
    border-radius: 28px;
    background: #f6f1e7;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.avion-video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.avion-video-title {
    color: #262722;
    font-size: 24px;
    font-weight: 900;
}

.avion-video-close {
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    background: #e7ded1;
    color: #262722;
    font-weight: 900;
    cursor: pointer;
}

.avion-video-frame {
    display: block;
    width: 100%;
    height: min(50.625vw, calc(100vh - 170px), 506px);
    min-height: 220px;
    border: 0;
    border-radius: 20px;
    background: #000;
}

.avion-audio-player {
    width: 100%;
    height: 42px;
    border-radius: 999px;
    background: #f0e9da;
    color: #ad765b;
    accent-color: #ad765b;
}

.avion-audio-player::-webkit-media-controls-panel {
    background: #f0e9da;
}

.avion-audio-player::-webkit-media-controls-play-button,
.avion-audio-player::-webkit-media-controls-mute-button {
    background-color: #e2dccf;
    border-radius: 50%;
}

.avion-audio-player::-webkit-media-controls-current-time-display,
.avion-audio-player::-webkit-media-controls-time-remaining-display {
    color: #262722;
    font-weight: 700;
}

.avion-audio-player::-webkit-media-controls-timeline,
.avion-audio-player::-webkit-media-controls-volume-slider {
    filter: sepia(35%) saturate(170%) hue-rotate(330deg);
}
