.cc-dpe{--goc-green:#14532d;--goc-accent:#15803d;--goc-border:#d7dee7;--goc-muted:#64748b;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#1f2937;max-width:1560px;margin:18px auto;border:1px solid var(--goc-border);border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 8px 28px rgba(15,23,42,.06)}
.cc-dpe *{box-sizing:border-box}.cc-dpe [hidden]{display:none!important}.cc-dpe button,.cc-dpe input,.cc-dpe select{font:inherit}.cc-dpe button{border:1px solid #cbd5e1;background:#fff;color:#1f2937;border-radius:7px;padding:8px 11px;cursor:pointer;line-height:1.3}.cc-dpe button:hover:not(:disabled){border-color:#15803d;background:#f0fdf4}.cc-dpe button:disabled{opacity:.48;cursor:not-allowed}.cc-dpe .cc-dpe-primary{background:#166534;color:#fff;border-color:#166534}.cc-dpe .cc-dpe-primary:hover:not(:disabled){background:#14532d;color:#fff}
.cc-dpe-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;background:#123b2b;color:#fff}.cc-dpe-header h2{font-size:23px;line-height:1.2;margin:0;color:#fff;font-weight:750}.cc-dpe-header p{margin:5px 0 0;font-size:13px;color:#d1fae5}.cc-dpe-language label{display:block;font-size:12px;margin-bottom:4px;color:#ecfdf5}.cc-dpe-language select{min-width:108px;min-height:34px;padding:5px;border:1px solid #a7cdb7;border-radius:7px;background:#fff;color:#111827}
.cc-dpe-notice{padding:12px 18px;background:#f0fdf4;color:#14532d;font-size:13px;line-height:1.55;border-bottom:1px solid #bbf7d0}.cc-dpe-notice strong{display:inline-block;font-size:14px;margin-bottom:2px}.cc-dpe-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 18px;border-bottom:1px solid #e5e7eb;background:#fff}.cc-dpe-toolbar button{font-size:12px}.cc-dpe-modebar{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:12px 18px;background:#f8fafc;border-bottom:1px solid #e5e7eb}.cc-dpe-mode-label{font-size:12px;color:#475569;font-weight:700}.cc-dpe-modebar label{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:650;color:#334155;cursor:pointer}.cc-dpe-modebar input{accent-color:#166534}
.cc-dpe-layout{display:grid;grid-template-columns:minmax(270px,340px) minmax(0,1fr);align-items:stretch}.cc-dpe-controls{min-width:0;padding:16px;border-right:1px solid #e5e7eb;background:#fff}.cc-dpe-controls section{padding:0 0 17px;margin:0 0 16px;border-bottom:1px solid #e5e7eb}.cc-dpe-controls section:last-child{margin-bottom:0;border-bottom:0}.cc-dpe-controls h3{font-size:15px;margin:0 0 12px;color:#14532d}.cc-dpe-controls label{display:block;margin:10px 0;font-size:12px;line-height:1.4;font-weight:650;color:#334155}.cc-dpe-controls label>input:not([type=checkbox]):not([type=range]):not([type=file]),.cc-dpe-controls select{display:block;width:100%;margin-top:5px;min-height:35px;border:1px solid #cbd5e1;border-radius:7px;padding:6px 8px;background:#fff;color:#111827;max-width:100%}.cc-dpe-controls input[type=range]{display:block;width:100%;margin-top:8px;accent-color:#15803d}.cc-dpe-controls input[type=checkbox]{margin:0 6px 0 0;accent-color:#15803d}.cc-dpe-controls .cc-dpe-check{display:flex;align-items:center;gap:5px}.cc-dpe-controls output{float:right;color:#166534;font-variant-numeric:tabular-nums;font-size:11px}.cc-dpe-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}.cc-dpe-two label{min-width:0}.cc-dpe-two input{width:100%;min-width:0}.cc-dpe-help{font-size:12px;line-height:1.55;color:#64748b;margin:9px 0}.cc-dpe-upload-box{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:130px;padding:15px;border:2px dashed #9ca3af;border-radius:11px;background:#f8fafc;text-align:center;color:#334155;cursor:pointer;transition:border-color .12s,background .12s}.cc-dpe-upload-box strong{font-size:13px}.cc-dpe-upload-box span{font-size:11px;color:#64748b}.cc-dpe-upload-box:hover,.cc-dpe-upload-box.is-dragover{border-color:#15803d;background:#f0fdf4}.cc-dpe-upload-box:focus-visible{outline:3px solid #86efac;outline-offset:2px}.cc-dpe-file{display:inline-flex!important;position:relative;align-items:center;justify-content:center;min-height:33px;margin:0!important;padding:7px 12px!important;border:1px solid #166534;border-radius:7px;background:#166534;color:#fff!important;font-size:12px!important;cursor:pointer}.cc-dpe-file input[type=file]{position:absolute!important;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.cc-dpe-page-actions{display:flex;gap:6px;margin:8px 0}.cc-dpe-page-actions button{font-size:11px;flex:1}.cc-dpe-page-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:9px 0 14px}.cc-dpe-page-tab{font-size:11px!important;padding:6px 8px!important}.cc-dpe-page-tab.is-active{background:#dcfce7!important;border-color:#15803d!important;color:#14532d!important;font-weight:750}.cc-dpe-asset-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:15px 0 7px;font-size:12px}.cc-dpe-asset-head span{font-size:11px;color:#64748b}.cc-dpe-asset-list{display:flex;flex-direction:column;gap:7px;max-height:300px;overflow:auto}.cc-dpe-asset-card{display:flex;align-items:center;gap:8px;min-width:0;padding:7px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.cc-dpe-asset-card img{flex:0 0 48px;width:48px;height:42px;object-fit:contain;background:#f8fafc;border:1px solid #e2e8f0;border-radius:4px}.cc-dpe-asset-details{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}.cc-dpe-asset-name{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#334155}.cc-dpe-asset-details button{padding:4px 7px;font-size:10px}.cc-dpe-object-controls.is-disabled{opacity:.56}.cc-dpe-object-actions{display:flex;gap:7px;margin-top:9px}.cc-dpe-object-actions button{flex:1;font-size:11px}.cc-dpe-move-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:end;margin-top:8px}.cc-dpe-move-row label{margin:0}.cc-dpe-move-row button{font-size:11px}.cc-dpe-move-row select{min-width:95px}
.cc-dpe-preview-wrap{padding:18px;min-width:0;background:#eef2f7}.cc-dpe-preview-title{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px;font-size:14px}.cc-dpe-preview-title span{font-size:12px;color:#64748b}.cc-dpe-workspace-legend{display:flex;justify-content:space-around;gap:12px;margin:0 0 8px;font-size:12px;font-weight:750;color:#14532d}.cc-dpe-workspace-legend span{flex:1;text-align:center;padding:7px;border:1px solid #bbf7d0;border-radius:7px;background:#f0fdf4}.cc-dpe-stage{position:relative;display:flex;justify-content:center;align-items:flex-start;min-height:300px;padding:12px;overflow:auto;overscroll-behavior:contain;background:#dce3eb;border:1px solid #cbd5e1;border-radius:10px}.cc-dpe-canvas{display:block;max-width:100%;height:auto;background:#fff;box-shadow:0 4px 18px rgba(15,23,42,.15);cursor:default;touch-action:none;user-select:none;-webkit-user-select:none;image-rendering:auto}.cc-dpe-empty{align-self:center;text-align:center;padding:50px 12px;color:#64748b;font-size:14px}.cc-dpe-error{display:none;padding:12px 18px;background:#fef2f2;color:#991b1b;font-size:13px;line-height:1.5}.cc-dpe-error.is-visible{display:block}
.cc-dpe-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}.cc-dpe-modal[hidden]{display:none!important}.cc-dpe-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.76)}.cc-dpe-modal-panel{position:relative;z-index:1;display:flex;flex-direction:column;width:min(1040px,96vw);max-height:94vh;overflow:hidden;background:#fff;border-radius:14px;box-shadow:0 24px 80px rgba(0,0,0,.35);color:#1f2937}.cc-dpe-modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;border-bottom:1px solid #e5e7eb}.cc-dpe-modal-head h3{margin:0;font-size:18px;line-height:1.3}.cc-dpe-modal-head p{margin:3px 0 0;font-size:12px;color:#64748b;overflow-wrap:anywhere}.cc-dpe-modal-head button{font-size:24px;line-height:1;padding:5px 10px}.cc-dpe-modal-stage-wrap{display:flex;align-items:center;justify-content:center;min-height:160px;max-height:48vh;overflow:auto;padding:12px;background:#e2e8f0;overscroll-behavior:contain}.cc-dpe-modal .cc-dpe-crop-stage{position:relative;display:inline-block;flex:0 0 auto;max-width:none;max-height:none;vertical-align:top;touch-action:none;line-height:0}.cc-dpe-modal .cc-dpe-edit-canvas{display:block;max-width:none!important;max-height:none!important;width:auto;height:auto;background:#fff;touch-action:none;user-select:none}.cc-dpe-modal .cc-dpe-crop-box{position:absolute;left:0;top:0;box-sizing:border-box;border:2px solid #16a34a;box-shadow:0 0 0 9999px rgba(15,23,42,.42);touch-action:none;cursor:move;max-width:none}.cc-dpe-modal .cc-dpe-crop-box i{position:absolute;display:block;width:14px;height:14px;background:#fff;border:2px solid #15803d;border-radius:3px;transform:translate(-50%,-50%);touch-action:none}.cc-dpe-modal .cc-dpe-crop-box i[data-handle=nw]{left:0;top:0;cursor:nwse-resize}.cc-dpe-modal .cc-dpe-crop-box i[data-handle=n]{left:50%;top:0;cursor:ns-resize}.cc-dpe-modal .cc-dpe-crop-box i[data-handle=ne]{left:100%;top:0;cursor:nesw-resize}.cc-dpe-modal .cc-dpe-crop-box i[data-handle=e]{left:100%;top:50%;cursor:ew-resize}.cc-dpe-modal .cc-dpe-crop-box i[data-handle=se]{left:100%;top:100%;cursor:nwse-resize}.cc-dpe-modal .cc-dpe-crop-box i[data-handle=s]{left:50%;top:100%;cursor:ns-resize}.cc-dpe-modal .cc-dpe-crop-box i[data-handle=sw]{left:0;top:100%;cursor:nesw-resize}.cc-dpe-modal .cc-dpe-crop-box i[data-handle=w]{left:0;top:50%;cursor:ew-resize}.cc-dpe-modal-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 18px;overflow:auto;padding:12px 18px;border-top:1px solid #e5e7eb}.cc-dpe-modal-tools label{display:block;margin:0;font-size:12px;font-weight:650;color:#334155}.cc-dpe-modal-tools output{float:right;color:#166534;font-variant-numeric:tabular-nums}.cc-dpe-modal-tools input[type=range]{display:block;width:100%;margin-top:8px;accent-color:#15803d}.cc-dpe-modal-tools select{display:block;width:100%;margin-top:7px;min-height:32px}.cc-dpe-modal-tools input[type=checkbox]{margin:8px 6px 0 0;accent-color:#15803d}.cc-dpe-modal-footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:12px 18px;border-top:1px solid #e5e7eb;background:#f8fafc}.cc-dpe-modal-footer [data-crop-reset]{margin-right:auto}.cc-dpe-cropping{overflow:hidden}
@media(max-width:1000px){.cc-dpe-layout{grid-template-columns:minmax(250px,300px) minmax(0,1fr)}.cc-dpe-controls{padding:12px}.cc-dpe-preview-wrap{padding:12px}.cc-dpe-stage{padding:8px}}
@media(max-width:760px){.cc-dpe-header{align-items:flex-start;flex-direction:column}.cc-dpe-layout{grid-template-columns:1fr}.cc-dpe-controls{border-right:0;border-bottom:1px solid #e5e7eb}.cc-dpe-preview-wrap{padding:10px}.cc-dpe-toolbar{gap:6px;padding:10px}.cc-dpe-toolbar button{flex:1;text-align:center}.cc-dpe-modebar{gap:9px}.cc-dpe-mode-label{width:100%}.cc-dpe-modebar label{flex:1;min-width:100px}.cc-dpe-preview-title{align-items:flex-start;flex-direction:column}.cc-dpe-stage{padding:5px;min-height:220px}.cc-dpe-workspace-legend{font-size:10px}.cc-dpe-modal{padding:5px}.cc-dpe-modal-panel{width:100%;max-height:98vh;border-radius:10px}.cc-dpe-modal-head{padding:10px 12px}.cc-dpe-modal-stage-wrap{max-height:38vh;min-height:120px;padding:7px}.cc-dpe-modal-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px 12px;max-height:35vh}.cc-dpe-modal-footer{padding:10px 12px}.cc-dpe-upload-box{min-height:110px}}
@media(prefers-reduced-motion:reduce){.cc-dpe *{scroll-behavior:auto!important;transition:none!important}}

/* v1.4.0: restored Page / ID work-mode layout and page document manager */
.cc-dpe-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;margin:12px 18px 0;padding:18px 14px;min-height:92px;border:2px dashed #9ca3af;border-radius:11px;background:#f8fafc;text-align:center;color:#334155;cursor:pointer;transition:border-color .12s,background .12s}
.cc-dpe-dropzone strong{font-size:13px}.cc-dpe-dropzone span{font-size:11px;color:#64748b}.cc-dpe-dropzone:hover,.cc-dpe-dropzone.is-dragover{border-color:#15803d;background:#f0fdf4}.cc-dpe-dropzone:focus-visible{outline:3px solid #86efac;outline-offset:2px}
.cc-dpe-page-list-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:15px 0 7px;font-size:12px}.cc-dpe-page-list-head span{font-size:11px;color:#64748b}
.cc-dpe-page-actions{display:flex;gap:6px;margin:8px 0}.cc-dpe-page-actions button{font-size:11px;flex:1}
.cc-dpe-page-list{display:flex;flex-direction:column;gap:5px;max-height:270px;overflow:auto;margin-top:8px}.cc-dpe-page-row{display:grid;grid-template-columns:22px minmax(0,1fr) 25px;gap:5px;align-items:center;padding:4px;border:1px solid #e2e8f0;border-radius:7px;background:#fff}.cc-dpe-page-row.is-active{border-color:#15803d;background:#f0fdf4}.cc-dpe-page-select{margin:0!important;padding-left:3px}.cc-dpe-page-select input{margin:0!important}.cc-dpe-page-open{display:flex;align-items:center;gap:7px;min-width:0;text-align:left;padding:6px 5px!important;border:0!important;background:transparent!important;font-size:11px!important}.cc-dpe-page-number{display:inline-flex;align-items:center;justify-content:center;flex:0 0 22px;height:22px;border-radius:5px;background:#e2e8f0;font-weight:700}.cc-dpe-page-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cc-dpe-page-remove{border:0!important;padding:3px!important;font-size:16px!important;color:#991b1b!important;background:transparent!important}
.cc-dpe-modebar{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:12px 18px;background:#f8fafc;border-bottom:1px solid #e5e7eb}.cc-dpe-modebar label{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:650;color:#334155;cursor:pointer}.cc-dpe-modebar input,.cc-dpe-side-choice input{accent-color:#166534}
.cc-dpe-mode-id .cc-dpe-dropzone{display:none}.cc-dpe-mode-id .cc-dpe-file-main{display:none!important}.cc-dpe-mode-page [data-work-panel="id"]{display:none}.cc-dpe-mode-id [data-work-panel="page"]{display:none}
.cc-dpe-side-choice{margin:12px 0;padding:10px;border:1px solid #d1d5db;border-radius:8px}.cc-dpe-side-choice legend{font-size:12px;font-weight:700;padding:0 5px}.cc-dpe-side-choice label{display:inline-flex!important;align-items:center;gap:6px;margin:4px 10px 4px 0!important}
@media(max-width:760px){.cc-dpe-dropzone{margin:10px 10px 0;padding:13px 8px}.cc-dpe-page-row{grid-template-columns:22px minmax(0,1fr) 25px}.cc-dpe-side-choice label{width:100%;margin:5px 0!important}}

/* v1.5.0 targeted enhancements: draggable page ordering and true perspective corners. */
.cc-dpe-page-row[draggable="true"],.cc-dpe-page-tab[draggable="true"]{cursor:grab;touch-action:pan-y}
.cc-dpe-page-row.is-dragging,.cc-dpe-page-tab.is-dragging{opacity:.48;cursor:grabbing}
.cc-dpe-page-row.is-drop-target,.cc-dpe-page-tab.is-drop-target{outline:2px dashed #15803d;outline-offset:1px;background:#dcfce7!important}
.cc-dpe-perspective-overlay{position:absolute;left:0;top:0;z-index:5;display:block;max-width:none;max-height:none;overflow:visible;touch-action:none;user-select:none}
.cc-dpe-perspective-overlay polygon{fill:rgba(22,163,74,.15);stroke:#16a34a;stroke-width:4;vector-effect:non-scaling-stroke;pointer-events:none}
.cc-dpe-perspective-overlay circle{fill:#fff;stroke:#15803d;stroke-width:3;vector-effect:non-scaling-stroke;cursor:move;touch-action:none;pointer-events:all}
.cc-dpe-perspective-control{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-width:0}
.cc-dpe-perspective-control button{font-size:12px;min-height:34px}
.cc-dpe-perspective-control span{font-size:11px;color:#64748b;line-height:1.35}
@media(max-width:760px){.cc-dpe-perspective-control{grid-column:1/-1}.cc-dpe-perspective-control button{width:100%}}

.cc-dpe-delete-confirm{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:12px 18px;background:#fff7ed;border-top:1px solid #fed7aa;color:#9a3412;font-size:13px;line-height:1.5}.cc-dpe-delete-confirm>div{display:flex;gap:8px}.cc-dpe .cc-dpe-danger{background:#b91c1c;color:#fff;border-color:#b91c1c}.cc-dpe .cc-dpe-danger:hover:not(:disabled){background:#991b1b;color:#fff}
