.photo-editor{display:grid;gap:.6rem}
.photo-editor [hidden]{display:none!important}
.photo-editor-tools,.photo-pen-options,.photo-editor-scales{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem}
.photo-editor-tools .btn{padding:.37rem .65rem;min-height:36px}
.photo-editor-tools [aria-pressed="true"]{background:#dcebe2;color:#124330;border-color:#438362}
.photo-pen-options label,.photo-editor-scales label{display:grid;gap:.18rem;font-size:.8rem;flex:1 1 9.5rem}
.photo-editor-scales label span{display:flex;justify-content:space-between;gap:.5rem}
.photo-editor-scales strong{font-variant-numeric:tabular-nums}
.photo-editor-scales input{min-height:26px;accent-color:#367653;padding:0}
.photo-editor-stage{border:1px solid var(--line);border-radius:9px;background:#edf3ef;overflow:auto;max-height:min(44dvh,440px);padding:5px}
.photo-editor-art{margin:0 auto;position:relative;overflow:hidden}
.photo-editor-art canvas{display:block;width:100%;height:auto;user-select:none}
.photo-editor-art canvas[data-mode="crop"],.photo-editor-art canvas[data-mode="pen"],.photo-editor-art canvas[data-mode="text"]{touch-action:none;cursor:crosshair}
.photo-crop-frame{position:absolute;pointer-events:none;border:2px solid #fff;box-shadow:0 0 0 100vmax #10252a93,inset 0 0 0 1px #10252a}
.photo-editor .form-actions,.photo-editor .photo-editor-help{margin:0}
@media (max-width:540px){.photo-editor-tools .btn{font-size:.78rem;min-height:40px}.photo-editor .form-actions .btn{flex:1 1 auto}.photo-editor-stage{max-height:41dvh}}
