.ref-stage,.ref-item,.ref-group-frame,.ref-hand,.ref-hand *,.ref-stage:active,.ref-item:active{cursor:default!important}.ref-stage [contenteditable=true],.ref-label-editor input,.ref-label-editor textarea{cursor:text!important}.ref-group-frame>span{pointer-events:auto!important;cursor:default!important}.ref-item{overflow:visible}.ref-selection-box{border:2px solid var(--accent)!important;box-shadow:0 0 0 1px var(--bg)!important}.ref-selection-box>[data-ref-handle]{pointer-events:auto}.ref-corner{position:absolute!important;width:12px!important;height:12px!important;min-width:12px!important;min-height:12px!important;padding:0!important;background:var(--accent)!important;border:2px solid var(--surface)!important;border-radius:2px!important;z-index:4}.ref-corner-nw{left:-7px;top:-7px}.ref-corner-ne{right:-7px;top:-7px}.ref-corner-sw{left:-7px;bottom:-7px}.ref-corner-se{right:-7px;bottom:-7px}.ref-corner-nw,.ref-corner-se{cursor:nwse-resize!important}.ref-corner-ne,.ref-corner-sw{cursor:nesw-resize!important}.ref-selection-box>.ref-rotate{cursor:default!important}.ref-image-caption{position:absolute;z-index:8;box-sizing:border-box;max-width:100%;width:max-content;padding:3px 6px;border:1px solid var(--line);border-radius:3px;line-height:1.3;color:var(--text);background:var(--surface);white-space:pre-wrap;overflow-wrap:anywhere;pointer-events:auto;cursor:default!important;user-select:none}.ref-image-caption[data-edge=bottom]{top:calc(100% + 4px);left:50%;transform:translateX(-50%)}.ref-image-caption[data-edge=top]{bottom:calc(100% + 4px);left:50%;transform:translateX(-50%)}.ref-image-caption[data-edge=left]{right:calc(100% + 4px);top:50%;transform:translateY(-50%);max-width:180px;min-width:70px}.ref-image-caption[data-edge=right]{left:calc(100% + 4px);top:50%;transform:translateY(-50%);max-width:180px;min-width:70px}.ref-caption-guide{position:absolute;pointer-events:none;z-index:70;box-sizing:border-box;transform-origin:center;border:0 solid var(--accent)}.ref-caption-guide[data-edge=top]{border-top-width:4px}.ref-caption-guide[data-edge=right]{border-right-width:4px}.ref-caption-guide[data-edge=bottom]{border-bottom-width:4px}.ref-caption-guide[data-edge=left]{border-left-width:4px}.ref-caption-guide[hidden]{display:none}.ref-label-editor{position:absolute;z-index:90;width:250px;padding:7px;border:1px solid var(--accent);border-radius:5px;background:var(--surface);box-shadow:0 4px 15px color-mix(in srgb,var(--ui_000000, #000000) 27%, transparent)}.ref-label-editor input,.ref-label-editor textarea{width:100%;min-width:0;margin:0;padding:6px;font-size:14px;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:3px}.ref-label-editor textarea{min-height:58px;resize:vertical}.ref-label-editor small{display:block;margin-top:4px;font-size:10px;color:var(--sub)}.ref-snapping-option{display:inline-flex!important;align-items:center;gap:5px;margin:0 0 0 auto!important;font-size:11px}.ref-snapping-option input{width:13px;height:13px;min-height:13px;margin:0;appearance:auto}.ref-snap-guides{position:absolute;inset:0;pointer-events:none;z-index:65}.ref-snap-line{position:absolute;pointer-events:none;background:var(--accent)}.ref-snap-line.x{width:1px}.ref-snap-line.y{height:1px}

.ref-selection-box>.ref-rotate{position:absolute;left:calc(50% - 12px);top:-32px;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;padding:0!important;display:grid;place-items:center;border-radius:50%;font-size:17px;background:var(--accent);color:var(--bg);border:1px solid var(--surface)}
