/* ShirtGo Designer – Layout & Komponenten (nutzt Tokens aus sg-ui.css) */
.dz-body { background: #fff; }
.dz { --dz-rail: 76px; --dz-panel: 312px; --dz-order: 368px; --dz-stage-bg: #F3F3F1; --dz-head: 76px;
  display: flex; flex-direction: column; height: calc(100vh - var(--dz-head) - 1px); height: calc(100dvh - var(--dz-head) - 1px); min-height: 660px; border-bottom: 1px solid var(--sg-line); }
.dz-body .ic { width: 20px; height: 20px; flex: 0 0 auto; display: block; }
.dz button { font-family: inherit; color: inherit; }
.dz-body .dz-muted { color: var(--sg-muted); font-weight: 500; }
.dz-body .dz-small { font-size: 12px; }
[hidden] { display: none !important; }

/* Buttons */
.dz-body .dz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--sg-r); border: 1px solid var(--sg-ink); background: var(--sg-ink); color: #fff !important; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; text-decoration: none; }
.dz-body .dz-btn .ic { width: 18px; height: 18px; }
.dz-body .dz-btn:hover { background: #2A2A2A; }
.dz-body .dz-btn-ghost { background: #fff; color: var(--sg-ink) !important; border-color: #D4D4D4; }
.dz-body .dz-btn-ghost:hover { background: var(--sg-soft); border-color: #9A9A9A; }
.dz-body .dz-btn-dark { background: var(--sg-ink); }
.dz-body .dz-btn-gold { background: var(--sg-gold); border-color: var(--sg-gold); color: #101010 !important; font-weight: 800; }
.dz-body .dz-btn-gold:hover { background: var(--sg-gold-d); border-color: var(--sg-gold-d); }
.dz-body .dz-btn-sm { height: 34px; padding: 0 10px; font-size: 12.5px; }
.dz-body .dz-btn-block { width: 100%; height: 52px; font-size: 15.5px; }
.dz-body .dz-btn[disabled] { opacity: .5; cursor: not-allowed; }
.dz-body .dz-btn.is-busy::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sgspin .7s linear infinite; }
.dz-body .dz-icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; background: transparent; border-radius: var(--sg-r); cursor: pointer; color: #2B2B2B; padding: 0; }
.dz-body .dz-icon-btn:hover { background: #fff; border-color: var(--sg-line); }
.dz-body .dz-icon-btn[disabled] { opacity: .35; cursor: default; background: transparent; border-color: transparent; }
.dz-body .dz-icon-btn.is-on { background: var(--sg-ink); color: #fff; }
.dz-body .dz-icon-btn.dz-danger:hover { color: var(--sg-err); }
.dz-body .dz-link { background: none; border: 0; padding: 0; font-weight: 700; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--sg-ink); }
.dz-body .dz-link:hover { color: var(--sg-gold-d); }
.dz-body .dz-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border: 1px solid #D9D9D9; border-radius: 999px; background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.dz-body .dz-chip .ic { width: 17px; height: 17px; }
.dz-body .dz-chip:hover { border-color: var(--sg-ink); }

/* Titelleiste */
.dz-body .dz-bar { display: flex; align-items: center; gap: 16px; padding: 0 20px; height: 58px; border-bottom: 1px solid var(--sg-line); flex: 0 0 auto; background: #fff; }
.dz-body .dz-bar-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.dz-body .dz-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sg-gold-d); }
.dz-body .dz-bar-product { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.dz-body .dz-bar-status { font-size: 12.5px; color: var(--sg-muted); margin-left: auto; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.dz-body .dz-bar-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sg-ok); display: inline-block; }
.dz-body .dz-bar-actions { display: flex; gap: 8px; }

/* Raster */
.dz-body .dz-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: var(--dz-rail) var(--dz-panel) minmax(0, 1fr) var(--dz-order); }

/* Rail */
.dz-body .dz-rail { border-right: 1px solid var(--sg-line); display: flex; flex-direction: column; padding: 10px 8px; gap: 4px; background: #fff; }
.dz-body .dz-rail-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 4px 9px; border: 0; background: none; border-radius: var(--sg-r); cursor: pointer; font-size: 11.5px; font-weight: 700; color: #5A5A5A; }
.dz-body .dz-rail-btn .ic { width: 22px; height: 22px; }
.dz-body .dz-rail-btn:hover { background: var(--sg-soft); color: var(--sg-ink); }
.dz-body .dz-rail-btn[aria-selected="true"] { background: var(--sg-ink); color: #fff; }
.dz-body .dz-rail-order { display: none; }
.dz-body .dz-rail-count { position: absolute; top: 5px; right: 9px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--sg-gold); color: #101010; font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }

/* Panel */
.dz-body .dz-panel { border-right: 1px solid var(--sg-line); display: flex; flex-direction: column; min-height: 0; background: #fff; }
.dz-body .dz-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.dz-body .dz-panel-head h2 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.dz-body .dz-sheet-close, .dz-body .dz-sheet-grip { display: none; }
.dz-body .dz-panel-body { overflow-y: auto; padding: 6px 18px 24px; flex: 1 1 auto; overscroll-behavior: contain; }
.dz-body .dz-sec { padding: 14px 0; border-bottom: 1px solid #F1F1F1; }
.dz-body .dz-sec:last-child { border-bottom: 0; }
.dz-body .dz-sec-h { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8A8A8A; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dz-body .dz-field-label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #8A8A8A; margin: 0 0 7px; }
.dz-body .dz-field-label .dz-muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.dz-body .dz-input, .dz-body .dz-select, .dz textarea { width: 100%; height: 40px; padding: 0 11px; border: 1px solid #DCDCDC; border-radius: var(--sg-r); font-size: 14px; background: #fff; color: var(--sg-ink); outline: none; }
.dz textarea { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.4; }
.dz-body .dz-input:focus, .dz-body .dz-select:focus, .dz textarea:focus { border-color: var(--sg-gold); box-shadow: 0 0 0 3px rgba(209,143,47,.15); }
.dz-body .dz-row { display: flex; gap: 8px; align-items: center; }
.dz-body .dz-row > * { min-width: 0; }
.dz-body .dz-grow { flex: 1 1 auto; }
.dz-body .dz-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dz-body .dz-field { display: block; margin-bottom: 12px; }
.dz-body .dz-range { display: grid; grid-template-columns: 1fr 58px; gap: 10px; align-items: center; }
.dz-body .dz-range input[type=range] { width: 100%; accent-color: var(--sg-ink); height: 24px; }
.dz-body .dz-range output, .dz-body .dz-range .dz-num { font-size: 12.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.dz-body .dz-num { width: 58px; height: 32px; border: 1px solid #DCDCDC; border-radius: var(--sg-r); padding: 0 6px; text-align: right; }
.dz-body .dz-seg { display: inline-flex; border: 1px solid #DCDCDC; border-radius: var(--sg-r); overflow: hidden; }
.dz-body .dz-seg button { width: 38px; height: 36px; border: 0; background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-right: 1px solid #EDEDED; font-size: 15px; }
.dz-body .dz-seg button:last-child { border-right: 0; }
.dz-body .dz-seg button.is-on { background: var(--sg-ink); color: #fff; }
.dz-body .dz-seg button .ic { width: 18px; height: 18px; }
.dz-body .dz-ink { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.dz-body .dz-ink button { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); position: relative; padding: 0; }
.dz-body .dz-ink button.is-on { box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 2px #fff, 0 0 0 4px var(--sg-ink); }
.dz-body .dz-ink label.dz-ink-custom { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; position: relative; cursor: pointer; background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.dz-body .dz-ink label.dz-ink-custom input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.dz-body .dz-ink-none { background: linear-gradient(135deg, #fff 45%, #D23 45%, #D23 55%, #fff 55%) !important; }
.dz-body .dz-hint { font-size: 12.5px; color: var(--sg-muted); line-height: 1.5; margin: 8px 0 0; }
.dz-body .dz-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dz-body .dz-tool { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border: 1px solid #DCDCDC; background: #fff; border-radius: var(--sg-r); cursor: pointer; font-weight: 700; font-size: 12.5px; text-align: left; }
.dz-body .dz-tool .ic { width: 17px; height: 17px; }
.dz-body .dz-tool:hover { border-color: var(--sg-ink); }
.dz-body .dz-tool.dz-danger:hover { color: var(--sg-err); border-color: var(--sg-err); }
.dz-body .dz-big-add { width: 100%; height: 48px; font-size: 14.5px; }
.dz-body .dz-presets { display: grid; gap: 8px; margin-top: 12px; }
.dz-body .dz-preset { border: 1px solid var(--sg-line); background: #fff; border-radius: var(--sg-r); padding: 12px 14px; text-align: left; cursor: pointer; line-height: 1.1; }
.dz-body .dz-preset:hover { border-color: var(--sg-ink); }
.dz-body .dz-font-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dz-body .dz-font-grid button { height: 40px; border: 1px solid var(--sg-line); background: #fff; border-radius: var(--sg-r); cursor: pointer; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.dz-body .dz-font-grid button:hover { border-color: #9A9A9A; }
.dz-body .dz-font-grid button.is-on { border-color: var(--sg-ink); box-shadow: inset 0 0 0 1px var(--sg-ink); }
.dz-body .dz-sel-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #F1F1F1; text-transform: none; letter-spacing: 0; color: #3C3C3C; }

/* Upload */
.dz-body .dz-dropzone { border: 1.5px dashed #CFCFCF; border-radius: 4px; padding: 22px 16px; text-align: center; cursor: pointer; background: #FCFCFB; transition: border-color .15s, background .15s; }
.dz-body .dz-dropzone:hover, .dz-body .dz-dropzone.is-over { border-color: var(--sg-gold); background: #FFF9F0; }
.dz-body .dz-dropzone .ic { width: 28px; height: 28px; margin: 0 auto 8px; color: var(--sg-gold-d); }
.dz-body .dz-dropzone b { display: block; font-size: 14.5px; }
.dz-body .dz-dropzone span { display: block; font-size: 12.5px; color: var(--sg-muted); margin-top: 4px; }
.dz-body .dz-quality { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: var(--sg-r); font-size: 13px; line-height: 1.4; border: 1px solid; }
.dz-body .dz-quality b { display: block; }
.dz-body .dz-quality i { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; margin-top: 4px; }
.dz-body .dz-quality.q-good { background: var(--sg-ok-bg); border-color: #CDE8D8; color: #155C34; }
.dz-body .dz-quality.q-good i { background: var(--sg-ok); }
.dz-body .dz-quality.q-ok { background: var(--sg-warn-bg); border-color: #F2E3B3; color: #6F4E00; }
.dz-body .dz-quality.q-ok i { background: #D9A400; }
.dz-body .dz-quality.q-bad { background: var(--sg-err-bg); border-color: #F0D2CD; color: var(--sg-err); }
.dz-body .dz-quality.q-bad i { background: var(--sg-err); }
.dz-body .dz-quality.q-vec { background: var(--sg-info-bg); border-color: #CFE0FF; color: #14398F; }
.dz-body .dz-quality.q-vec i { background: var(--sg-info); }
.dz-body .dz-filelist { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12.5px; }
.dz-body .dz-filelist li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #F3F3F3; }
.dz-body .dz-filelist li .ic { width: 16px; height: 16px; color: var(--sg-muted); }

/* Motive */
.dz-body .dz-shape-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dz-body .dz-shape-grid button { aspect-ratio: 1; border: 1px solid var(--sg-line); background: #fff; border-radius: var(--sg-r); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 2px 5px; font-size: 10.5px; font-weight: 700; color: #5A5A5A; }
.dz-body .dz-shape-grid button svg { width: 60%; height: 60%; }
.dz-body .dz-shape-grid button:hover { border-color: var(--sg-ink); color: var(--sg-ink); }
.dz-body .dz-tpl-grid { display: grid; gap: 10px; }
.dz-body .dz-tpl { border: 1px solid var(--sg-line); background: #FAFAF8; border-radius: 4px; cursor: pointer; padding: 0; text-align: left; overflow: hidden; }
.dz-body .dz-tpl:hover { border-color: var(--sg-ink); }
.dz-body .dz-tpl-art { height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #1C1C1C; color: #fff; }
.dz-body .dz-tpl-cap { padding: 9px 12px; font-size: 12.5px; font-weight: 700; display: flex; justify-content: space-between; background: #fff; }
.dz-body .dz-tpl-cap span { color: var(--sg-muted); font-weight: 500; }

/* Ebenen */
.dz-body .dz-layers { list-style: none; margin: 0; padding: 0; }
.dz-body .dz-layer { display: flex; align-items: center; gap: 6px; padding: 6px 4px 6px 2px; border: 1px solid transparent; border-radius: var(--sg-r); margin-bottom: 4px; background: #fff; }
.dz-body .dz-layer:hover { border-color: var(--sg-line); }
.dz-body .dz-layer.is-sel { border-color: var(--sg-ink); background: #FAFAFA; }
.dz-body .dz-layer.is-drag { opacity: .45; }
.dz-body .dz-layer.is-over { box-shadow: 0 -2px 0 var(--sg-gold); }
.dz-body .dz-layer-grip { cursor: grab; color: #B3B3B3; display: flex; padding: 4px 0; }
.dz-body .dz-layer-grip .ic { width: 16px; height: 16px; }
.dz-body .dz-layer-thumb { width: 34px; height: 34px; border-radius: var(--sg-r); background: #F1F1EF; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: 0 0 auto; overflow: hidden; }
.dz-body .dz-layer-thumb img { max-width: 100%; max-height: 100%; }
.dz-body .dz-layer-name { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 700; border: 0; background: transparent; text-align: left; cursor: pointer; padding: 4px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-body .dz-layer-name small { display: block; font-weight: 500; color: var(--sg-muted); font-size: 11.5px; }
.dz-body .dz-layer input.dz-layer-rename { height: 30px; font-size: 13px; }
.dz-body .dz-layer .dz-icon-btn { width: 28px; height: 28px; }
.dz-body .dz-layer .dz-icon-btn .ic { width: 16px; height: 16px; }
.dz-body .dz-layer-warn { color: #B07A00; display: inline-flex; }
.dz-body .dz-layer-warn .ic { width: 15px; height: 15px; }
.dz-body .dz-empty-box { border: 1px dashed #DADADA; border-radius: var(--sg-r); padding: 22px 14px; text-align: center; font-size: 13px; color: var(--sg-muted); }

/* Bühne */
.dz-body .dz-stage-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--dz-stage-bg); }
.dz-body .dz-toolbar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 0 0 auto; }
.dz-body .dz-toolbar::-webkit-scrollbar { display: none; }
.dz-body .dz-tgroup { display: flex; gap: 2px; padding-right: 6px; margin-right: 2px; border-right: 1px solid #E2E2DE; align-items: center; }
.dz-body .dz-tgroup:last-child { border-right: 0; }
.dz-body .dz-zoom { position: absolute; right: 12px; top: 12px; z-index: 4; display: flex; align-items: center; gap: 2px; background: #fff; border: 1px solid var(--sg-line); border-radius: 999px; padding: 3px; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.dz-body .dz-zoom .dz-icon-btn { width: 32px; height: 32px; border-radius: 50%; }
.dz-body .dz-zoom .dz-zoom-val { min-width: 52px; height: 30px; border-radius: 999px; }
.dz-body .dz-zoom-val { min-width: 58px; height: 32px; border: 0; background: none; font-size: 12.5px; font-weight: 700; cursor: pointer; border-radius: var(--sg-r); font-variant-numeric: tabular-nums; }
.dz-body .dz-zoom-val:hover { background: #fff; }
.dz-body .dz-needs-sel.is-off .dz-icon-btn { opacity: .3; pointer-events: none; }
.dz-body .dz-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: none; }
.dz-body .dz-stage .canvas-container { position: absolute !important; inset: 0; }
.dz-body .dz-stage-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-weight: 700; font-size: 14px; color: #5A5A5A; background: var(--dz-stage-bg); z-index: 5; }
.dz-body .dz-stage-loading .sg-btn { margin-top: 6px; }
.dz-body .dz-spinner { width: 26px; height: 26px; border: 3px solid #D9D9D9; border-top-color: var(--sg-gold); border-radius: 50%; animation: sgspin .8s linear infinite; display: inline-block; }
.dz-body .dz-spinner-lg { width: 40px; height: 40px; border-width: 4px; }
.dz-body .dz-drop { position: absolute; inset: 10px; border: 2px dashed var(--sg-gold); border-radius: 6px; background: rgba(255,249,240,.9); display: none; align-items: center; justify-content: center; text-align: center; z-index: 6; pointer-events: none; }
.dz-body .dz-drop.is-on { display: flex; }
.dz-body .dz-drop .ic { width: 36px; height: 36px; margin: 0 auto 8px; color: var(--sg-gold-d); }
.dz-body .dz-drop b { display: block; font-size: 17px; }
.dz-body .dz-drop span { font-size: 13px; color: var(--sg-muted); }
.dz-body .dz-empty-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(255,255,255,.96); border: 1px solid var(--sg-line); border-radius: 6px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.08); text-align: center; z-index: 4; width: max-content; max-width: calc(100% - 24px); }
.dz-body .dz-empty-hint b { display: block; font-size: 14.5px; }
.dz-body .dz-empty-hint > span { display: block; font-size: 12.5px; color: var(--sg-muted); margin: 2px 0 10px; }
.dz-body .dz-empty-actions { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.dz-body .dz-infobar { min-height: 34px; display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 4px 14px; font-size: 12.5px; color: #4A4A4A; flex: 0 0 auto; }
.dz-body .dz-infobar b { color: var(--sg-ink); font-variant-numeric: tabular-nums; }
.dz-body .dz-infobar .dz-warn { display: inline-flex; align-items: center; gap: 5px; color: #8A5A00; background: var(--sg-warn-bg); padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.dz-body .dz-infobar .dz-warn.err { color: var(--sg-err); background: var(--sg-err-bg); }
.dz-body .dz-infobar .dz-warn .ic { width: 14px; height: 14px; }
.dz-body .dz-views { display: flex; gap: 8px; justify-content: center; padding: 6px 12px 12px; flex: 0 0 auto; }
.dz-body .dz-view { border: 1px solid #DDDDD8; background: #fff; border-radius: 4px; padding: 4px 4px 5px; cursor: pointer; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; }
.dz-body .dz-view:hover { border-color: #9A9A9A; }
.dz-body .dz-view[aria-selected="true"] { border-color: var(--sg-ink); box-shadow: inset 0 0 0 1px var(--sg-ink); }
.dz-body .dz-view canvas, .dz-body .dz-view img { width: 58px; height: 70px; display: block; border-radius: 2px; background: #F4F4F2; }
.dz-body .dz-view span { font-size: 11px; font-weight: 700; white-space: nowrap; }
.dz-body .dz-view .dz-view-dot { position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--sg-gold); color: #101010; display: flex; align-items: center; justify-content: center; }
.dz-body .dz-view .dz-view-dot .ic { width: 11px; height: 11px; }

/* Bestellung */
.dz-body .dz-order { border-left: 1px solid var(--sg-line); overflow-y: auto; background: #fff; overscroll-behavior: contain; display: flex; flex-direction: column; }
.dz-body .dz-order-inner { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1 0 auto; }
.dz-body .dz-order-foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--sg-line); padding: 12px 18px 16px; box-shadow: 0 -10px 24px rgba(0,0,0,.05); z-index: 2; }
.dz-body .dz-order-foot .dz-total { margin: 0 0 10px; }
.dz-body .dz-prod-change { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; }
.dz-body .dz-prod-change .ic { width: 14px; height: 14px; }
.dz-body .dz-card { border: 1px solid var(--sg-line); border-radius: 4px; padding: 14px 14px 16px; background: #fff; }
.dz-body .dz-card-h { font-size: 14.5px; font-weight: 800; margin: 0 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dz-body .dz-card-hrow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dz-body .dz-prod-row { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.dz-body .dz-prod-thumb { width: 56px; height: 56px; border-radius: var(--sg-r); background: #F3F3F1; flex: 0 0 auto; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.dz-body .dz-prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dz-body .dz-prod-meta { flex: 1 1 auto; min-width: 0; }
.dz-body .dz-prod-title { font-weight: 800; font-size: 14.5px; line-height: 1.25; }
.dz-body .dz-prod-sub { font-size: 12.5px; color: var(--sg-muted); margin-top: 2px; }
.dz-body .dz-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.dz-body .dz-swatch { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.16); position: relative; padding: 0; }
.dz-body .dz-swatch[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(0,0,0,.16), 0 0 0 2px #fff, 0 0 0 4px var(--sg-gold); }
.dz-body .dz-swatch-name { font-size: 12.5px; color: var(--sg-muted); margin-top: 8px; }
.dz-body .dz-methods { display: grid; gap: 8px; }
.dz-body .dz-method { display: grid; grid-template-columns: 18px 1fr auto; gap: 3px 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--sg-line); border-radius: var(--sg-r); cursor: pointer; }
.dz-body .dz-method:hover { border-color: #BDBDBD; }
.dz-body .dz-method.is-on { border-color: var(--sg-ink); box-shadow: inset 0 0 0 1px var(--sg-ink); }
.dz-body .dz-method input { margin: 2px 0 0; accent-color: var(--sg-ink); width: 16px; height: 16px; }
.dz-body .dz-method b { font-size: 13.5px; }
.dz-body .dz-method small { grid-column: 2 / 4; font-size: 12px; color: var(--sg-muted); line-height: 1.4; display: none; }
.dz-body .dz-method.is-on small { display: block; }
.dz-body .dz-method .dz-min-chip { font-size: 11px; font-weight: 800; color: #8A5A00; background: var(--sg-warn-bg); border-radius: 999px; padding: 1px 7px; margin-left: 6px; white-space: nowrap; }
.dz-body .dz-methods { gap: 6px; }
.dz-body .dz-method .dz-method-price { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.dz-body .dz-method .dz-min { color: #8A5A00; font-weight: 700; }
.dz-body .dz-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
.dz-body .dz-size { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.dz-body .dz-size span { font-size: 12px; font-weight: 800; text-align: center; color: #3C3C3C; }
.dz-body .dz-size input { height: 40px; text-align: center; font-weight: 700; font-size: 15px; padding: 0 4px; -moz-appearance: textfield; }
.dz-body .dz-size input::-webkit-outer-spin-button, .dz-body .dz-size input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dz-body .dz-size input.has-val { border-color: var(--sg-ink); background: #FAFAFA; }
.dz-body .dz-size small { font-size: 10.5px; color: var(--sg-muted); text-align: center; }
.dz-body .dz-qty-row { display: flex; justify-content: space-between; font-size: 13.5px; margin: 12px 0 4px; padding-top: 10px; border-top: 1px solid #F1F1F1; }
.dz-body .dz-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; cursor: pointer; margin-top: 10px; line-height: 1.4; }
.dz-body .dz-check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--sg-gold); flex: 0 0 auto; }
.dz-body .dz-note-field { display: block; margin-top: 14px; }
.dz-body .dz-note-field textarea { font-size: 13.5px; }
.dz-body .dz-price .dz-card-h { margin-bottom: 8px; }
.dz-body .dz-prow { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 5px 0; }
.dz-body .dz-prow span { color: #4A4A4A; }
.dz-body .dz-prow b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dz-body .dz-prow.sub span { padding-left: 10px; color: var(--sg-muted); font-size: 12.5px; }
.dz-body .dz-prow.sub b { font-weight: 600; font-size: 12.5px; color: #4A4A4A; }
.dz-body .dz-prow.save b { color: var(--sg-ok); }
.dz-body .dz-unit { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 0 10px; border-bottom: 1px solid #F1F1F1; margin-bottom: 6px; }
.dz-body .dz-unit strong { font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dz-body .dz-unit span { font-size: 12.5px; color: var(--sg-muted); text-align: right; margin-left: 10px; }
.dz-body .dz-tier { margin: 8px 0 2px; background: #FFF6E8; color: #7A4E0E; border-radius: var(--sg-r); padding: 9px 11px; font-size: 12.5px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.dz-body .dz-tier-bar { height: 4px; background: #F0E2CB; border-radius: 2px; margin-top: 6px; overflow: hidden; }
.dz-body .dz-tier-bar i { display: block; height: 100%; background: var(--sg-gold); }
.dz-body .dz-total { background: var(--sg-ink); color: #fff; border-radius: var(--sg-r); padding: 12px 14px; margin: 12px 0 12px; }
.dz-body .dz-total .dz-trow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dz-body .dz-total .dz-trow b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dz-body .dz-total .dz-trow span { font-size: 13px; font-weight: 700; }
.dz-body .dz-total .dz-trow.gross { margin-top: 3px; }
.dz-body .dz-total .dz-trow.gross span, .dz-body .dz-total .dz-trow.gross b { font-size: 12.5px; font-weight: 600; color: #BDBDBD; }
.dz-body .dz-msg:empty { display: none; }
.dz-body .dz-msg { margin-bottom: 10px; display: grid; gap: 6px; }
.dz-body .dz-msg div { padding: 9px 11px; border-radius: var(--sg-r); font-size: 12.5px; font-weight: 700; line-height: 1.4; display: flex; gap: 8px; }
.dz-body .dz-msg div .ic { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.dz-body .dz-msg .err { background: var(--sg-err-bg); color: var(--sg-err); }
.dz-body .dz-msg .warn { background: var(--sg-warn-bg); color: #6F4E00; }
.dz-body .dz-msg .info { background: #F4F4F2; color: #3C3C3C; }
.dz-body .dz-fine { font-size: 11.5px; color: var(--sg-muted); margin: 10px 0 0; line-height: 1.5; }
.dz-body .dz-price-empty { font-size: 13px; color: var(--sg-muted); padding: 6px 0 10px; }

/* Overlay */
.dz-body .dz-overlay { position: fixed; inset: 0; background: rgba(16,16,16,.55); z-index: 9500; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dz-body .dz-overlay-box { background: #fff; border-radius: 6px; padding: 28px 30px; width: 360px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.dz-body .dz-overlay-box b { font-size: 16px; }
.dz-body .dz-progress { width: 100%; height: 5px; background: #EFEFEF; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.dz-body .dz-progress i { display: block; height: 100%; width: 0; background: var(--sg-gold); transition: width .25s; }

/* Dialoge (in SGShell.modal) */
.dz-body .dz-modal { padding: 22px 24px 24px; }
.dz-body .dz-modal-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dz-body .dz-modal-h h2 { font-size: 19px; margin: 0; font-weight: 800; }
.dz-body .dz-modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.sg-modal.dz-wide { max-width: 860px; }
.dz-body .dz-cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.dz-body .dz-cat-tabs button { height: 32px; padding: 0 12px; border: 1px solid #DCDCDC; border-radius: 999px; background: #fff; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.dz-body .dz-cat-tabs button.is-on { background: var(--sg-ink); color: #fff; border-color: var(--sg-ink); }
.dz-body .dz-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.dz-body .dz-pcard { border: 1px solid var(--sg-line); border-radius: 4px; background: #fff; cursor: pointer; padding: 0; text-align: left; overflow: hidden; display: flex; flex-direction: column; }
.dz-body .dz-pcard:hover { border-color: var(--sg-ink); }
.dz-body .dz-pcard.is-cur { border-color: var(--sg-gold); box-shadow: inset 0 0 0 1px var(--sg-gold); }
.dz-body .dz-pcard-img { aspect-ratio: 1; background: #F4F4F2; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dz-body .dz-pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.dz-body .dz-pcard-b { padding: 10px 12px 12px; }
.dz-body .dz-pcard-b b { display: block; font-size: 13.5px; line-height: 1.3; }
.dz-body .dz-pcard-b span { font-size: 12px; color: var(--sg-muted); }
.dz-body .dz-pcard-dots { display: flex; gap: 4px; margin-top: 7px; }
.dz-body .dz-pcard-dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.dz-body .dz-cat-h { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8A8A8A; margin: 18px 0 10px; }
.dz-body .dz-cat-h:first-child { margin-top: 0; }
.dz-body .dz-drafts { list-style: none; margin: 0; padding: 0; }
.dz-body .dz-drafts li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #F1F1F1; }
.dz-body .dz-drafts li img { width: 52px; height: 62px; object-fit: cover; background: #F4F4F2; border-radius: var(--sg-r); }
.dz-body .dz-drafts .dz-grow b { display: block; font-size: 14px; }
.dz-body .dz-drafts .dz-grow span { font-size: 12.5px; color: var(--sg-muted); }
.dz-body .dz-added { display: flex; gap: 16px; align-items: center; }
.dz-body .dz-added img { width: 110px; height: 132px; object-fit: cover; border-radius: 4px; background: #F4F4F2; flex: 0 0 auto; }
.dz-body .dz-ok-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--sg-ok-bg); color: var(--sg-ok); display: inline-flex; align-items: center; justify-content: center; }

/* Mobile Tabbar */
.dz-body .dz-tabbar, .dz-body .dz-sheet-backdrop { display: none; }

/* ≤ 1360: schmaleres Panel */
@media (max-width: 1360px) { .dz { --dz-panel: 284px; --dz-order: 340px; } }

/* ≤ 1180: Tablet/Mobil */
@media (max-width: 1180px) {
  .dz { height: auto; min-height: 0; --dz-head: 76px; border-bottom: 0; }
  .dz-body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .dz-body .dz-bar { height: auto; padding: 10px 16px; flex-wrap: wrap; gap: 8px 12px; }
  .dz-body .dz-bar-title { flex: 1 1 auto; flex-direction: column; gap: 1px; }
  .dz-body .dz-bar-status { margin-left: 0; order: 3; width: 100%; display: none; }
  .dz-body .dz-bar-actions .dz-btn span { display: none; }
  .dz-body .dz-bar-actions .dz-btn { width: 40px; padding: 0; }
  .dz-body .dz-grid { display: block; }
  .dz-body .dz-rail { display: none; }
  .dz-body .dz-stage-col { height: min(calc(100svh - 76px - 64px - 60px), 820px); min-height: 520px; }
  .dz-body .dz-order { border-left: 0; overflow: visible; background: #FAFAF8; }
  .dz-body .dz-order-inner { max-width: 720px; width: 100%; margin: 0 auto; padding: 16px 16px 20px; }
  .dz-body .dz-order-foot { bottom: calc(64px + env(safe-area-inset-bottom)); padding: 10px 16px 12px; }
  .dz-body .dz-order-foot > * { max-width: 688px; margin-left: auto; margin-right: auto; }
  .dz-body .dz-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8000; max-height: min(72vh, 620px); border: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -18px 50px rgba(0,0,0,.18); transform: translateY(105%); transition: transform .24s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom); visibility: hidden; }
  .dz-body .dz-panel.is-open { transform: none; visibility: visible; }
  .dz-body .dz-sheet-grip { display: block; width: 42px; height: 4px; border-radius: 2px; background: #D4D4D4; margin: 9px auto 0; }
  .dz-body .dz-panel-head { padding: 8px 16px 4px; }
  .dz-body .dz-sheet-close { display: inline-flex; }
  .dz-body .dz-panel-body { padding: 4px 16px 20px; }
  .dz-body .dz-sheet-backdrop { display: block; position: fixed; inset: 0; background: rgba(16,16,16,.25); z-index: 7990; }
  .dz-body .dz-tabbar { display: grid; grid-template-columns: repeat(5, 1fr) 1.35fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 8100; background: #fff; border-top: 1px solid var(--sg-line); height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(0,0,0,.05); }
  .dz-body .dz-tabbar button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 700; color: #5A5A5A; cursor: pointer; padding: 0; min-width: 0; }
  .dz-body .dz-tabbar button .ic { width: 22px; height: 22px; }
  .dz-body .dz-tabbar button.is-on { color: var(--sg-ink); box-shadow: inset 0 3px 0 var(--sg-gold); }
  .dz-body .dz-tabbar .dz-tab-order { background: var(--sg-gold); color: #101010; font-weight: 800; }
  .dz-body .dz-tab-price { font-size: 14px; font-weight: 800; }
  .dz-body .dz-hide-s { display: none; }
  .dz-body .dz-toolbar { padding: 6px 8px; background: #fff; border-bottom: 1px solid var(--sg-line); }
  .dz-body .dz-views { padding: 6px 10px 10px; }
  .sg-toast-host { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sg-footer { margin-top: 0; }
}
@media (max-width: 480px) {
  .dz-body .dz-stage-col { min-height: 480px; }
  .dz-body .dz-view { width: 70px; }
  .dz-body .dz-view canvas, .dz-body .dz-view img { width: 48px; height: 58px; }
  .dz-body .dz-bar-product { font-size: 15px; }
  .dz-body .dz-empty-hint { bottom: 10px; padding: 10px 12px; }
  .dz-body .dz-tgroup { padding-right: 4px; }
  .dz-body .dz-icon-btn { width: 34px; height: 34px; }
  .dz-body .dz-pgrid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dz-body .dz-added { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .dz-panel { transition: none; } }

/* Toasts im Designer: oben mittig über der Bühne (unten rechts liegt der Warenkorb-Button) */
@media (min-width: 1181px) {
  .dz-body .sg-toast-host { bottom: 132px; right: auto; left: calc(50% - 38px); transform: translateX(-50%); align-items: center; }
}

.dz-body .dz-view .dz-vl-s { display: none; }
@media (max-width: 480px) { .dz-body .dz-view .dz-vl-s { display: inline; } .dz-body .dz-view .dz-vl-f { display: none; } }
