/* The crop dialog (js/photo-crop.js) and the buttons that open it. */
.pc-dialog { width: min(92vw, 420px); max-height: 96dvh; padding: 0; border: 1px solid var(--hm-line); border-radius: 20px; background: var(--hm-card); color: var(--hm-ink); }
.pc-dialog::backdrop { background: rgba(0, 0, 0, .65); }
.pc-in { display: grid; gap: 14px; padding: 22px; }
.pc-in h2 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.pc-hint { margin: 0; color: var(--hm-body); font-size: .9375rem; }
.pc-stage { position: relative; overflow: hidden; width: min(100%, 58dvh); aspect-ratio: 1; margin-inline: auto; border-radius: 14px; background: #000; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.pc-stage:active { cursor: grabbing; }
.pc-stage:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.pc-img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.pc-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .55), inset 0 0 0 2px #fff; pointer-events: none; }
.pc-zoom { display: flex; align-items: center; gap: 12px; font-size: .9375rem; font-weight: 600; }
.pc-zoom input { flex: 1; min-width: 0; accent-color: var(--orange); }
.pc-error { margin: 0; color: var(--error); } .pc-error:empty { display: none; }
.pc-acts { display: flex; justify-content: flex-end; gap: 10px; }
.pc-acts .pg-btn { min-height: 46px; }
.pc-file { display: none; }
.pf-face { display: grid; flex: none; justify-items: center; gap: 12px; }
.pf-crop { min-height: 32px; padding: 4px 12px; border: 1px solid var(--field-line); border-radius: 99px; background: none; color: var(--hm-ink); cursor: pointer; font: inherit; font-size: .8125rem; font-weight: 600; }
.pf-crop:hover { border-color: var(--orange); }
.pf-crop:disabled { opacity: .6; cursor: wait; }
.pe-crop { position: absolute; right: 8px; bottom: 8px; padding: 4px 10px; border: 0; border-radius: 99px; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 700; }
