.advanced-editor-toolbar,.advanced-selection-toolbar,.advanced-text-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 16px;color:var(--text);font-size:14px}
.advanced-editor-toolbar{flex-direction:column;align-items:stretch}
.editor-history,.editor-snapping{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.editor-history[hidden],.editor-toolbar-actions[hidden]{display:none!important}
.editor-history button,.editor-toolbar-actions button{display:flex;align-items:center;justify-content:center;gap:5px}
.editor-history svg,.editor-toolbar-actions svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.advanced-editor-toolbar button,.advanced-selection-toolbar button,.advanced-text-toolbar button,.editor-snapping select{font:inherit;min-height:40px;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface-tint);color:var(--text);padding:8px 12px;cursor:pointer}
.editor-snapping label{display:flex;align-items:center;gap:6px}
.advanced-editor-toolbar [aria-pressed="true"],.advanced-text-toolbar [aria-pressed="true"]{border-color:#eac22c;background:#eac22c20}
.advanced-editor-toolbar button:disabled,.advanced-selection-toolbar button:disabled{opacity:.4;cursor:default}
.advanced-selection-toolbar[hidden],.advanced-text-toolbar[hidden]{display:none!important}
.editor-history-status:empty{display:none}
#config-card-front,#config-card-back{touch-action:none}
.editor-marquee{position:absolute;border:1px solid #f4c82d;background:#f4c82d26;z-index:100;pointer-events:none}
#konfigurator .config-card .multi-selected,#konfigurator .config-card .selected{outline:none!important}
#konfigurator .config-card .selected::after{content:none!important;display:none!important}
.multi-selection-active .desktop-rotate-handle:not([data-group-action]),.multi-selection-active .desktop-scale-handle:not([data-group-action]),.multi-selection-active .mobile-template-actions{display:none!important}
.studio-site .config-card{--editor-guide:#b9e8ff}
.studio-site .config-card.gold{--editor-guide:#263364}
.studio-site .config-card.rose{--editor-guide:#263b58}
.studio-site .config-card.blue{--editor-guide:#fff1ad}
.studio-site .config-card.navy{--editor-guide:#ffe799}
.studio-site .config-card.green{--editor-guide:#fff2ba}
.studio-site .config-card.red{--editor-guide:#beffff}
.studio-site .config-card.magenta{--editor-guide:#c4fff1}
.studio-site .config-card .editor-center-cross{position:absolute;inset:0;width:100%;height:100%;padding:0;margin:0;pointer-events:none;z-index:21;background:none;opacity:.85}
.editor-center-cross::before,.editor-center-cross::after{content:"";position:absolute;background:var(--editor-guide);pointer-events:none}
.editor-center-cross::before{left:50%;top:0;width:1px;height:100%;transform:translateX(-50%)}
.editor-center-cross::after{left:0;top:50%;width:100%;height:1px;transform:translateY(-50%)}
.editor-center-cross[hidden]{display:none!important}
.studio-site .config-card .preview-grid-overlay{background-image:linear-gradient(var(--editor-guide) 1px,transparent 1px),linear-gradient(90deg,var(--editor-guide) 1px,transparent 1px)!important;background-size:var(--editor-grid-x) var(--editor-grid-y)!important;background-position:calc(var(--editor-grid-origin-x) - .5px) calc(var(--editor-grid-origin-y) - .5px)!important;opacity:.3}
.desktop-mini-card .editor-center-cross,.cart-preview-card .editor-center-cross,.card-3d-face .editor-center-cross,.desktop-mini-card .editor-marquee,.cart-preview-card .editor-marquee{display:none!important}
@media(max-width:900px){.advanced-editor-toolbar,.advanced-selection-toolbar,.advanced-text-toolbar{margin:10px;gap:6px}.advanced-editor-toolbar button,.advanced-selection-toolbar button,.advanced-text-toolbar button,.editor-snapping select{min-height:44px;padding:8px 10px}.editor-history{display:grid;grid-template-columns:1fr 1fr}.editor-snapping{gap:6px}.advanced-text-toolbar span{width:100%}}
@media(max-width:900px){
 .advanced-editor-toolbar,.advanced-selection-toolbar,.advanced-text-toolbar{margin-left:64px}
 .advanced-editor-toolbar button{min-width:0}
 .studio-site .editor-topbar-tools-only{padding-left:54px!important}
}

.editor-snapping button{font:inherit;min-height:44px;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface-tint);color:var(--text);padding:8px 12px;cursor:pointer}
.studio-site .editor-snapping [aria-pressed="true"]{border-color:#eac22c;background:#eac22c20}
.studio-site .advanced-editor-toolbar{flex-direction:row;align-items:center;gap:8px 16px}
.studio-site .advanced-editor-toolbar .preview-tools{gap:8px;justify-content:flex-start}
.studio-site .advanced-editor-toolbar .preview-tools button{font:inherit;min-height:44px;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface-tint);color:var(--text);padding:8px 12px;cursor:pointer}
.studio-site .advanced-editor-toolbar .preview-tools [aria-pressed="true"]{border-color:#eac22c;background:#eac22c20}
.editor-history-status{flex-basis:100%}
.editor-link-layer{position:absolute;inset:0;z-index:45;pointer-events:none}
.editor-link-handle,.editor-delete-handle{position:absolute!important;display:grid;place-items:center;box-sizing:border-box;width:44px!important;height:44px!important;min-height:0!important;padding:6px!important;background:transparent!important;border:0!important;border-radius:50%;transform:translate(-50%,-50%) scale(var(--editor-control-scale,1));pointer-events:auto;touch-action:none;cursor:pointer;color:#24282d}
.editor-link-handle svg,.editor-delete-handle svg{box-sizing:border-box;width:32px;height:32px;padding:5px;border:1px solid #aa8934;border-radius:50%;background:#fff9e9;fill:none;stroke:currentColor;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.editor-link-handle[aria-pressed="true"] svg{background:#f4c82d;color:#24282d}
.editor-link-handle:focus-visible,.editor-delete-handle:focus-visible{outline:2px solid #24282d;border-radius:50%}
.editor-delete-handle[hidden]{display:none!important}
.config-card:has(>.editor-link-layer>.editor-delete-handle:not([hidden])) .template-delete-handle{display:none!important}
.desktop-mini-card .editor-link-layer,.cart-preview-card .editor-link-layer,.card-3d-face .editor-link-layer{display:none!important}
.studio-help-dialog [data-help-device][hidden]{display:none!important}
.studio-help-dialog .help-desktop-controls[hidden]{display:none!important}

.editor-stretch-frame{position:absolute;z-index:35;border:1px dashed #f4c82d;pointer-events:none;box-sizing:border-box}
.editor-stretch-handle{position:absolute!important;width:24px!important;height:24px!important;min-height:0!important;border:0!important;padding:0!important;background:transparent!important;pointer-events:auto;touch-action:none;transform:translate(-50%,-50%) scale(var(--editor-control-scale,1));border-radius:50%;cursor:ew-resize}
.editor-stretch-handle::after{content:"";position:absolute;inset:8px;border:1px solid #1d1730;background:#f4c82d;border-radius:50%}
.editor-stretch-handle[data-edge="left"]{left:0;top:50%}
.editor-stretch-handle[data-edge="right"]{left:100%;top:50%}
.editor-stretch-handle[data-edge="top"]{left:50%;top:0;cursor:ns-resize}
.editor-stretch-handle[data-edge="bottom"]{left:50%;top:100%;cursor:ns-resize}
.editor-stretch-handle:focus-visible{outline:2px solid #f4c82d;outline-offset:0}
.editor-stretch-handle[hidden]{display:none!important}
.editor-stretch-frame .desktop-rotate-handle,.editor-stretch-frame .desktop-scale-handle{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px;max-height:32px;box-sizing:border-box}
.editor-group-frame{border:1px dashed #f4c82d}
.editor-stretch-frame .desktop-rotate-handle,.editor-stretch-frame .desktop-scale-handle{right:auto;transform:translate(-50%,-50%) scale(var(--editor-control-scale,1))}
.desktop-mini-card .editor-stretch-frame,.cart-preview-card .editor-stretch-frame,.card-3d-face .editor-stretch-frame{display:none!important}

.studio-site .editor-test-downloads{margin:24px 0;padding:16px 24px;border:1px solid var(--line-strong);border-radius:16px;background:var(--surface)}
.studio-site .editor-test-downloads>summary{font-size:16px;cursor:pointer}
.studio-site .editor-test-downloads>summary span{font-size:16px}
.studio-site .editor-test-downloads .production-export-panel{margin-top:12px;padding:16px 0;background:transparent}
.studio-site .editor-test-downloads .production-export-copy h3{color:var(--text)}
.studio-site .editor-test-downloads .production-export-copy p{color:var(--muted);line-height:1.6}
.studio-site .editor-test-downloads .production-export-status{grid-column:1/-1;margin:0;color:var(--text)}

.studio-site .card-preview-toolbar{display:grid;grid-template-columns:max-content 44px 44px max-content;justify-content:center;align-items:center;gap:6px;padding:12px 16px 0!important;min-width:0}
.studio-site .card-preview-toolbar .orientation-switch{display:flex;flex-direction:column;gap:4px;align-items:stretch;justify-self:start;grid-column:1;grid-row:1}
.studio-site .card-preview-toolbar .side-switch{justify-self:center;min-width:0;grid-column:4;grid-row:1;flex-direction:column}
.editor-toolbar-actions{display:flex;flex-direction:column;gap:4px;grid-row:1}
.editor-history-actions{grid-column:3;justify-self:end}
.editor-clipboard-actions{grid-column:2;justify-self:start}
.editor-toolbar-actions button{font:inherit;width:44px!important;height:44px;min-height:44px!important;box-sizing:border-box;padding:10px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface-tint);color:var(--text);cursor:pointer}
.editor-toolbar-actions svg{width:22px;height:22px;flex:none;stroke-width:2}
.editor-toolbar-actions button:disabled{opacity:.4;cursor:default}
.editor-toolbar-actions button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.studio-site .card-preview-toolbar .side-tab{padding:7px 10px!important;white-space:nowrap}
.studio-site .card-preview-toolbar .tool-button,.studio-site .card-preview-toolbar .mini-button{font-size:14px;min-height:36px;padding:5px 7px;white-space:nowrap}
@media(min-width:901px) and (hover:hover) and (pointer:fine){
 .studio-site .desktop-preview-workspace>.card-preview-toolbar{grid-column:1;grid-row:1;padding-left:60px!important;padding-right:16px!important}
 .studio-site .card-preview-toolbar .orientation-switch{grid-column:1;grid-row:1;flex-direction:column;justify-self:start}
 .studio-site .card-preview-toolbar .side-switch{grid-column:4;grid-row:1;flex-direction:row}
 .studio-site .editor-history-actions{grid-column:3;grid-row:1}
 .studio-site .editor-clipboard-actions{grid-column:2;grid-row:1}
 .desktop-preview-workspace>.preview-stage{grid-column:1;grid-row:2}
 .desktop-preview-workspace>.desktop-side-previews{grid-column:2;grid-row:2}
 .studio-site .desktop-side-previews{gap:8px;padding:12px 0;min-width:0}
 .desktop-side-previews .object-inspector{width:100%;margin:0;box-sizing:border-box}
 .studio-site .desktop-side-previews .object-inspector .mobile-template-actions:not([hidden]){padding:8px;gap:8px}
 .desktop-side-previews .object-inspector .mobile-template-actions-row{display:grid;grid-template-columns:1fr 1fr;gap:6px}
 .desktop-side-previews .object-inspector .mobile-template-actions-label{grid-column:1/-1;font-size:12px;text-align:left}
 .desktop-side-previews .object-inspector .mini-button{min-height:34px;font-size:12px;line-height:1.3;padding:6px 4px;min-width:0}
 .desktop-side-previews .object-inspector .desktop-adjustment-grid,
 .desktop-side-previews #mobile-template-actions .mobile-template-actions-row:has(#mobile-center-template)>.mobile-template-actions-label,
 .desktop-side-previews #mobile-qr-value,.desktop-side-previews .mobile-qr-value-label,
 .desktop-side-previews #mobile-text-value,.desktop-side-previews #mobile-add-text-field,
 .desktop-side-previews #mobile-text-actions>.text-style-toolbar,
 .desktop-side-previews #mobile-text-actions>.mobile-template-actions-row:has(#mobile-text-font){display:none!important}
 .desktop-side-previews #desktop-reset-artwork{grid-column:1/-1;grid-row:3}
 .desktop-side-previews #desktop-center-text{display:block}
}
 .studio-site #panel-text .advanced-text-toolbar{margin:8px 0;gap:6px}
 .studio-site #panel-text .advanced-text-toolbar>span{width:100%;color:var(--text-soft)}
 .studio-site #panel-text .advanced-text-toolbar button{flex:1;min-width:0;padding:8px;font-size:14px}
 .studio-site #panel-text #selected-text-controls:not([hidden]){display:block!important;margin:12px 0 0;padding:0;border:0;background:transparent}
 .studio-site #panel-text #selected-text-controls>.artwork-editor-head,
 .studio-site #panel-text .selected-text-format-controls>label:has(#text-size),
 .studio-site #panel-text .selected-text-format-controls>label:has(#text-rotation){display:none!important}
@media(min-width:901px) and (max-width:1279px) and (hover:hover) and (pointer:fine){
 .studio-site .card-preview-toolbar .side-tab,.studio-site .card-preview-toolbar .tool-button,.studio-site .card-preview-toolbar .mini-button{font-size:12px!important;padding-inline:5px!important}
}
@media(max-width:620px), (any-pointer:coarse) and (max-width:1400px){
 .studio-site .card-preview-toolbar{padding:8px 8px 0 58px!important;gap:4px}
 .studio-site .card-preview-toolbar .side-switch{flex-direction:column}
 .studio-site .card-preview-toolbar .side-tab{min-height:36px!important;padding:6px!important}
 .studio-site .card-preview-toolbar .tool-button,.studio-site .card-preview-toolbar .mini-button{font-size:12px;min-height:40px;padding:5px}
 .studio-site .advanced-editor-toolbar{margin:10px 8px 4px 64px;display:flex;flex-direction:column;align-items:stretch;gap:8px}
 .studio-site .advanced-editor-toolbar .editor-snapping{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .studio-site .advanced-editor-toolbar .editor-snapping #editor-center-snap{grid-column:2;grid-row:1}
 .studio-site .advanced-editor-toolbar .editor-snapping label{grid-column:1/-1;justify-content:space-between}
 .studio-site .advanced-editor-toolbar .editor-snapping select{flex:1;max-width:150px}
 .studio-site .advanced-editor-toolbar .preview-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .studio-site .advanced-editor-toolbar button{padding:8px 5px;min-width:0}
 .studio-site .advanced-editor-toolbar .preview-tools button{padding:8px 5px;white-space:normal}
}
.studio-site[data-product="cork-coaster"] .card-preview-toolbar{grid-template-columns:44px 44px max-content}
.studio-site[data-product="cork-coaster"] .editor-history-actions{grid-column:2}
.studio-site[data-product="cork-coaster"] .card-preview-toolbar .side-switch{grid-column:3}
.studio-site[data-product="cork-coaster"] .editor-clipboard-actions{grid-column:1}
@media(max-width:360px){
 .studio-site:not([data-product="cork-coaster"]) .card-preview-toolbar{grid-template-columns:44px 44px max-content}
 .studio-site:not([data-product="cork-coaster"]) .card-preview-toolbar .orientation-switch{grid-column:1/3;justify-self:center}
 .studio-site:not([data-product="cork-coaster"]) .editor-history-actions{grid-column:2;grid-row:2}
 .studio-site:not([data-product="cork-coaster"]) .card-preview-toolbar .side-switch{grid-column:3;grid-row:1/3}
 .studio-site:not([data-product="cork-coaster"]) .editor-clipboard-actions{grid-column:1;grid-row:2}
}
