.vp-tool{max-width:1120px;margin:0 auto;background:#fbfcfa;border:1px solid var(--vp-line);border-radius:16px;box-shadow:0 8px 24px rgba(23,62,68,.05);padding:12px}
.vp-topline{display:flex;align-items:center;gap:8px;color:var(--vp-muted);font-size:12px;letter-spacing:.12em;font-weight:800;margin:0 0 8px}
.vp-dot{width:7px;height:7px;border-radius:50%;background:var(--vp-accent)}
.vp-privacy{margin-left:auto;background:#eaf3ee;color:#277369;border-radius:20px;padding:5px 8px;letter-spacing:0;font-size:12px}
.vp-workbench{display:grid;grid-template-columns:minmax(300px,340px) minmax(0,1fr);gap:12px;align-items:stretch}
.vp-panel{display:flex;flex-direction:column;gap:9px;background:#f4f6f3;border:1px solid #e1e7e2;border-radius:12px;padding:11px}
.vp-upload{display:block;text-align:center;background:#173e44;color:white;padding:10px;border-radius:9px;font-weight:700;cursor:pointer}
.vp-upload span{font-size:18px;margin-right:6px}
.vp-select-wrap{display:flex;flex-direction:column;gap:4px}
.vp-select-wrap label,.vp-sheet-options label{font-size:12px;font-weight:700;color:#506966}
.vp-select-wrap select,.vp-sheet-options select{border:1px solid #d8e1dd;background:white;border-radius:8px;padding:8px;color:#173e44;font:inherit;font-size:12px}
.vp-custom{display:flex;gap:6px;align-items:end}.vp-custom div{flex:1;display:flex;flex-direction:column;gap:4px}.vp-custom label{font-size:12px;color:#617875}.vp-custom input{width:100%;padding:7px;border:1px solid #d8e1dd;border-radius:7px}.vp-custom button,.vp-buttons button{background:#fff;border:1px solid #d8e1dd;border-radius:8px;padding:8px;color:#173e44;font-weight:700;cursor:pointer}
.vp-adjust{display:grid;grid-template-columns:1fr;gap:7px}.vp-control label{display:flex;justify-content:space-between;font-size:12px;font-weight:700;color:#526c69;margin-bottom:1px}.vp-control output{font-weight:500;color:#6d817c}.vp-control input{width:100%;accent-color:#24766f}
.vp-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px}.vp-buttons button{font-size:12px}
.vp-sheet-options{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px}.vp-sheet-options small{grid-column:1/-1;color:#72837e;font-size:12px}
.vp-export-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:auto}.vp-export-buttons button{font-size:12px;font-weight:750;line-height:1.25;padding:10px 7px;border-radius:8px;cursor:pointer}.vp-primary{border:0;background:#d57d4e;color:#fff}.vp-sheet-btn{background:white;border:1px solid #d8e1dd;color:#173e44}
.vp-preview-panel{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid #e1e7e2;background:#fff;border-radius:12px;padding:9px}
.vp-view-tabs{display:flex;gap:5px;margin-bottom:7px}.vp-view-tabs button{flex:1;border:1px solid #e0e6e2;background:#f7f9f7;color:#58706b;padding:8px;border-radius:8px;font-size:12px;font-weight:700;cursor:pointer}.vp-view-tabs button.active{background:#173e44;color:white;border-color:#173e44}
.vp-preview-stage{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:250px;background:#e9efeb;border-radius:9px;overflow:hidden;padding:10px}
.vp-preview-stage canvas{display:block;max-width:100%;max-height:440px;width:auto;height:auto;object-fit:contain;touch-action:none;cursor:grab;background:#e9efeb}.vp-preview-stage canvas[hidden]{display:none}.vp-preview-stage canvas:active{cursor:grabbing}
.vp-empty{position:absolute;inset:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;color:#72837e;padding:18px;background:linear-gradient(135deg,#edf4ef,#fbfcfa)}.vp-empty[hidden]{display:none}.vp-empty-mark{width:48px;height:48px;border-radius:13px;background:#e2eee8;display:grid;place-items:center;font-size:22px;color:#24766f}.vp-empty strong{font-size:13px;color:#173e44}.vp-empty span{font-size:12px;max-width:260px}
.vp-preview-meta{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;padding:8px 0 2px;color:#687b77;font-size:12px}.vp-preview-meta #vp-spec-info{font-weight:700;text-align:right;white-space:nowrap}.vp-hint{font-size:12px;color:#71837e;margin:5px 0 0}.vp-tool [hidden]{display:none!important}
/* Desktop: control strip above a broad preview so all actions stay in the first fold. */
@media(min-width:900px){
.vp-tool{max-height:none;min-height:0;padding:10px}
.vp-workbench{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:9px}
.vp-panel{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(180px,1.2fr) minmax(170px,1fr) minmax(110px,.7fr) minmax(160px,1fr);grid-template-rows:auto auto;align-items:center;gap:8px;padding:9px}
.vp-upload{grid-column:1;grid-row:1;padding:9px}
.vp-select-wrap{grid-column:2;grid-row:1}
.vp-adjust{grid-column:1/4;grid-row:2;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.vp-buttons{grid-column:4;grid-row:1/3;grid-template-columns:1fr;align-content:center}
.vp-sheet-options{grid-column:5;grid-row:1;grid-template-columns:1fr;gap:3px}
.vp-sheet-options small{grid-column:1}
.vp-export-buttons{grid-column:5;grid-row:2;margin-top:0;align-self:end}
.vp-preview-panel{min-height:0}
.vp-preview-stage{min-height:260px}
.vp-preview-stage canvas{max-height:min(36vh,320px)}
}
@media(max-width:899px){
.vp-workbench{grid-template-columns:1fr}
.vp-panel{order:2}
.vp-preview-panel{order:1}
.vp-preview-stage{min-height:250px}
.vp-adjust{grid-template-columns:1fr 1fr}
.vp-control:first-child{grid-column:1/-1}
}
@media(max-width:480px){
.vp-tool{padding:9px;border-radius:12px}
.vp-panel{padding:10px}
.vp-adjust{gap:6px}
.vp-preview-stage{min-height:220px}
.vp-preview-meta{flex-direction:column}
.vp-preview-meta #vp-spec-info{text-align:left}
}