/* Photo editor window (js/features/photo-cropper.js), for member and staff pages alike. */
html.photo-cropper-open,html.photo-cropper-open body{overflow:hidden}
.photo-cropper{position:fixed;inset:0;z-index:400;display:grid;place-items:center;padding:16px;background:rgba(5,2,10,.72);backdrop-filter:blur(4px);color:#f6eefc;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.photo-cropper-card{width:min(440px,100%);max-height:calc(100vh - 32px);overflow-y:auto;border-radius:26px;background:#1a0f29;border:1px solid rgba(255,255,255,.12);padding:20px;box-shadow:0 30px 80px rgba(0,0,0,.6)}
.photo-cropper-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.photo-cropper-head h2{margin:0;font-size:20px;color:#fff}
.photo-cropper-hint{margin:6px 0 12px;font-size:13px;line-height:1.45;color:#b9a8cc}
.photo-cropper button{font-family:inherit;cursor:pointer;color:#fff}
.photo-cropper button:disabled{opacity:.4;cursor:not-allowed}
.photo-cropper :focus-visible{outline:2px solid #ff4f9a;outline-offset:2px}
.photo-cropper-close{width:36px;height:36px;flex:0 0 auto;border-radius:50%;border:0;background:rgba(255,255,255,.08);font-size:16px}
.photo-cropper-stage{width:min(100%,320px,calc((100vh - 390px) * .8));width:min(100%,320px,calc((100dvh - 390px) * .8));min-width:180px;aspect-ratio:4/5;margin:0 auto;border-radius:18px;overflow:hidden;background:#0b0612;box-shadow:0 0 0 2px rgba(255,79,154,.55)}
.photo-cropper-stage canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none}
.photo-cropper-stage canvas:active{cursor:grabbing}
.photo-cropper-zoom{display:flex;align-items:center;gap:10px;margin:14px 0 10px}
.photo-cropper-zoom input{flex:1;accent-color:#ff4f9a}
.photo-cropper-icon{width:38px;height:38px;flex:0 0 auto;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);font-size:18px;line-height:1}
.photo-cropper-tools{display:flex;gap:6px}
.photo-cropper-tool{flex:1 1 auto;min-height:40px;padding:6px 8px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);font-size:12px;font-weight:700;white-space:nowrap}
.photo-cropper-tool[aria-pressed="true"]{border-color:#ff4f9a;background:rgba(255,79,154,.16)}
.photo-cropper-pad{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:10px}
.photo-cropper-pad span{margin-right:6px;font-size:12px;color:#b9a8cc}
.photo-cropper-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;margin-top:16px}
.photo-cropper-cancel,.photo-cropper-apply{min-height:48px;border-radius:999px;font-weight:800;font-size:15px}
.photo-cropper-cancel{border:1px solid rgba(255,255,255,.18);background:transparent}
.photo-cropper-apply{border:0;background:linear-gradient(135deg,#ff4f9a,#8b3dff);box-shadow:0 10px 24px rgba(255,79,154,.35)}
@media (max-width:520px){
  .photo-cropper{align-items:end;padding:0}
  .photo-cropper-card{width:100%;max-height:96vh;border-radius:26px 26px 0 0;padding:16px 16px calc(18px + env(safe-area-inset-bottom))}
  .photo-cropper-stage{width:min(100%,300px,calc((100vh - 370px) * .8));width:min(100%,300px,calc((100dvh - 370px) * .8))}
  .photo-cropper-tool{font-size:11px}
}
