/* Code to Image (/code-to-image). The picture is drawn on the canvas. Panels, buttons, fields
   and the chrome colours come from the app kit. Loaded only on this page. */

.cti-landing-app > .ak-stage > * {
    align-self: stretch;
}

.cti-landing-app .cti-board {
    padding: 0.4rem;
    overflow: hidden;
}

/* The canvas is the picture at its own width (the script sets it), centred in the frame. */
.cti-landing-app .cti-frame {
    display: flex;
    flex-direction: column;
    min-height: 12rem;
    max-height: min(72vh, 44rem);
    overflow: auto;
    border-radius: var(--ak-radius);
}

.cti-landing-app .cti-canvas {
    display: block;
    flex: 0 0 auto;
    max-width: none;
    margin: auto;
}

.cti-landing-app .cti-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.cti-landing-app .cti-value {
    color: var(--ak-text);
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.cti-landing-app textarea.ak-editor {
    min-height: 9rem;
    max-height: 16rem;
}

@media (max-width: 960px) {
    body.filter-app-mode .cti-landing-app.ak-app > .filter-landing-stage.ak-stage {
        height: calc(100dvh - var(--seo-chrome-height, 4.75rem) - 8.5rem) !important;
        max-height: none !important;
        overflow: hidden !important;
    }

    body.filter-app-mode .cti-landing-app .cti-board {
        flex: 1 1 0;
        min-height: 0;
    }

    body.filter-app-mode .cti-landing-app .cti-frame {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
        max-height: none;
    }
}
