.header-crop-editor{margin:0 0 20px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel-2)}
.header-crop-editor[hidden]{display:none}
.header-crop-help{margin:0 0 10px;font-size:13px;color:var(--muted)}
.header-crop-viewport{display:flex;justify-content:center;overflow:hidden;border-radius:10px;background:#111827}
.header-crop-canvas{position:relative;display:block;max-width:100%;line-height:0;overflow:hidden;touch-action:none}
.header-crop-image{display:block;width:100%;height:100%;max-width:none;max-height:none;user-select:none;-webkit-user-drag:none}
.header-crop-selection{position:absolute;box-sizing:border-box;border:3px solid #fff;box-shadow:0 0 0 9999px rgba(7,13,27,.68),0 0 0 1px rgba(17,26,53,.7) inset;cursor:move;touch-action:none;line-height:normal}
.header-crop-selection:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.header-crop-handle{position:absolute;width:18px;height:18px;border:2px solid #fff;border-radius:50%;background:var(--blue-deep);box-shadow:0 1px 4px rgba(0,0,0,.45)}
.header-crop-handle--nw{left:-10px;top:-10px;cursor:nwse-resize}
.header-crop-handle--ne{right:-10px;top:-10px;cursor:nesw-resize}
.header-crop-handle--sw{left:-10px;bottom:-10px;cursor:nesw-resize}
.header-crop-handle--se{right:-10px;bottom:-10px;cursor:nwse-resize}
.header-crop-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.header-crop-editor>.hint{margin-top:8px}
.image-upload-client-error{color:var(--red-deep);font-size:12.5px;margin:6px 0 10px}
.image-upload-client-error[hidden]{display:none}
@media(max-width:600px){.header-crop-editor{padding:10px}.header-crop-handle{width:22px;height:22px}.header-crop-handle--nw{left:-12px;top:-12px}.header-crop-handle--ne{right:-12px;top:-12px}.header-crop-handle--sw{left:-12px;bottom:-12px}.header-crop-handle--se{right:-12px;bottom:-12px}}
