@font-face {
    font-family: Roboto Clock;
    src: url(roboto-clock.woff2) format("woff2");
    font-weight: 400;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    background: transparent;
    color: #172f40;
    font: 14px system-ui, sans-serif;
}

.preview {
    display: grid;
    place-items: center;
    flex: 1;
    min-height: 0;
    container-type: size;
}

.phone {
    position: relative;
    width: min(100cqw, calc(100cqh * 1511 / 2896), 560px);
    aspect-ratio: 1511 / 2896;
}

.screen {
    /* The display rectangle and corner radius are in the frame template's image coordinates. */
    position: absolute;
    left: 12.11118%;
    top: 5.83564%;
    width: 75.77763%;
    height: 88.01796%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 9.26% / 4.16%;
    background: #fff;
}

.device-frame {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
}

.status-bar,
.navigation-bar {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #041739;
    background: #fff;
}

.status-bar {
    justify-content: space-between;
    /* Keep the frame’s camera cutout within the bar at larger preview sizes. */
    height: max(40px, 4.6%);
    padding-inline: 16px;
    font: 400 14px / 20px "Roboto Clock", Roboto, Arial, sans-serif;
    letter-spacing: 0.25px;
}

#composeApplication {
    flex: 1;
    min-height: 0;
}

.navigation-bar {
    justify-content: center;
    gap: clamp(0px, (100% - 3 * 44px - 2 * 48px) / 2, 64px);
    height: 48px;
}

#demo-back {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

#demo-back:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
    border-radius: 6px;
}

#demo-device-action {
    position: absolute;
    z-index: 1;
    bottom: 60px;
    left: 12px;
    max-width: calc(100% - 24px);
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid #d5e0dc;
    border-radius: 18px;
    background: #f4fbf8;
    color: #172f40;
    box-shadow: 0 2px 6px #172f4026;
    font: 600 12px system-ui, sans-serif;
    cursor: pointer;
}
