.pd-overlay{position:fixed;inset:0;z-index:999999;background:rgba(20,20,20,.58);display:none;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.pd-overlay.pd-open{display:flex}
.pd-overlay [hidden]{display:none!important}
.pd-panel{position:relative;display:grid;grid-template-columns:minmax(280px,520px) minmax(270px,370px);gap:28px;max-width:980px;width:100%;max-height:95vh;overflow:auto;background:#fff;border-radius:8px;padding:28px;box-sizing:border-box;color:#222;font:inherit;box-shadow:0 18px 55px rgba(0,0,0,.18)}
.pd-close{position:absolute;right:14px;top:10px;border:0;background:transparent;color:#555;font-size:28px;line-height:1;cursor:pointer;z-index:2}
.pd-stage{max-width:100%;overflow:hidden;touch-action:none;background:#f7f7f7}
.pd-stage canvas{max-width:100%}
.pd-sidebar h2{font-size:21px;line-height:1.3;margin:0 30px 20px 0;font-weight:600}
.pd-sidebar label{display:block;font-size:13px;font-weight:600;margin:17px 0 7px}
.pd-sidebar input[type=text],.pd-sidebar select{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #d6d6d6;border-radius:3px;background:#fff;color:inherit;font:inherit}
.pd-option-values{display:flex;flex-wrap:wrap;gap:8px}
.pd-option-value{min-width:66px;padding:9px 15px;background:#fff;color:inherit;border:1px solid #ccc;border-radius:3px;font:inherit;cursor:pointer}
.pd-option-value.is-selected{border-color:#222;box-shadow:inset 0 0 0 1px #222}
.pd-option-value:disabled{opacity:.45;cursor:not-allowed}
.pd-upload{display:flex;align-items:center;gap:14px;width:100%;min-height:88px;padding:16px;border:1px dashed #aaa;border-radius:4px;background:#fafafa;color:inherit;text-align:left;font:inherit;cursor:pointer}
.pd-upload:hover,.pd-upload.is-dragging{border-color:#333;background:#f4f4f4}
.pd-upload-icon{display:flex;align-items:center;justify-content:center;flex:none;width:42px;height:42px;border-radius:50%;background:#e9e9e9;font-size:25px;line-height:1}
.pd-upload-copy{display:flex;flex-direction:column;gap:4px}
.pd-upload-copy strong{font-size:14px;font-weight:600}
.pd-upload-copy small{color:#777;font-size:12px}
.pd-upload-preview{display:flex;align-items:center;gap:12px;min-height:64px;padding:8px;border:1px solid #ddd;border-radius:4px}
.pd-upload-thumb{width:54px;height:54px;object-fit:cover;border-radius:3px}
.pd-upload-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.pd-upload-change{border:0;background:transparent;color:inherit;text-decoration:underline;cursor:pointer;font:inherit}
.pd-actions{display:flex;gap:8px;margin-top:12px}
.pd-actions button{flex:1;padding:9px 10px;border:1px solid #d6d6d6;border-radius:3px;background:#fff;color:inherit;font:inherit;cursor:pointer}
.pd-actions button:hover{border-color:#222}
.pd-submit{border:1px solid #222;border-radius:3px;padding:12px 16px;background:#222;color:#fff;font:inherit;cursor:pointer}
.pd-submit{width:100%;margin-top:18px}
.pd-submit:disabled{opacity:.55;cursor:wait}
.pd-entry-row{display:block;clear:both;width:100%;margin:12px 0}
.pd-entry-row .pd-launch{display:flex;align-items:center;justify-content:center;width:100%;max-width:416px;box-sizing:border-box;cursor:pointer}
.pd-error{color:#b00020;min-height:20px;margin-top:8px;font-size:13px}
@media(max-width:720px){.pd-overlay{padding:8px}.pd-panel{grid-template-columns:1fr;gap:14px;padding:18px;max-height:98vh}.pd-stage{display:flex;justify-content:center}.pd-sidebar h2{margin-top:4px}}
