/* "Take a photo" camera dialog (templates/_camera.html.twig, camera_controller.js). */
/* The wrapper adds nothing to layout: the button sits in its parent's row; the dialog is modal. */
.cam { display: contents; }
.cam-dialog { border: 0; padding: 0; border-radius: 15px; width: min(560px, calc(100% - 30px)); max-height: 92vh; overflow: auto;
    color: #142d52; background: #fff; box-shadow: 0 20px 60px #0f172a55; text-align: left; }
.cam-dialog::backdrop { background: #0f172a99; }
.cam-head { padding: 13px 16px; border-bottom: 1px solid #e1e8f1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cam-head b { font-size: 16px; }
.cam-body { padding: 16px; }
.cam-stage { border-radius: 12px; overflow: hidden; background: #0f172a; aspect-ratio: 3 / 2; }
.cam-stage.square { aspect-ratio: 1 / 1; max-width: 360px; margin: 0 auto; }
/* Centered "cover" crop, the same one the server makes when it saves the photo. */
.cam-stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cam-status { margin: 10px 0 0; font-size: 12px; color: #9a4b00; background: #fff6e8; border-radius: 9px; padding: 8px 11px; }
.cam-select { margin-top: 10px; font-size: 13px; }
.cam-note { margin: 8px 0 0; font-size: 11px; color: #68788d; text-align: center; }
.cam-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.cam-btn { border: 1px solid #e1e8f1; background: #fff; color: #142d52; border-radius: 10px; padding: 9px 14px; font-weight: 750; font-size: 12px; cursor: pointer; }
.cam-btn:hover { background: #f5f8fc; }
.cam-btn.primary { background: #1769e8; border-color: #1769e8; color: #fff; }
.cam-btn.primary:hover { background: #1054c4; }
.cam-btn:disabled { opacity: .55; cursor: not-allowed; }
@media print { .cam-dialog { display: none !important; } }
