/* v3.8.1 — keep camera inside the PWA to avoid Android external-app memory pressure. */
.mboard-camera[hidden],.mboard-draft-notice[hidden]{display:none!important}
.mboard-camera{position:fixed;inset:0;z-index:99998;background:#0b0e12;color:white;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;padding:calc(16px + env(safe-area-inset-top,0px)) 12px calc(24px + env(safe-area-inset-bottom,0px));box-sizing:border-box}
.mboard-camera-head,.mboard-camera-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:800px;width:100%;margin:0 auto}
.mboard-camera-head strong{font-size:18px}
.mboard-camera-head button{background:transparent;color:white;border:1px solid #ffffff66;border-radius:12px;padding:10px 14px;font-size:20px}
.mboard-camera video{display:block;object-fit:contain;max-width:100%;width:100%;height:calc(100dvh - 220px);background:black;border-radius:12px}
.mboard-camera p{font-size:13px;color:#ccd0d6;text-align:center;margin:8px 0}
.mboard-camera-foot{justify-content:center}
.mboard-camera-foot button{min-width:180px;min-height:50px;font-size:17px;background:#FFC300;color:#17191c;border:0;border-radius:14px;font-weight:800}
.mboard-draft-notice{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff7d3;border:1px solid #f4d550;padding:12px;border-radius:10px;margin:0 0 14px;color:#463709;font-size:14px}
.mboard-draft-notice button{flex:none;padding:9px 12px;border-color:#dfb700}

/* v3.8.2 — review and annotate progress photos before the existing photo-only save. */
.progress-gallery-row{padding:0 16px}.progress-gallery-row:has(button[hidden]){display:none}.progress-gallery-row button{width:100%;margin:4px 0;font-size:13px;min-height:36px}
#progressPreviewModal{z-index:180}#photoEditModal{z-index:190}.progress-preview-modal{width:min(640px,100%)}
#progressPreviewImage{display:block;width:100%;max-height:48dvh;object-fit:contain;background:#17191c;border-radius:10px}
.progress-preview-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.progress-preview-actions button{min-height:42px}
@media(max-width:650px){#progressPreviewModal.modal-backdrop,#photoEditModal.modal-backdrop{position:fixed;inset:0;align-items:center;justify-content:center;padding:8px;overflow:hidden}#progressPreviewModal .modal,#photoEditModal .modal{max-height:calc(100dvh - 16px);width:100%;display:flex;flex-direction:column}#progressPreviewModal .form-body,#photoEditModal .form-body{overflow:auto;min-height:0}#progressPreviewModal .modal-footer,#photoEditModal .modal-footer{flex-shrink:0}}
