/* Shared layout for the two local image editors. */
.pt-edit .pt-new-bar{flex-wrap:wrap;gap:.4rem;align-items:center}.pt-edit .pt-new-view{display:flex;flex-direction:column;gap:.45rem;overflow:hidden!important}.pt-edit .pt-editor-stage{flex:1 1 auto;min-height:0;min-width:0;overflow:auto;display:flex;position:relative;align-items:safe center;justify-content:safe center;border-radius:8px;padding:8px;overscroll-behavior:contain}.pt-edit .pt-editor-stage canvas{display:block;flex:none;max-width:none;max-height:none;touch-action:none;user-select:none;outline-offset:2px}.pt-edit .pt-editor-stage canvas[hidden]{display:none}.pt-edit .pt-editor-stage .pt-editor-empty{color:var(--pt-muted);background:#171a22;padding:1rem;border-radius:8px;text-align:center}.pt-edit .pt-edit-toolbar{display:flex;gap:.3rem;flex-wrap:wrap;align-items:center}.pt-edit .pt-edit-toolbar .btn{white-space:nowrap}.pt-edit .pt-edit-toolbar select{width:auto;font-size:.8rem;padding:.25rem .5rem}.pt-edit .pt-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}.pt-edit .pt-control-grid label{min-width:0}.pt-edit .pt-control-grid input{width:100%}.pt-edit .pt-adjust{display:grid;grid-template-columns:minmax(0,1fr) 65px;gap:0 .45rem;align-items:center;margin:.45rem 0}.pt-edit .pt-adjust label{grid-column:1/-1;margin:0}.pt-edit .pt-adjust input[type=number]{min-width:0;width:100%}.pt-edit .pt-adjust input[type=range]{width:100%;min-width:0;accent-color:#65e6f2}.pt-edit details.pt-edit-group{border-bottom:1px solid var(--pt-border);padding:.6rem 0}.pt-edit details.pt-edit-group summary{font-weight:600;cursor:pointer;margin-bottom:.45rem}.pt-edit .pt-editor-note{font-size:.75rem;color:var(--pt-muted);margin:0;line-height:1.4}.pt-edit .pt-editor-warning{color:#ffd08b;border-left:3px solid #eab45d;padding-left:.55rem;margin:.4rem 0;font-size:.78rem}.pt-edit .pt-editor-status{font-size:.78rem;overflow-wrap:anywhere}.pt-edit .pt-edit-toolbar [aria-pressed=true]{border-color:#65e6f2;color:#65e6f2}.pt-edit .pt-region-list{max-height:160px;overflow:auto;display:grid;gap:.25rem}.pt-edit .pt-region-list button{text-align:left;overflow-wrap:anywhere}.pt-edit .pt-region-list button[aria-current=true]{border-color:#65e6f2;color:#65e6f2}.pt-edit .pt-work-actions .pt-control-grid{width:100%}.pt-edit input[type=range]{accent-color:#65e6f2}.pt-edit .pt-work-actions #actionStatus:empty{display:none}.pt-edit .pt-new-bar h2{margin:0}.pt-edit .pt-work-actions .btn{min-height:34px}.pt-edit .pt-editor-stage:focus-within{outline:1px solid #65e6f2}
@media(max-width:991.98px){.pt-edit .pt-editor-stage{height:clamp(220px,48vh,430px);flex:none}.pt-edit .pt-work-controls{max-height:460px}.pt-edit .pt-new-view{min-height:0}}

.pt-edit fieldset{min-width:0}.pt-edit .pt-edit-group .btn{margin-right:.25rem}.pt-edit .pt-edit-toolbar button:disabled{opacity:.55}.pt-edit .pt-editor-stage canvas:focus-visible{outline:2px solid #65e6f2}.pt-edit .pt-work-controls .form-check{display:flex;align-items:center;gap:.5rem;padding-left:0}.pt-edit .pt-work-controls .form-check-input{float:none;margin:0}.pt-edit .pt-work-actions label{margin-bottom:.25rem}
