/* Self-contained crop editor, shared by member and native admin profile uploads. */
.pnwx-crop-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(480px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:24px;border:1px solid #d5c1a7;border-radius:18px;background:#fcf8f0;color:#392c24;box-shadow:0 28px 100px #21181055;overflow:auto;font:400 1rem/1.5 var(--pnwx-body,system-ui,sans-serif);}
.pnwx-crop-dialog::backdrop{background:#271c17bd;backdrop-filter:blur(6px);}
.pnwx-crop-dialog *{box-sizing:border-box;}
.pnwx-crop-heading{display:flex;align-items:start;justify-content:space-between;gap:12px;}
.pnwx-crop-heading>div{min-width:0;}
.pnwx-crop-heading .pnwx-crop-kicker{margin:0 0 6px;color:#876341;font-size:.75rem;font-weight:700;letter-spacing:.13em;}
.pnwx-crop-heading h2{margin:0;font:700 1.5rem/1.25 var(--pnwx-heading,system-ui,sans-serif);letter-spacing:-.015em;color:#392c24;}
.pnwx-crop-dialog button{font:700 1rem/1.4 var(--pnwx-body,system-ui,sans-serif);cursor:pointer;}
.pnwx-crop-dialog .pnwx-crop-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;margin:-10px -10px 0 0;border:0;border-radius:50%;background:transparent;color:#755b46;font-size:1.75rem;}
.pnwx-crop-dialog .pnwx-crop-copy{margin:14px 0 18px;font-size:1rem;line-height:1.5;color:#705a48;}
.pnwx-crop-stage{position:relative;width:min(100%,320px);aspect-ratio:1;margin:auto;overflow:hidden;border:1px solid #9b7c5a;border-radius:12px;background:#2d2722;cursor:grab;touch-action:none;user-select:none;}
.pnwx-crop-stage.is-moving{cursor:grabbing;}
.pnwx-crop-stage canvas{display:block;width:100%;height:100%;}
.pnwx-crop-face-guide{position:absolute;inset:8%;pointer-events:none;border:1px solid #fff5dfc9;border-radius:50%;box-shadow:0 0 0 160px #21171035;}
.pnwx-crop-zoom-heading{display:flex;justify-content:space-between;align-items:center;margin-top:18px;}
.pnwx-crop-zoom-heading label{margin:0;font-weight:700;}
.pnwx-crop-zoom-heading output{color:#705a48;font-variant-numeric:tabular-nums;}
.pnwx-crop-zoom{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:12px;margin-top:4px;}
.pnwx-crop-zoom button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #d6c3a9;border-radius:50%;background:#fffcf6;color:#63442e;font-size:1.3rem;}
.pnwx-crop-zoom input{display:block;min-width:0;width:100%;height:44px;margin:0;padding:0;border:0;background:transparent;accent-color:#72513a;}
.pnwx-crop-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;margin-top:6px;color:#77614d;font-size:.875rem;}
.pnwx-crop-meta button{min-height:44px;padding:6px 4px;border:0;background:transparent;color:#6c482e;text-decoration:underline;text-underline-offset:4px;}
.pnwx-crop-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr));gap:12px;margin-top:16px;padding-top:18px;border-top:1px solid #e2d3bf;}
.pnwx-crop-actions button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px;border:1px solid #cdb597;border-radius:8px;}
.pnwx-crop-actions .pnwx-crop-secondary{background:#fffcf6;color:#694932;}
.pnwx-crop-actions .pnwx-crop-primary{background:#60412f;color:#fff8ed;border-color:#60412f;}
.pnwx-crop-dialog button:hover{filter:brightness(.96);}
.pnwx-crop-dialog button:disabled{opacity:.5;cursor:default;}
.pnwx-crop-dialog :focus-visible{outline:3px solid #ac7b42;outline-offset:3px;}
.pnwx-crop-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
@media(max-width:380px){.pnwx-crop-dialog{padding:20px;}.pnwx-crop-heading h2{font-size:1.375rem;}.pnwx-crop-meta{font-size:.8125rem;}}
@media(max-height:650px){.pnwx-crop-dialog{padding:18px;}.pnwx-crop-stage{width:min(100%,240px);}.pnwx-crop-copy{margin-block:10px!important;}.pnwx-crop-zoom-heading{margin-top:10px;}.pnwx-crop-actions{margin-top:8px;padding-top:12px;}}
