.meal-identifier-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(88vw, 430px);
    max-height: 68vh;
    pointer-events: none;
    z-index: 30;
    border-radius: 1.75rem;
}

#globalCameraOverlay.camera-overlay-previewing #previewImage {
    z-index: 40;
    width: min(88vw, 420px);
    height: auto;
    max-height: min(46vh, 400px);
    border-radius: 1.9rem;
    background: #f2efe8;
    box-shadow: 0 18px 44px rgba(148, 163, 184, 0.2);
    object-fit: cover;
}

#globalCameraOverlay.camera-overlay-previewing {
    background: #FFFFFF;
    justify-content: flex-start;
    padding: 0;
}

#globalCameraOverlay.camera-overlay-previewing #closeCameraBtn {
    top: calc(14px + var(--safe-area-top, env(safe-area-inset-top)));
    right: auto;
    left: 20px;
    margin: 0;
    display: flex;
    height: 2.75rem;
    width: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9999px;
    background: #eef5fb;
    color: #0f172a;
    box-shadow: none;
    padding: 0;
}

#globalCameraOverlay.camera-overlay-previewing #previewHeader {
    flex: 0 0 auto;
}

#globalCameraOverlay.camera-overlay-previewing #previewHeader p {
    color: #64748b;
    font-size: clamp(1.15rem, 5vw, 1.35rem);
    line-height: 1.35;
}

#globalCameraOverlay.camera-overlay-previewing #previewActions {
    margin-top: auto;
    pointer-events: auto;
}

#globalCameraOverlay.camera-overlay-previewing #confirmCaptureBtn {
    max-width: none;
}

/* Processing state */
#globalCameraOverlay.camera-overlay-processing {
    background: #FFFFFF;
    justify-content: flex-start;
    padding: 0;
}
