.cr-stage-out { display: flex; justify-content: center; background: repeating-conic-gradient(color-mix(in srgb, var(--line) 70%, transparent) 0 25%, transparent 0 50%) 50% / 18px 18px; border-radius: 12px; padding: 14px; overflow: hidden; }
.cr-stage { position: relative; display: inline-block; line-height: 0; max-width: 100%; overflow: hidden; user-select: none; -webkit-user-select: none; }
.cr-stage canvas { display: block; max-width: 100%; max-height: 62vh; width: auto; height: auto; }
.cr-box { position: absolute; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); outline: 2px solid #fff; cursor: move; touch-action: none;
  background-image: linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.45)), linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.45)), linear-gradient(90deg, rgba(255,255,255,.45), rgba(255,255,255,.45)), linear-gradient(90deg, rgba(255,255,255,.45), rgba(255,255,255,.45));
  background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%; background-position: 0 33.33%, 0 66.67%, 33.33% 0, 66.67% 0; background-repeat: no-repeat; }
.cr-box.circle::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); outline: 2px dashed rgba(255,255,255,.9); pointer-events: none; }
.cr-box i { position: absolute; width: 34px; height: 34px; transform: translate(-50%, -50%); touch-action: none; z-index: 2; }
.cr-box i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%); background: #fff; border: 2px solid var(--c); border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.cr-box i[data-h="n"], .cr-box i[data-h="s"] { left: 50%; cursor: ns-resize; }
.cr-box i[data-h="e"], .cr-box i[data-h="w"] { top: 50%; cursor: ew-resize; }
.cr-box i[data-h="n"]::after, .cr-box i[data-h="s"]::after { width: 22px; height: 8px; }
.cr-box i[data-h="e"]::after, .cr-box i[data-h="w"]::after { width: 8px; height: 22px; }
.cr-box i[data-h^="n"] { top: 0; } .cr-box i[data-h^="s"] { top: 100%; }
.cr-box i[data-h$="w"] { left: 0; } .cr-box i[data-h$="e"] { left: 100%; }
.cr-box i[data-h="nw"], .cr-box i[data-h="se"] { cursor: nwse-resize; }
.cr-box i[data-h="ne"], .cr-box i[data-h="sw"] { cursor: nesw-resize; }
.cr-size { text-align: center; font-weight: 700; margin: 8px 0 4px; font-size: 15px; }
.cr-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0; }
.cr-tools .btn { flex: 1 1 70px; padding: 9px 10px; min-height: 44px; }
#cr-aspect button { padding: 8px 12px; }
.cr-note { font-size: 13.5px; margin: 6px 0 0; }
.imgt-check { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-weight: 600; cursor: pointer; }
.imgt-wh > * { flex: 1 1 110px; }
@media (max-width: 700px) {
  #cr-aspect { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 6px; scrollbar-width: thin; }
  #cr-aspect button { flex: none; }
}
