    /* Preset grid */
    .preset-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 8px;
      margin-top: 12px;
    }
    .preset-btn {
      padding: 12px 14px;
      background: var(--color-bg);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-sm);
      cursor: pointer;
      text-align: left;
      font-family: var(--font-body);
      transition: all var(--transition-fast);
    }
    .preset-btn:hover {
      border-color: var(--color-primary-subtle);
      background: var(--color-primary-light);
    }
    .preset-btn.active {
      border-color: var(--color-primary);
      background: var(--color-primary-light);
      box-shadow: 0 0 0 2px var(--color-primary-light);
    }
    .preset-btn .preset-name {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--color-text);
      display: block;
    }
    .preset-btn .preset-dims {
      font-size: 0.7rem;
      font-family: var(--font-mono);
      color: var(--color-text-muted);
      margin-top: 2px;
      display: block;
    }

    /* Crop canvas area */
    .crop-canvas-wrapper {
      text-align: center;
      padding: 16px;
      background: repeating-conic-gradient(#f1f5f9 0% 25%, transparent 0% 50%) 50% / 16px 16px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--color-border);
      min-height: 200px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 20px;
    }
    .crop-container {
      position: relative;
      display: inline-block;
      max-width: 100%;
      user-select: none;
      -webkit-user-select: none;
      margin: 0 auto;
      cursor: crosshair;
    }
    .crop-container img {
      display: block;
      max-width: 100%;
      max-height: 500px;
      pointer-events: none;
    }
    .crop-overlay {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }
    .crop-dim {
      position: absolute;
      background: rgba(0, 0, 0, 0.5);
      pointer-events: none;
    }
    .crop-selection {
      position: absolute;
      border: 2px solid #fff;
      box-shadow: 0 0 0 1px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(0,0,0,0.15);
      cursor: move;
      pointer-events: auto;
    }
    .crop-selection::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to right, rgba(255,255,255,0.4) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.4) 1px, transparent 1px);
      background-size: 33.333% 33.333%;
      pointer-events: none;
    }
    .crop-handle {
      position: absolute;
      width: 12px;
      height: 12px;
      background: #fff;
      border: 1px solid rgba(0,0,0,0.3);
      border-radius: 2px;
      pointer-events: auto;
    }
    .crop-handle.tl { top: -6px; left: -6px; cursor: nw-resize; }
    .crop-handle.tr { top: -6px; right: -6px; cursor: ne-resize; }
    .crop-handle.bl { bottom: -6px; left: -6px; cursor: sw-resize; }
    .crop-handle.br { bottom: -6px; right: -6px; cursor: se-resize; }
    .crop-handle.tm { top: -6px; left: 50%; margin-left: -6px; cursor: n-resize; }
    .crop-handle.bm { bottom: -6px; left: 50%; margin-left: -6px; cursor: s-resize; }
    .crop-handle.ml { top: 50%; left: -6px; margin-top: -6px; cursor: w-resize; }
    .crop-handle.mr { top: 50%; right: -6px; margin-top: -6px; cursor: e-resize; }
    .crop-info {
      position: absolute;
      bottom: 8px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0,0,0,0.7);
      color: #fff;
      padding: 3px 10px;
      border-radius: 4px;
      font-family: var(--font-mono);
      font-size: 0.7rem;
      white-space: nowrap;
      pointer-events: none;
    }

    /* Selection dimensions display */
    .selection-dims {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 12px;
      font-size: 0.85rem;
      color: var(--color-text-secondary);
    }
    .selection-dims .dim-value {
      font-family: var(--font-mono);
      font-weight: 600;
      color: var(--color-text);
      background: var(--color-bg);
      border: 1px solid var(--color-border);
      border-radius: 4px;
      padding: 4px 10px;
      font-size: 0.8rem;
    }

    /* Output info */
    .output-info {
      margin-top: 12px;
      padding: 10px 14px;
      background: var(--color-primary-light);
      border: 1px solid var(--color-primary-subtle);
      border-radius: var(--radius-sm);
      font-size: 0.82rem;
      color: var(--color-primary);
      font-weight: 500;
    }

    @media (max-width: 768px) {
      .crop-handle { width: 18px; height: 18px; }
      .crop-handle.tl { top: -9px; left: -9px; }
      .crop-handle.tr { top: -9px; right: -9px; }
      .crop-handle.bl { bottom: -9px; left: -9px; }
      .crop-handle.br { bottom: -9px; right: -9px; }
      .crop-handle.tm { top: -9px; margin-left: -9px; }
      .crop-handle.bm { bottom: -9px; margin-left: -9px; }
      .crop-handle.ml { left: -9px; margin-top: -9px; }
      .crop-handle.mr { right: -9px; margin-top: -9px; }
      .preset-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
      }
    }
