.poster-editor{width:min(1180px,96vw);max-width:96vw;max-height:94dvh;padding:0;border:1px solid var(--border,#d8dde6);border-radius:20px;background:var(--panel,#fff);color:var(--ink,#162137);box-shadow:0 24px 90px #0005}
.poster-editor::backdrop{background:#0b1328b3}.poster-editor>header,.poster-editor>footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;background:var(--panel,#fff)}
.poster-editor>header{border-bottom:1px solid var(--border,#d8dde6)}.poster-editor h2{font-size:22px;margin:0}.poster-editor header p{font-size:14px;margin:5px 0 0}.poster-editor [data-close]{width:44px;height:44px;font-size:28px;border:0;border-radius:10px;background:var(--bg,#f2f4f8);color:inherit;cursor:pointer;flex-shrink:0}
.poster-editor>footer{border-top:1px solid var(--border,#d8dde6);position:sticky;bottom:0}.poster-editor-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-height:calc(94dvh - 168px);overflow:auto;align-items:start}
.poster-preview{position:sticky;top:0;padding:24px;min-width:0;background:var(--bg,#eff2f8);text-align:center}.poster-preview canvas{display:block;width:auto;max-width:100%;height:auto;max-height:65dvh;margin:auto;box-shadow:0 10px 36px #0002}.poster-preview p{font-size:14px;line-height:1.5;margin:16px 0 0}
#poster-editor-form{padding:24px;min-width:0}.poster-field{display:block;margin:0 0 16px;font-size:14px;font-weight:600;line-height:1.5}.poster-field input:not([type=range]),.poster-field textarea,.poster-field select{display:block;box-sizing:border-box;width:100%;max-width:100%;margin-top:6px;padding:10px 12px;border:1px solid var(--border,#cfd7e3);border-radius:10px;background:var(--bg,#fff);color:inherit;font:inherit;font-size:16px;resize:vertical}
.poster-field input[type=range]{display:block;width:100%;margin:10px 0;min-height:30px;accent-color:#6555da}.poster-field output{font-size:13px;font-weight:400}.poster-editor details{margin:18px 0;padding:16px;border:1px solid var(--border,#d8dde6);border-radius:12px}.poster-editor summary{font-size:16px;font-weight:700;cursor:pointer}.poster-editor details[open]>summary{margin-bottom:16px}.poster-editor fieldset{min-width:0;border:1px solid var(--border,#d8dde6);border-radius:12px;padding:16px;margin:16px 0}.poster-editor legend{padding:0 6px;font-size:15px;font-weight:700}.poster-help{font-size:14px;line-height:1.6;font-weight:400}.poster-upload{display:block;font-size:15px;font-weight:600}.poster-upload input{display:block;max-width:100%;width:100%;margin-top:10px;font-size:14px;color:inherit}.poster-editor button:focus-visible,.poster-editor input:focus-visible,.poster-editor select:focus-visible,.poster-editor textarea:focus-visible,.poster-editor summary:focus-visible{outline:3px solid #8572ef;outline-offset:3px}
[data-theme=dark] .poster-editor{--panel:#142033;--bg:#0d1728;--border:#35435b;--ink:#ecf0f7}.poster-editor .text-button{display:inline-block;margin:10px 12px 0 0;color:inherit}.poster-editor .button{white-space:normal;min-height:44px}
@media(max-width:720px){.poster-editor{width:100%;max-width:100%;max-height:100dvh;margin:auto 0 0;border-radius:16px 16px 0 0}.poster-editor-body{display:block;max-height:calc(100dvh - 158px)}.poster-preview{position:static;padding:16px}.poster-preview canvas{max-height:46dvh;max-width:100%;width:auto}.poster-editor>header,.poster-editor>footer{padding:14px 16px}.poster-editor h2{font-size:19px}#poster-editor-form{padding:16px}.poster-editor details{padding:12px}.poster-editor>footer .button{flex:1}.poster-editor fieldset{padding:12px}}
