.pe-categories{display:block;grid-column:1/-1;min-width:0}.pe-cat-head{display:flex;align-items:baseline;gap:10px;grid-column:1/-1}.pe-cat-head .pe-heading,.pe-cat-head .pe-cat-summary{margin:0}.pe-cat-summary{margin:0 0 4px;font-weight:600}.pe-cat-tags{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.pe-cat-tag{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:32px;padding:4px 8px;border:1px solid #E0DBE5;border-radius:999px;background:#F5F1FC;word-break:break-word}.pe-cat-tag button{width:24px;height:24px;padding:0;border:0;border-radius:50%;background:transparent;color:#4A4453;font-size:18px;line-height:1;cursor:pointer}.pe-cat-search,.pe-cat-only{display:flex;align-items:center;gap:8px;min-height:44px;margin:0}.pe-cat-search input{flex:1;min-width:0;min-height:40px;padding:8px;border:1px solid #E0DBE5;border-radius:8px;font:inherit}.pe-cat-tree{max-height:280px;overflow:auto;overflow-x:hidden;margin-top:8px;padding:4px 8px;border:1px solid #E0DBE5;border-radius:8px}.pe-cat-row{display:flex;align-items:center;gap:8px;min-height:44px;margin:0;word-break:break-word}.pe-cat-child{padding-left:28px}.pe-cat-row input{appearance:none;width:22px;height:22px;flex:0 0 auto;margin:0;border:1px solid #7F63BE;border-radius:4px;background:#fff;display:grid;place-items:center;font:16px/1 system-ui;color:#fff}.pe-cat-row input:checked,.pe-cat-row input:indeterminate{background:#7F63BE}.pe-cat-row input:checked::after{content:'✓'}.pe-cat-row input:indeterminate::after{content:'−'}.pe-cat-row input:disabled{opacity:.45}.pe-cat-empty{margin:0 0 8px 28px;color:#8A8492}.workbench-app .wb-drawer label.pe-cat-row,.workbench-app .wb-drawer label.pe-cat-only,.module-body label.pe-cat-row,.module-body label.pe-cat-only{flex-direction:row;align-items:center}.pe-cat-row>span{min-width:0;flex:1 1 auto}.pe-cat-group{font-weight:600}.pe-cat-tree{padding:2px 6px}
.pe-hint{color:#8A8492;font-size:13px;grid-column:1/-1}
/* The section wrappers only group fields; wide editors (the workbench full page) lay them out, elsewhere their fields stay in the form grid. */
.pe-top,.pe-specs{display:contents}
.pe-heading{grid-column:1/-1;margin:0;font-size:15px;font-weight:650;color:#1F1A26}
.pe-desc{grid-column:1/-1}.pe-images{position:relative;display:flex;flex-wrap:wrap;gap:12px;list-style:none;padding:4px;margin:12px 0 20px;grid-column:1/-1}.pe-images .pe-card{position:relative;flex:0 0 112px;width:112px;height:112px;border:1px solid #E0DBE5;border-radius:12px;background:#F5F1FC;cursor:grab;touch-action:pan-y;user-select:none;box-sizing:border-box}.pe-card:focus-visible{outline:3px solid #7F63BE;outline-offset:3px}.pe-images .pe-card img{width:100%;height:100%;object-fit:contain;border-radius:12px;display:block;pointer-events:auto}.pe-image-badge{position:absolute;left:5px;top:5px;background:#7F63BE;color:#fff;padding:2px 7px;border-radius:6px;font-size:12px;pointer-events:none}.pe-images .pe-card .pe-remove{position:absolute;right:4px;top:4px;width:24px;height:24px;padding:0;margin:0;border:1px solid #E0DBE5;border-radius:50%;background:#fff;color:#4A4453;font-size:20px;line-height:20px;cursor:pointer}.pe-images .pe-card.pe-dragging{outline:none;border:2px dashed #7F63BE;background:#eee5fa;cursor:grabbing}.pe-card.pe-dragging>*{visibility:hidden}.pe-ghost{position:fixed;width:112px;height:112px;box-sizing:border-box;border:2px solid #7F63BE;border-radius:12px;background:#fff;box-shadow:0 16px 34px #38204b66,0 3px 8px #38204b33;transform:scale(1.06);pointer-events:none;z-index:1000}.pe-ghost img{display:block;width:100%;height:100%;object-fit:contain;border-radius:10px}.pe-drag-hint{position:absolute;left:5px;bottom:5px;padding:2px 6px;border-radius:5px;background:#fffffff0;color:#674289;font:12px/1.5 system-ui;opacity:0;pointer-events:none}.pe-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(hover:hover) and (pointer:fine){fieldset:not(:disabled) .pe-images:not(.pe-sorting) .pe-card:is(:hover,:focus-visible){transform:translateY(-2px);box-shadow:0 5px 12px #7F63BE2b;border-color:#7F63BE}fieldset:not(:disabled) .pe-images:not(.pe-sorting) .pe-card:is(:hover,:focus-visible) .pe-drag-hint{opacity:1}}

.pe-lightbox{position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:rgba(20,16,28,.94);color:#fff;overflow:hidden}.pe-lightbox::backdrop{background:rgba(20,16,28,.85)}.pe-lightbox-bar{position:absolute;top:0;left:0;right:0;height:72px;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:2;box-sizing:border-box}.pe-tools{display:flex;align-items:center;gap:12px}.pe-lightbox button{margin:0;padding:0;min-width:40px;height:40px;border:1px solid #83748f;border-radius:8px;background:#40344f;color:white;font:24px/1 system-ui;cursor:pointer}.pe-lightbox button:focus-visible{outline:3px solid #cbb2f1;outline-offset:3px}.pe-stage{position:absolute;inset:80px 70px 28px;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none}.pe-stage img{display:block;max-width:100%;max-height:100%;object-fit:contain;user-select:none;flex-shrink:0}.pe-stage.pe-zoomed img{cursor:grab}.pe-stage.pe-zoomed img:active{cursor:grabbing}.pe-lightbox .pe-prev,.pe-lightbox .pe-next{position:absolute;top:50%;z-index:2}.pe-prev{left:16px}.pe-next{right:16px}.pe-count,.pe-zoom{font:14px/1.5 system-ui;white-space:nowrap}
@media(max-width:760px){.pe-categories{min-width:0}.pe-lightbox-bar{padding:12px}.pe-tools{gap:6px}.pe-stage{inset:80px 48px 20px}.pe-prev{left:4px}.pe-next{right:4px}.pe-images{gap:10px}}
