/* Portrait cropper: a fixed-shape frame (3:4 badge or square avatar) the photo is moved and zoomed under.
   Shared by web and DCM. DCM has no platform-chrome.css, so every token has a plain fallback. */
.pcrop {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}

.pcrop__frame {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: var(--pcrop-aspect, 3 / 4);
  overflow: hidden;
  border: 1px solid var(--ds-border-subtle, #ccc);
  border-radius: var(--ds-radius-md, 8px);
  background: var(--ds-bg-surface-2, #f2f2f2);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.pcrop__frame:active {
  cursor: grabbing;
}

.pcrop__frame:focus-visible {
  outline: 2px solid var(--ds-brand-primary, #1a56db);
  outline-offset: 2px;
}

.pcrop__img {
  position: absolute;
  max-width: none;
  height: auto;
  pointer-events: none;
}

.pcrop__zoom-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pcrop__zoom-label {
  font-size: var(--ds-text-sm, 13px);
  color: var(--ds-text-muted, #555);
}

.pcrop__zoom {
  flex: 1;
  min-width: 0;
}
