.ic-crop-controls fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.ic-crop-controls .ic-field-pair {
  gap: 12px;
}
.ic-crop-controls input[type='number'] {
  font-variant-numeric: tabular-nums;
}
.ic-crop-quick-actions,
.ic-crop-history,
.ic-crop-transform-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.ic-crop-quick-actions .ic-text-button {
  grid-column: 1/-1;
}
.ic-crop-history button,
.ic-crop-transform-actions button {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  font-size: 11px;
  padding: 8px;
}
.ic-crop-transform-actions button {
  flex-direction: column;
  line-height: 1.5;
}
.ic-crop-transform-actions i {
  font-size: 18px;
}
.ic-crop-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  touch-action: none;
}
.ic-crop-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  fill: #070d1c;
}
.ic-crop-selection {
  position: absolute;
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px #1119;
  cursor: move;
  touch-action: none;
}
.ic-crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      transparent calc(33.333% - 0.5px),
      #fff8 33.333%,
      transparent calc(33.333% + 0.5px),
      transparent calc(66.666% - 0.5px),
      #fff8 66.666%,
      transparent calc(66.666% + 0.5px)
    ),
    linear-gradient(
      to bottom,
      transparent calc(33.333% - 0.5px),
      #fff8 33.333%,
      transparent calc(33.333% + 0.5px),
      transparent calc(66.666% - 0.5px),
      #fff8 66.666%,
      transparent calc(66.666% + 0.5px)
    );
}
.ic-crop-selection[data-grid='grid'] .ic-crop-grid {
  background-image:
    linear-gradient(to right, #fff5 1px, transparent 1px),
    linear-gradient(to bottom, #fff5 1px, transparent 1px);
  background-size: 25% 25%;
}
.ic-crop-selection[data-grid='none'] .ic-crop-grid {
  display: none;
}
.ic-crop-handle {
  position: absolute;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border: 0;
  background: transparent;
  padding: 0 !important;
  border-radius: 6px;
  transform: translate(-50%, -50%);
  touch-action: none;
}
.ic-crop-handle::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 2px;
  background: #fff;
  box-shadow:
    0 0 0 1.5px #28355b,
    0 1px 5px #0005;
}
.ic-crop-handle:hover::after,
.ic-crop-handle:focus-visible::after {
  background: #c8d2ff;
  box-shadow: 0 0 0 2px #374baa;
}
.ic-crop-handle[data-handle='nw'] {
  left: 0;
  top: 0;
  cursor: nwse-resize;
}
.ic-crop-handle[data-handle='n'] {
  left: 50%;
  top: 0;
  cursor: ns-resize;
}
.ic-crop-handle[data-handle='ne'] {
  left: 100%;
  top: 0;
  cursor: nesw-resize;
}
.ic-crop-handle[data-handle='e'] {
  left: 100%;
  top: 50%;
  cursor: ew-resize;
}
.ic-crop-handle[data-handle='se'] {
  left: 100%;
  top: 100%;
  cursor: nwse-resize;
}
.ic-crop-handle[data-handle='s'] {
  left: 50%;
  top: 100%;
  cursor: ns-resize;
}
.ic-crop-handle[data-handle='sw'] {
  left: 0;
  top: 100%;
  cursor: nesw-resize;
}
.ic-crop-handle[data-handle='w'] {
  left: 0;
  top: 50%;
  cursor: ew-resize;
}
.ic-crop-selection.compact
  .ic-crop-handle:is([data-handle='n'], [data-handle='e'], [data-handle='s'], [data-handle='w']) {
  visibility: hidden;
}
.ic-crop-dimension {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  border: 1px solid #fff5;
  padding: 5px 8px;
  border-radius: 7px;
  color: #fff;
  background: #111b34e6;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.ic-crop-selection.compact .ic-crop-dimension {
  bottom: calc(100% + 14px);
}
.ic-app[data-tool='crop'] .ic-stage-area {
  cursor: crosshair;
}
.ic-crop-panning .ic-stage-area,
.ic-crop-panning .ic-crop-selection,
.ic-crop-panning .ic-crop-handle {
  cursor: grab !important;
}
.ic-crop-panning .ic-stage-area:active {
  cursor: grabbing !important;
}
#ic-crop-pan[aria-pressed='true'] {
  background: var(--soft);
  color: var(--brand);
}
.ic-app[data-tool='crop'] .ic-savings strong {
  color: var(--text);
}
.ic-app[data-tool='crop'] .ic-comparison-labels {
  justify-content: flex-start;
}
.ic-app[data-tool='crop'] .ic-divider,
.ic-app[data-tool='crop'] #ic-toggle-original,
.ic-app[data-tool='crop'] #ic-before-label {
  display: none !important;
}
.ic-app[data-tool='crop'] .ic-preview[data-crop-view='edit'] #ic-after-label {
  display: none;
}
.ic-app[data-tool='crop'] .ic-preview-status {
  pointer-events: none;
}
.ic-app[data-tool='crop'] .ic-toolbar {
  flex-wrap: wrap;
  justify-content: center;
}
.ic-app[data-tool='crop'] .ic-mode {
  min-width: 112px;
}
.ic-app[data-tool='crop'] .ic-toolbar-rule {
  display: none;
}
@media (max-width: 800px) {
  .ic-crop-handle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  .ic-crop-handle::after {
    inset: 13px;
  }
  .ic-app[data-tool='crop'] #ic-actual {
    display: inline-flex;
  }
  .ic-app[data-tool='crop'] #ic-fullscreen {
    display: none;
  }
  .ic-app[data-tool='crop'] .ic-download-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .ic-app[data-tool='crop'] .ic-download-summary > i {
    display: none;
  }
  .ic-app[data-tool='crop'] .ic-download-summary > div {
    min-width: 0;
  }
  .ic-app[data-tool='crop'] .ic-download-summary strong {
    font-size: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .ic-app[data-tool='crop'] .ic-mode {
    min-width: 89px;
    max-width: 100px;
  }
  .ic-app[data-tool='crop'] .ic-toolbar #ic-help {
    display: none;
  }
}
