.photo-editor{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:calc(100svh - 24px);min-height:480px;max-height:1100px;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--bg-elev)}@media(max-height:520px){.photo-editor{min-height:0}}.photo-editor--full{width:100vw;max-width:100vw;margin-inline-start:calc(50% - 50vw);border-right:0;border-left:0;border-radius:0}@media(max-width:700px),(pointer:coarse)and (max-height:520px){.photo-editor--full{height:100svh}}.photo-editor:fullscreen{height:100vh;border-radius:0}.photo-editor.is-expanded{position:fixed;inset:0;z-index:1001;width:auto;max-width:none;height:100dvh;min-height:0;max-height:none;margin:0;border:0}.pe-corner{position:absolute;top:0;right:0;z-index:2;display:flex;align-items:center;gap:2px;height:30px;padding:0 4px}.pe-corner[hidden]{display:none}.pe-corner .stu-iconbtn{width:28px;height:28px}.pe-corner__next{display:flex;align-items:center;margin-inline-end:4px}.pe-corner__next:empty,.pe-corner__next .chain-next[hidden]{display:none}.pe-corner .chain-next__toggle{min-height:0;height:24px;padding:0 10px;font-size:12px;line-height:22px}.pe-corner .chain-next__menu{text-align:start}.pe-corner--tabs .stu-iconbtn{width:36px;height:100%}.pe-corner .stu-iconbtn[hidden]{display:none}.pe-corner--phone{gap:0;padding:0 2px}.pe-corner--phone .stu-iconbtn{width:40px;height:44px}.pe-corner--phone .chain-next__toggle{height:32px;font-size:13px;line-height:30px}.photo-editor.is-full .stu-full .stu-full__on{display:none}.photo-editor.is-full .stu-full .stu-full__off{display:inline}html[data-studio-only] #editorHost{width:100vw;max-width:100vw;height:100dvh;min-height:0;max-height:none;margin:0;border:0;border-radius:0}.photo-editor__frame{position:absolute;inset:0;width:100%;height:100%;border:0}.photo-editor__status{margin:0;padding:16px;text-align:center;color:var(--text-dim)}.photo-editor.is-drag{outline:2px dashed var(--accent);outline-offset:-6px}.pe-toolbar:empty{display:none}.pe-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}.pe-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;background:var(--bg);color:var(--text)}.pe-dialog[open]{display:flex;flex-direction:column}.pe-dialog::backdrop{background:#0009}.pe-dialog__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-bottom:1px solid var(--border)}.pe-dialog__title{font-weight:600}.pe-dialog__host{flex:1;height:auto;min-height:0;border:0;border-radius:0}
