.pe-wrap{max-width:1320px!important;padding:32px 24px!important}.pe-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.pe-heading h1{margin:0;font-size:2.5rem}.pe-kicker{font-size:11px;letter-spacing:1.8px;color:#4519ac;font-weight:750;margin:0 0 6px}.pe-heading .lead{margin:8px 0}.pe-badge{padding:9px 14px;background:#eefbf8;color:#08644b;border:1px solid #bce7dc;border-radius:30px;font-size:13px;white-space:nowrap}.pe-topbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:white;padding:14px;border:1px solid #dfe2ef;border-radius:14px;margin-bottom:14px}.pe-wrap button,.pe-wrap .btn,.pe-wrap select{font:inherit;font-size:13px;border:1px solid #dcdfeb;border-radius:8px;padding:9px 12px;cursor:pointer;background:#fff;color:#262d4d}.pe-wrap .btn{background:linear-gradient(115deg,#4a1aba,#3853cc);border:0;color:white;text-decoration:none;display:inline-block;text-align:center}.pe-wrap button:disabled{opacity:.4;cursor:not-allowed}.pe-wrap button:focus-visible,.pe-wrap input:focus-visible{outline:3px solid #5570e9;outline-offset:2px}.pe-topbar #dimensions{margin-left:auto;font-size:12px;color:#626a8b}.pe-workspace{display:grid;grid-template-columns:330px minmax(0,1fr);gap:16px;min-height:650px}.pe-sidebar{background:#fff;border:1px solid #dfe2ef;border-radius:16px;overflow:hidden}.pe-sidebar nav{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:14px;background:#f6f7fc;border-bottom:1px solid #dfe2ef}.pe-sidebar nav button.on{color:#4017a1;background:#f3effd;border-color:#c0aced;font-weight:700}.pe-settings{padding:20px}.pe-settings h2{font-size:20px;margin:0 0 8px}.pe-settings h3{font-size:15px}.pe-settings p{font-size:12px;color:#647087;line-height:1.7}.pe-settings label{display:block;font-size:13px;margin:14px 0;color:#343b5a}.pe-settings input:not([type=checkbox]),.pe-settings textarea,.pe-settings select{display:block;width:100%;box-sizing:border-box;border:1px solid #dbdeeb;border-radius:7px;padding:8px;margin-top:6px;background:white;color:#272e4b;font:inherit}.pe-settings input[type=range]{accent-color:#5024b7;border:0;padding:0}.pe-settings input[type=color]{height:38px}.pe-slider output{float:right;font-size:12px;color:#4319a6}.pe-check{display:flex!important;gap:8px;align-items:center}.pe-settings .btn{width:100%;box-sizing:border-box;margin-top:14px}.pe-pair,.pe-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.pe-filter-grid button{padding:16px 8px;background:#f4f5fc}.pe-filter-grid button.on{border-color:#5028ad;background:#f3effd;color:#4017a1}.pe-stage{border:1px solid #dfe2ef;border-radius:16px;background:#fff;overflow:hidden;min-width:0;display:flex;flex-direction:column}.pe-stagebar{padding:13px 16px;border-bottom:1px solid #dfe2ef;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px}.pe-stagebar>div{display:flex;align-items:center;gap:10px}.pe-stagebar label{font-size:12px;color:#60688b;display:flex;align-items:center;gap:5px}.pe-wrap #drop{display:flex;align-items:center;justify-content:center;flex:1;min-height:490px;max-height:700px;overflow:auto;border:0;border-radius:0;padding:28px;background-color:#f0f1f7;background-image:linear-gradient(45deg,#e5e7ef 25%,transparent 25%),linear-gradient(-45deg,#e5e7ef 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e5e7ef 75%),linear-gradient(-45deg,transparent 75%,#e5e7ef 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;box-sizing:border-box}.pe-wrap #drop.over{outline:3px dashed #4f27ac;outline-offset:-6px}#empty{text-align:center;background:#ffffffed;border:1px solid #dfe2ef;border-radius:18px;padding:36px 24px;max-width:380px}#empty h2{font-size:21px}.pe-empty-icon{font-size:40px;color:#4b279e}#empty p{font-size:14px;color:#636b8c}.pe-wrap #cv{max-width:100%;max-height:600px;width:auto;height:auto;box-shadow:0 8px 30px #19214724;touch-action:none;cursor:crosshair}.pe-wrap #cv[hidden]{display:none}.pe-wrap #msg{padding:12px 16px;margin:0;font-size:12px;color:#575f81;border-top:1px solid #dfe2ef;min-height:42px;box-sizing:border-box}.pe-wrap #msg.err{color:#4418aa;background:#fff4f6}.pe-note{padding:20px 24px;border:1px solid #e0e3ef;background:white;border-radius:14px;margin-top:20px}.pe-note h2{font-size:18px;margin:0 0 8px}.pe-note p{font-size:13px;color:#656c8b;line-height:1.8;margin:0}.pe-small{font-size:11px!important}.pe-settings [hidden]{display:none!important}.pe-wrap .pe-settings #go{font-size:14px;padding:13px;width:100%;margin-top:14px}.pe-stagebar #compare[aria-pressed=true]{background:#f5f2fd;color:#4017a1;border-color:#ab95df}@media(max-width:800px){.pe-wrap{padding:20px 12px!important}.pe-heading h1{font-size:2rem}.pe-heading{align-items:flex-start}.pe-badge{font-size:10px;padding:8px}.pe-workspace{grid-template-columns:1fr;min-height:0}.pe-sidebar{display:flex;flex-direction:column}.pe-sidebar nav{grid-template-columns:repeat(4,1fr);padding:10px}.pe-sidebar nav button{font-size:11px;padding:8px 4px}.pe-settings{padding:16px}.pe-stage{grid-row:1}.pe-wrap #drop{min-height:280px;max-height:450px;padding:16px}.pe-wrap #cv{max-height:380px}.pe-stagebar{padding:10px;font-size:11px}.pe-stagebar button,.pe-stagebar select{font-size:11px;padding:7px}.pe-topbar #dimensions{width:100%;margin-left:0}.pe-topbar button,.pe-topbar .btn{font-size:11px;padding:8px}.pe-topbar{gap:6px}.pe-settings section[data-panel=adjust]{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.pe-settings section[data-panel=adjust] h2,.pe-settings section[data-panel=adjust] p{grid-column:1/-1}.pe-settings label{margin:8px 0}.pe-note{padding:16px}.pe-heading .lead{font-size:13px}}.pe-topbar .btn{width:auto;box-shadow:none;padding:9px 16px}.pe-wrap button{position:relative;overflow:hidden}.pe-wrap [hidden]{display:none!important}
/* Both image and settings stay visible while options change. */
@media screen{.pe-wrap{max-width:1180px!important}.pe-workspace{grid-template-columns:300px minmax(0,1fr);gap:12px;min-height:0;align-items:start}.pe-sidebar{max-height:72dvh;overflow:auto;overscroll-behavior:contain;overflow-anchor:none}.pe-stage{height:72dvh;min-height:380px;max-height:680px}.pe-wrap #drop{min-height:0;max-height:none;overflow:auto;padding:16px}.pe-wrap #cv{max-height:calc(72dvh - 120px);max-width:100%;object-fit:contain}.pe-settings input:not([type=range]),.pe-settings textarea,.pe-settings select{font-size:16px}
@media(max-width:800px){.pe-workspace{display:flex;flex-direction:column;gap:10px}.pe-stage{order:0;width:100%;height:30dvh;min-height:180px;max-height:300px}.pe-wrap #cv{max-height:calc(30dvh - 75px)}.pe-wrap #drop{padding:8px}.pe-stagebar{padding:6px;font-size:10px}.pe-wrap #msg{padding:4px 8px;min-height:24px;font-size:10px}.pe-sidebar{order:1;width:100%;max-height:40dvh;min-height:210px;overflow:auto}.pe-sidebar nav{position:sticky;top:0;z-index:1}.pe-settings{padding:12px}.pe-heading h1{font-size:28px}.pe-settings input[type=range]{margin-top:9px}}
}

@media screen{.pe-workspace{scroll-margin-top:128px}}

@media screen{.pe-sidebar{height:72dvh;max-height:680px}.pe-workspace{overflow-anchor:none}@media(max-width:800px){.pe-sidebar{height:40dvh;max-height:40dvh}}}
.pe-workspace .pe-panel input[type=color]{min-height:36px}.pe-workspace .pe-panel label{line-height:1.5}.tool-guide p{line-height:1.8}

#sa-chat{position:static!important;margin:16px;display:flex;justify-content:flex-end}#sa-panel{position:fixed;right:16px;bottom:76px}
