/* Photo studio: scoped to editor and per-photo labels. No global theme overrides. */
.pe22{width:min(1020px,calc(100vw - 28px));max-width:1020px;max-height:calc(100dvh - 28px);padding:0;border:1px solid #dce2ea;border-radius:22px;background:#fff;color:#1c2a38;overflow:auto;box-shadow:0 30px 100px #111c3d4d}
.pe22[open]{animation:pe22-in .16s ease-out}.pe22::backdrop{background:#1420349c;backdrop-filter:blur(4px)}.pe22 [hidden]{display:none!important}.pe22 button,.pe22 select,.pe22 input{font:inherit}.pe22 button{cursor:pointer;min-height:42px;border:1px solid #dbe1e9;border-radius:11px;background:#fff;color:#293746;padding:9px 12px;font-size:13px;font-weight:650}.pe22 button:disabled{opacity:.5;cursor:wait}.pe22 :focus-visible{outline:3px solid #9285e5;outline-offset:3px}
.pe22-head{padding:22px 25px;display:flex;gap:16px;justify-content:space-between;align-items:flex-start;background:linear-gradient(110deg,#f1edff,#eef8ff);border-bottom:1px solid #e1e6ef}.pe22-head small{font-size:10px;letter-spacing:.14em;font-weight:800;color:#5741ad}.pe22-head h2{margin:5px 0;font-size:25px;line-height:1.2}.pe22-head p{font-size:12px;color:#607088;margin:5px 0 0}.pe22-head button{font-size:23px;line-height:1;min-width:42px}
.pe22-body{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:22px;padding:22px 25px}.pe22-image,.pe22-options{min-width:0}.pe22-stage{border-radius:14px;background:repeating-conic-gradient(#17232d 0% 25%,#22313e 0% 50%) 50%/20px 20px;min-height:200px;display:flex;align-items:center;justify-content:center;padding:0;overflow:hidden;position:relative}.pe22-loading{padding:28px;text-align:center;color:#e0e7ef;font-size:13px;max-width:100%}.pe22-surface{position:relative;touch-action:none;flex:none;overflow:hidden}.pe22-surface canvas{display:block;width:100%;height:100%;max-width:none}.pe22-selection{position:absolute;border:2px solid #fff;box-shadow:0 0 0 3000px #0008;cursor:move;touch-action:none;min-width:1px;min-height:1px}.pe22-selection:focus-visible{outline:2px solid #ffc968;outline-offset:1px}.pe22-selection i{position:absolute;width:20px;height:20px;background:#fff;border:2px solid #5844b1;border-radius:5px;z-index:2;touch-action:none}.pe22-selection i[data-pe-handle=nw]{left:-7px;top:-7px;cursor:nwse-resize}.pe22-selection i[data-pe-handle=ne]{right:-7px;top:-7px;cursor:nesw-resize}.pe22-selection i[data-pe-handle=sw]{left:-7px;bottom:-7px;cursor:nesw-resize}.pe22-selection i[data-pe-handle=se]{right:-7px;bottom:-7px;cursor:nwse-resize}.pe22-thirds{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to right,transparent 33%,#ffffff60 33%,#ffffff60 calc(33% + 1px),transparent calc(33% + 1px),transparent 66%,#ffffff60 66%,#ffffff60 calc(66% + 1px),transparent calc(66% + 1px)),linear-gradient(to bottom,transparent 33%,#ffffff60 33%,#ffffff60 calc(33% + 1px),transparent calc(33% + 1px),transparent 66%,#ffffff60 66%,#ffffff60 calc(66% + 1px),transparent calc(66% + 1px))}
.pe22-size{font-size:12px;color:#45596d;min-height:17px;margin:10px 0 5px;font-variant-numeric:tabular-nums}.pe22-hint{font-size:11px;color:#6b7a8f;line-height:1.6;margin:0}.pe22-options{display:flex;flex-direction:column;gap:14px}.pe22-options label{display:grid;gap:7px;font-size:12px;font-weight:650}.pe22-options input:not([type=range]),.pe22-options select{width:100%;min-width:0;height:43px;border:1px solid #dce2ec;border-radius:10px;padding:9px 10px;color:#25364a;background:#fff}.pe22-options input[type=range]{width:100%;margin:0;accent-color:#5d48b5;min-height:28px}.pe22-options output{color:#674bb0;font-variant-numeric:tabular-nums}.pe22-rotations{display:grid;grid-template-columns:1fr 1fr;gap:7px}.pe22-rotations button{font-size:12px;padding:8px 6px}.pe22-reset{color:#6653a1!important;background:#f6f4ff!important}.pe22-label-note{color:#738199;font-size:11px;line-height:1.5;margin-top:-7px}.pe22-safe-note{padding:12px;border:1px solid #e2d9be;background:#fffaf0;border-radius:12px;font-size:11px;line-height:1.7;color:#755c32}
.pe22-error{margin:0 25px 16px;padding:11px 14px;border-radius:10px;background:#fff0f0;color:#a73232;font-size:13px;border:1px solid #f1caca}.pe22-foot{position:sticky;bottom:0;z-index:4;padding:16px 25px;background:#f9fbfff5;border-top:1px solid #e3e7ef;display:flex;align-items:center;justify-content:space-between;gap:15px;backdrop-filter:blur(8px)}.pe22-foot>span{font-size:11px;line-height:1.5;color:#728098}.pe22-foot>div{display:flex;gap:8px}.pe22 #pe22Apply{background:#5944b0;border-color:#5944b0;color:#fff;min-width:120px}
.ps-photo-grid22{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.ps-photo-card22{min-width:0;aspect-ratio:auto!important;overflow:hidden;border-radius:12px!important;background:#fff!important;cursor:default!important}.ps-photo-thumb22{position:relative;aspect-ratio:4/3;background:#e9eef3;overflow:hidden;cursor:grab}.ps-photo-thumb22 img{display:block;width:100%;height:100%;object-fit:cover}.ps-photo-label22{position:absolute;left:7px;top:7px;right:7px;max-width:calc(100% - 14px);width:max-content;padding:4px 8px;border-radius:7px;background:#142334d9;color:#fff;font-size:10px;line-height:1.4;overflow-wrap:anywhere;pointer-events:none}.ps-photo-buttons22{display:flex;gap:5px;flex-wrap:wrap;padding:8px}.ps-photo-buttons22 button{min-height:34px;padding:6px 8px;border:1px solid #dce2e9;background:#f8fafc;color:#344355;border-radius:8px;font-size:11px;line-height:1.2;cursor:pointer}.ps-photo-buttons22 .ps-photo-edit22{background:#f0edff;color:#5944b0;border-color:#ddd5fb;flex:1}.ps-photo-buttons22 .remove{color:#b23737}.ps-photo-buttons22 button:disabled{opacity:.45;cursor:default}.ps-photo-sort22{display:flex;gap:5px;width:100%}.ps-photo-sort22 button{flex:1}.ps-photo-sort22 button.remove{flex:0 0 32px}.ps-cover-label22{font-size:11px;color:#5b45a6!important;background:#f2efff;border-radius:8px;padding:6px 10px;margin-top:8px!important}.ps-photo-help22{font-size:11px;color:#768299;line-height:1.6;margin:10px 0 0}
.photo-room-label22{position:absolute;top:12px;left:12px;z-index:2;max-width:calc(100% - 24px);border-radius:8px;background:rgba(14,25,36,.86);border:1px solid rgba(255,255,255,.25);color:#fff!important;padding:7px 10px;font:600 12px/1.4 system-ui,sans-serif;overflow-wrap:anywhere;pointer-events:none}.v1503-gallery figure:nth-child(n+4){display:block!important}
@keyframes pe22-in{from{opacity:.3;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:700px){.pe22{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:17px}.pe22-head{padding:16px}.pe22-head h2{font-size:21px}.pe22-body{grid-template-columns:minmax(0,1fr);padding:14px;gap:14px}.pe22-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.pe22-options>label:last-of-type,.pe22-label-note,.pe22-safe-note{grid-column:1/-1}.pe22-foot{padding:12px 14px}.pe22-foot>span{max-width:135px;font-size:10px}.pe22-foot>div{gap:6px}.pe22-foot button{padding:8px 11px}.pe22 #pe22Apply{min-width:85px}.pe22-error{margin:0 14px 14px}.pe22-stage{min-height:120px}.ps-photo-grid22{gap:8px!important}.ps-photo-buttons22{padding:6px}.ps-photo-buttons22 button{min-height:38px}.photo-room-label22{font-size:11px;padding:5px 7px}}
@media(max-width:360px){.ps-photo-grid22{grid-template-columns:minmax(0,1fr)!important}.pe22-foot>span{display:none}.pe22-foot>div{width:100%}.pe22-foot button{flex:1}}
@media(prefers-reduced-motion:reduce){.pe22[open]{animation:none}}

/* Larger inward pointer targets keep corner handles usable on touch screens. */
.pe22-selection i{width:32px;height:32px;background:transparent;border:0;border-radius:0}
.pe22-selection i::after{content:'';position:absolute;width:16px;height:16px;background:#fff;border:2px solid #5844b1;border-radius:4px;box-sizing:border-box}
.pe22-selection i[data-pe-handle=nw]{left:-1px;top:-1px}.pe22-selection i[data-pe-handle=ne]{right:-1px;top:-1px}.pe22-selection i[data-pe-handle=sw]{left:-1px;bottom:-1px}.pe22-selection i[data-pe-handle=se]{right:-1px;bottom:-1px}
.pe22-selection i[data-pe-handle=nw]::after{left:0;top:0}.pe22-selection i[data-pe-handle=ne]::after{right:0;top:0}.pe22-selection i[data-pe-handle=sw]::after{left:0;bottom:0}.pe22-selection i[data-pe-handle=se]::after{right:0;bottom:0}
