.profile-cropper {
  margin-top: .9rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.profile-cropper[hidden] { display: none; }
.profile-cropper-title { margin: 0 0 .35rem; font-size: .9rem; }
.profile-cropper-help, .profile-cropper-result { margin: .3rem 0 .8rem; color: var(--muted); font-size: .75rem; }
.profile-cropper-viewport {
  position: relative;
  isolation: isolate;
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin: .75rem auto;
  border: 2px solid var(--accent);
  border-radius: 10px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  cursor: grab;
  background-color: #ddd;
  background-image: linear-gradient(45deg, #bbb 25%, transparent 25%), linear-gradient(-45deg, #bbb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #bbb 75%), linear-gradient(-45deg, transparent 75%, #bbb 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.profile-cropper-viewport:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.profile-cropper-viewport.is-dragging { cursor: grabbing; }
.profile-cropper-viewport .profile-cropper-image {
  position: absolute;
  display: block;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  pointer-events: none;
  user-select: none;
}
.profile-cropper-grid {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, transparent calc(33.333% - .5px), #fff4 33.333%, transparent calc(33.333% + .5px), transparent calc(66.666% - .5px), #fff4 66.666%, transparent calc(66.666% + .5px)), linear-gradient(to bottom, transparent calc(33.333% - .5px), #fff4 33.333%, transparent calc(33.333% + .5px), transparent calc(66.666% - .5px), #fff4 66.666%, transparent calc(66.666% + .5px));
}
.profile-cropper-controls { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.profile-cropper-zoom { display: flex; align-items: center; gap: .5rem; min-width: 0; flex: 1 1 9rem; font-size: .8rem; }
.profile-cropper-zoom input { width: 100%; min-width: 0; accent-color: var(--accent); }
.profile-cropper-zoom-value { min-width: 2.8rem; font-size: .75rem; color: var(--muted); }
.profile-cropper-controls button, .profile-cropper-movement button { padding: .38rem .6rem; font-size: .75rem; }
.profile-cropper-movement { display: flex; justify-content: center; gap: .35rem; margin-top: .65rem; }
.profile-cropper-result { margin-bottom: 0; text-align: center; }
@media (max-width: 480px) {
  .profile-cropper { padding: .65rem; }
  .profile-cropper-controls { gap: .45rem; }
  .profile-cropper-controls > button { flex-basis: 100%; }
}
