/* Passport photo maker (/passport-photo-maker): the photo at its true shape on the focus stage, a drag moves it, the
   status line over its foot while the face and the person are found. Tiles, panels and buttons come from the app kit
   (css/app-kit, docs/app-kit.md). Loaded only on this app's page (StylePaths). */

.pp-landing-app .pp-frame {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
}

.pp-landing-app .pp-canvas {
    display: block;
    width: 100%;
    flex: 1 1 0;
    min-height: 260px;
    cursor: grab;
    touch-action: none;
}

.pp-landing-app .pp-canvas.is-dragging { cursor: grabbing; }

.pp-landing-app .pp-status {
    position: absolute;
    inset-inline: 0;
    bottom: 14px;
    width: max-content;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--ak-overlay, rgba(255, 255, 255, 0.94));
    border: 1px solid var(--ak-overlay-border, rgba(15, 23, 42, 0.12));
    box-shadow: var(--ak-overlay-shadow, 0 4px 16px rgba(15, 23, 42, 0.16));
    color: var(--ak-text);
    font-size: var(--ak-fs-sm, 0.85rem);
    text-align: center;
    pointer-events: none;
}

.pp-landing-app .pp-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--ak-space-2, 0.5rem); }

/* A figure outside the rules reads as a warning. */
.pp-landing-app .ak-stat.pp-bad .ak-stat-hint { color: var(--ak-warning); font-weight: 600; }
