.nx-photo-v207 .nx-photo-choices{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:8px 0 10px}
.nx-photo-v207 .nx-photo-action,.nx-photo-v207 .nx-photo-upload-label{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 14px;border:1px solid #292d77;background:#292d77;color:#fff;font-size:14px;font-weight:600;line-height:1.3;border-radius:5px;cursor:pointer;text-align:center;box-sizing:border-box}
.nx-photo-v207 .nx-photo-upload-label{background:#fff;color:#292d77}.nx-photo-v207 .nx-photo-or{font-size:12px;color:#64748b}
.nx-photo-v207 #photoUpload{position:absolute;width:1px;height:1px;opacity:0;clip-path:inset(50%)}
.nx-photo-v207 .nx-photo-upload-label:focus-visible{outline:3px solid #a5b4fc;outline-offset:3px}
.nxphoto-overlay{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex!important;align-items:center;justify-content:center;background:rgba(9,16,43,.77);padding:16px;overflow-y:auto;box-sizing:border-box}
.nxphoto-dialog{background:#fff;color:#172554;display:flex;flex-direction:column;gap:10px;box-sizing:border-box;border-radius:8px;padding:16px;width:min(100%,450px);max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 15px 45px #09102b66}
.nxphoto-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.nxphoto-dialog h2{font-size:19px;margin:0;font-weight:700}.nxphoto-dialog p{font-size:12px;line-height:1.5;margin:0;color:#475569}
.nxphoto-heading button{font-size:25px;border:0;background:transparent;color:#334155;cursor:pointer;min-width:36px;min-height:36px}
.nxphoto-dialog canvas{display:block;touch-action:none;cursor:grab;max-height:min(49dvh,450px);max-width:100%;aspect-ratio:4/5;margin:auto;border:1px solid #cbd5e1;background:#e2e8f0}
.nxphoto-dialog label{font-weight:600;font-size:13px}.nxphoto-dialog input[type=range]{width:100%;accent-color:#292d77}
.nxphoto-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.nxphoto-actions button{min-height:43px;border-radius:5px;border:1px solid #292d77;background:#fff;color:#292d77;font-weight:600;cursor:pointer}
.nxphoto-actions [data-save]{background:#292d77;color:white}.nxphoto-actions button:disabled{opacity:.6;cursor:wait}.nxphoto-dialog :focus-visible{outline:3px solid #818cf8;outline-offset:2px}
@media(max-width:420px){.nx-photo-v207 .nx-photo-action,.nx-photo-v207 .nx-photo-upload-label{flex:1 1 130px}.nx-photo-v207 .nx-photo-or{display:none}.nxphoto-dialog{padding:12px}}

/* V209: live camera dialog, responsive and accessible. */
.nxphoto-camera-dialog{width:min(100%,540px);gap:12px}
.nxphoto-camera-frame{position:relative;display:grid;place-items:center;width:100%;min-height:180px;aspect-ratio:4/3;background:#10192e;border-radius:5px;overflow:hidden}
.nxphoto-camera-frame video{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:contain;background:#10192e}
.nxphoto-camera-placeholder{position:relative;z-index:1;color:#fff;font-size:14px;pointer-events:none;text-align:center;padding:12px}
.nxphoto-camera-placeholder[hidden],.nxphoto-device-label[hidden]{display:none!important}
.nxphoto-device-label{display:flex;flex-direction:column;gap:5px;color:#172554;font-size:13px}
.nxphoto-device-label select{width:100%;min-height:42px;padding:7px 10px;border:1px solid #cbd5e1;border-radius:4px;background:#fff;color:#172554;font-size:14px}
.nxphoto-camera-status{min-height:1.6em;color:#475569!important}
.nxphoto-camera-help{font-size:12px;color:#64748b!important}
.nxphoto-camera-dialog .nxphoto-actions [data-camera-shoot]{background:#292d77;color:#fff}
.nxphoto-camera-dialog .nxphoto-actions [data-camera-shoot]:disabled{opacity:.5}
@media(max-width:480px){.nxphoto-camera-dialog{width:100%}.nxphoto-camera-frame{min-height:160px;aspect-ratio:3/4}.nxphoto-camera-frame video{object-fit:contain}}
