.dw-studio{--studio-bg:#f0f5ff;--studio-line:#c9d8f1;--studio-dark:#152951;--studio-accent:#234acc;line-height:1.5}
.dw-studio [hidden]{display:none!important}
.dw-studio-workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(12px,3vw,26px);align-items:start}
.dw-studio-controls{display:grid;gap:15px;min-width:0}
.dw-studio-fields{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.dw-studio label{display:grid;gap:5px;min-width:0;font-size:.95rem;font-weight:700;color:var(--studio-dark)}
.dw-studio :is(input,textarea,select){box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid var(--studio-line);border-radius:9px;background:#fff;color:var(--studio-dark);font:inherit;padding:8px}
.dw-studio input[type=checkbox]{width:1.25em;min-height:1.25em;accent-color:var(--studio-accent)}
.dw-studio input[type=range]{padding:0;accent-color:var(--studio-accent)}
.dw-studio input[type=file]{font-size:.9rem}
.dw-studio .dw-studio-drop{border:1px dashed #7496d8;padding:16px;border-radius:14px;background:var(--studio-bg)}
.dw-studio .dw-studio-drop[data-over]{background:#dce9ff;border-style:solid}
.dw-studio-preview{border:1px solid var(--studio-line);border-radius:17px;background:var(--studio-bg);padding:12px;display:grid;place-items:center;gap:8px}
.dw-studio-preview canvas{display:block;max-width:100%;width:auto;height:auto;max-height:420px;border-radius:10px;background:conic-gradient(#e7edf9 25%,#fff 0 50%,#e7edf9 0 75%,#fff 0) 0 0/20px 20px}
.dw-studio-preview p{margin:0;font-size:.9rem}
.dw-studio button,.dw-studio-results a{min-height:44px;padding:9px 15px;border:0;border-radius:9px;background:var(--studio-accent);color:#fff;font:inherit;font-weight:750;cursor:pointer;text-decoration:none}
.dw-studio button:disabled{opacity:.6;cursor:wait}
.dw-studio-actions{display:flex;gap:10px;flex-wrap:wrap}
.dw-studio [data-studio-cancel]{color:var(--studio-dark);background:var(--studio-bg)}
.dw-studio-results{list-style:none;padding:0;margin:12px 0;display:grid;gap:7px}
.dw-studio-results li{border:1px solid var(--studio-line);border-radius:10px;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;overflow-wrap:anywhere}
.dw-studio-status:empty{display:none}
.dw-pdf-order{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(190px,100%),1fr));gap:10px;list-style:none;margin:16px 0;padding:0}
.dw-pdf-order li{display:grid;gap:8px;min-width:0;padding:10px;border:1px solid var(--studio-line);border-radius:12px;background:var(--studio-bg);overflow-wrap:anywhere}
.dw-pdf-thumb{display:grid;place-items:center;min-height:154px;border-radius:8px;background:white}
.dw-pdf-thumb canvas{width:auto;height:auto;max-width:126px;max-height:126px;transform:rotate(var(--rotation,0deg))}
.dw-pdf-actions{display:flex;gap:4px;flex-wrap:wrap}
.dw-studio .dw-pdf-actions button{min-width:40px;padding:5px}
.dw-studio a[data-organize-download]:not([hidden]){display:inline-flex;align-items:center;min-height:44px;color:#163f9e;font-weight:750}
.dw-template-options{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.dw-studio .dw-template-options button{min-height:48px;border:2px solid transparent;padding:5px 4px;overflow-wrap:anywhere;background:linear-gradient(130deg,var(--swatch-dark),var(--swatch-light));font-size:.78rem;text-shadow:0 1px 4px #000}
.dw-studio .dw-template-options button[aria-pressed=true]{border-color:#fff;outline:2px solid #234acc;outline-offset:0}
.dw-template-options [data-template-choice=editorial]{--swatch-dark:#18232f;--swatch-light:#605347}
.dw-template-options [data-template-choice=sale]{--swatch-dark:#761545;--swatch-light:#994c3a}
.dw-template-options [data-template-choice=food]{--swatch-dark:#213a30;--swatch-light:#625239}
.dw-template-options [data-template-choice=travel]{--swatch-dark:#0a3444;--swatch-light:#246348}
.dw-template-options [data-template-choice=sports]{--swatch-dark:#19192f;--swatch-light:#2b4ccd}
.dw-template-options [data-template-choice=tech]{--swatch-dark:#171c36;--swatch-light:#5639bd}
.dw-template-options [data-template-choice=beauty]{--swatch-dark:#591c43;--swatch-light:#9b5769}
.dw-template-options [data-template-choice=education]{--swatch-dark:#572341;--swatch-light:#995143}
@media(max-width:650px){.dw-studio-workbench{grid-template-columns:minmax(0,1fr)}.dw-studio-preview canvas{max-height:240px}}
@media(max-width:400px){.dw-studio-fields{grid-template-columns:minmax(0,1fr)}}
