/* Zoom changes the image plane, while annotation targets stay 44px. */
.recipe-step-photo-annotations .step-annotations-stage-wrap{display:block;padding:12px;min-width:0}
.recipe-step-photo-annotations .step-annotation-photo-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.recipe-step-photo-annotations .step-annotation-modes,.recipe-step-photo-annotations .step-annotation-zoom{display:flex;align-items:center;gap:4px}
.recipe-step-photo-annotations .step-annotation-photo-tools button{min-width:44px;min-height:44px;margin:0;padding:8px 10px;font-size:12px;background:transparent;border-color:transparent}
.recipe-step-photo-annotations .step-annotation-photo-tools button[aria-pressed=true]{background:#575550;border-color:#575550;color:#fff}
.recipe-step-photo-annotations .step-annotation-photo-tools button:focus-visible{outline:2px solid #665248;outline-offset:2px}
.recipe-step-photo-annotations .step-annotation-photo-tools output{font-size:12px;min-width:42px;text-align:center;font-variant-numeric:tabular-nums;color:#514a40}
.recipe-step-photo-annotations .step-annotation-photo-tools [hidden]{display:none!important}
.recipe-step-photo-annotations .step-annotations-viewport{position:relative;width:100%;height:clamp(180px,52dvh,480px);overflow:hidden;border-radius:5px;background:#e4e1d8;touch-action:none;isolation:isolate}
.recipe-step-photo-annotations .step-annotations-stage{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair;outline-offset:-3px}
.recipe-step-photo-annotations .step-annotations-stage.is-moving-photo{cursor:grab}
.recipe-step-photo-annotations .step-annotations-stage.is-moving-photo:active{cursor:grabbing}
.recipe-step-photo-annotations .step-annotations-image{position:absolute;display:block;max-width:none;max-height:none;margin:0;object-fit:fill;transform-origin:center;pointer-events:auto}
.recipe-step-photo-annotations .step-annotations-pins{overflow:visible}
.recipe-step-photo-annotations .step-annotation-pin{width:44px;height:44px;min-height:44px;cursor:move}
.recipe-step-photo-annotations .is-moving-photo .step-annotation-pin{cursor:grab}
.recipe-step-photo-annotations .step-annotation-photo-help{font-size:12px;line-height:1.7;color:#70685e;margin:8px 2px 0}
.recipe-step-photo-annotations .step-annotation-keyboard-help{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.recipe-step-photo-annotations .step-annotation-undo-bar{margin-bottom:8px}
.recipe-step-photo-annotations .step-annotation-undo-bar:has([hidden]){display:none}
.recipe-step-photo-annotations [data-annotation-undo]{min-height:44px;font-size:12px;padding:8px 10px;background:#e5e1d8;border-color:#d9d6cd}
.recipe-step-photo-annotations [data-annotation-undo][hidden]{display:none!important}
.recipe-step-photo-annotations .step-annotation-delete-actions{margin-top:8px}
.editorial-ui dialog.recipe-annotation-leave{box-sizing:border-box;width:min(390px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:24px;border:1px solid #d9d6cd;background:#f7f6f2;color:#3b2d25;overflow:auto}
.recipe-annotation-leave::backdrop{background:rgba(35,32,27,.32)}
.recipe-annotation-leave h2{font-size:21px;margin:0 0 10px}
.recipe-annotation-leave p{font-size:13px;line-height:1.8;margin:0 0 20px;color:#70685e}
.recipe-annotation-leave>div{display:flex;flex-direction:column;gap:8px}
.recipe-annotation-leave button{min-height:44px;width:100%;margin:0;padding:10px 12px;font-size:13px}
.recipe-annotation-leave [data-annotation-leave-discard]{background:transparent;color:#9b514d;border-color:transparent}
@media(max-width:650px){
 .recipe-step-photo-annotations .step-annotations-stage-wrap{padding:8px}
 .recipe-step-photo-annotations .step-annotation-photo-tools{gap:4px}
 .recipe-step-photo-annotations .step-annotation-photo-tools button{padding-inline:8px}
 .recipe-step-photo-annotations .step-annotations-viewport{height:clamp(180px,40dvh,340px)}
 .recipe-step-photo-annotations .step-annotation-zoom{margin-left:auto;gap:0}
}
