/* ============================================================
   folie.ch-Designer – Oberfläche (Textil, Fahrzeug, flach)
   Marke: Tinte #161616, Papier #f4f0e7, Orange #ff6a13/#ed7e1b,
   Himmelblau #2bbaeb, Gelb #ffd23f · Schrift Space Grotesk/Fredoka
   ============================================================ */
html.sdx-lock, html.sdx-lock body { overflow: hidden !important; overscroll-behavior: none; }
.sdx {
  --ink: #161616; --ink2: #2b2b2a; --paper: #f4f0e7; --paper2: #ebe5d8; --card: #fffdf8; --line: #ddd5c6; --line2: #cfc6b4;
  --muted: #6b665c; --hot: #ff6a13; --hot2: #ed7e1b; --sky: #2bbaeb; --sky2: #1683ad; --yellow: #ffd23f;
  --red: #d92d36; --green: #1f9d55; --amber: #e8a000;
  --r: 14px; --top: 64px; --adminbar: var(--wp-admin--admin-bar--height, 0px);
  --shadow: 0 10px 30px rgba(22, 22, 22, .12), 0 2px 6px rgba(22, 22, 22, .08);
  position: fixed; left: 0; right: 0; top: var(--adminbar); bottom: 0; z-index: 99990;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); color: var(--ink);
  font: 400 15px/1.45 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; text-align: left;
}
.sdx[style*="--sdx-vvh"] { bottom: auto; height: calc(var(--sdx-vvh) - var(--adminbar)); }
.sdx *, .sdx *::before, .sdx *::after { box-sizing: border-box; }
.sdx :where(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.sdx :where(button) { cursor: pointer; background: none; border: 0; margin: 0; padding: 0; line-height: inherit; box-shadow: none; min-height: 0; width: auto; border-radius: 0; text-align: center; }
.sdx :where(button:disabled) { cursor: default; opacity: .38; }
.sdx :where(a) { color: inherit; text-decoration: none; }
.sdx :where(h2, h3, p, ul, figure, dl, dd) { margin: 0; padding: 0; }
.sdx :where(ul) { list-style: none; }
.sdx [hidden] { display: none !important; }
.sdx img { max-width: none; }
.sdx :focus { outline: none; }
.sdx :focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px; }
.sdx-i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; display: block; }
.sdx-desktop-only { display: inline; }
.sdx-mobile-only { display: none !important; }

/* ---------- Kopfleiste ---------- */
.sdx-top {
  flex: none; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 16px 0 14px;
  background: var(--paper); border-bottom: 2px solid var(--ink); position: relative; z-index: 6;
}
.sdx-back { display: none; }
.sdx-logo { width: 92px; flex: none; display: block; }
.sdx-logo svg { width: 100%; height: auto; overflow: visible; display: block; }
.sdx-logo text { font-family: 'Fredoka', 'Space Grotesk', sans-serif; font-weight: 700; stroke: #2b2b2a; stroke-width: 9px; paint-order: stroke; stroke-linejoin: round; font-size: 76px; }
.sdx-logo-t1 { fill: var(--hot2); } .sdx-logo-t2 { fill: var(--sky); }
.sdx-logo-tee { fill: none; stroke: #2b2b2a; stroke-width: 9; stroke-linejoin: round; }
.sdx-prod { min-width: 0; padding-left: 14px; border-left: 1.5px solid var(--line2); }
.sdx-prod-name { font-weight: 700; font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdx-prod-switch { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.sdx-prod-switch span { overflow: hidden; text-overflow: ellipsis; }
.sdx-prod-switch .sdx-i { width: 16px; height: 16px; flex: none; opacity: .7; }
.sdx-prod-switch:hover span { text-decoration: underline; }
.sdx-chooser-item.is-cur { opacity: .55; pointer-events: none; }
.sdx-prod-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.sdx-dot { margin: 0 5px; }
.sdx-colors { display: flex; gap: 8px; align-items: center; }
.sdx-top-sp { flex: 1; }
.sdx-savestate { font-size: 12px; color: var(--muted); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.sdx-savestate.is-on { opacity: 1; }
.sdx-price { text-align: right; line-height: 1.15; white-space: nowrap; }
.sdx-price b { display: block; font-size: 18px; font-weight: 700; }
.sdx-price small { font-size: 11.5px; color: var(--muted); }
.sdx-menu-wrap { position: relative; }
.sdx-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: var(--card); border: 2px solid var(--ink);
  border-radius: 14px; box-shadow: 5px 5px 0 var(--ink); padding: 6px; z-index: 30;
}
.sdx-menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 9px; font-weight: 500; text-align: left; }
.sdx-menu button:hover { background: var(--paper2); }
.sdx-menu .sdx-i { width: 19px; height: 19px; }
.sdx-menu-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 12px 4px; border-top: 1px solid var(--line); margin-top: 4px; }

/* ---------- Knöpfe ---------- */
.sdx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 2px solid var(--ink) !important; font-weight: 700 !important; font-size: 15px; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s; text-decoration: none; line-height: 1.1;
}
.sdx-btn .sdx-i { width: 19px; height: 19px; }
.sdx-btn-hot { background: var(--hot) !important; color: #fff !important; box-shadow: 3px 3px 0 var(--ink) !important; }
.sdx-btn-hot:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink) !important; }
.sdx-btn-hot:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink) !important; }
.sdx-btn-primary { background: var(--ink) !important; color: #fff !important; }
.sdx-btn-primary:hover { background: #000 !important; }
.sdx-btn-ghost { background: transparent; color: var(--ink); }
.sdx-btn-ghost:hover { background: var(--ink); color: #fff; }
.sdx-btn-danger { background: #fff; color: var(--red); border-color: #e9b9bc !important; }
.sdx-btn-danger:hover { background: #fdeced; }
.sdx-btn-block { display: flex; width: 100%; }
.sdx-btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.sdx-btn-lg { min-height: 54px; font-size: 17px; }
.sdx-next { gap: 10px; padding: 0 20px; }
.sdx-next-r { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sdx-next-r .sdx-i { width: 18px; height: 18px; }
.sdx-iconbtn { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; transition: background .15s; }
@media (hover: hover) { .sdx-iconbtn:hover:not(:disabled) { background: var(--paper2); } }
.sdx .sdx-iconbtn.is-on, .sdx .sdx-iconbtn.is-on:hover { background: var(--ink); color: #fff; }

/* ---------- Farbfelder ---------- */
.sdx-swatch {
  --c: #fff; width: 30px; height: 30px; border-radius: 50%; flex: none; position: relative;
  background: var(--c) !important; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .18) !important; transition: transform .12s;
}
.sdx-swatch:hover { transform: scale(1.08); }
.sdx-swatch.is-on { box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .18), 0 0 0 2.5px var(--card), 0 0 0 4.5px var(--ink) !important; }
.sdx-colors-lg { gap: 14px; flex-wrap: wrap; margin: 8px 0 18px; }
.sdx-colors-lg .sdx-swatch { width: 52px; height: 52px; }
.sdx-colors-lg .sdx-swatch span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-size: 11.5px; margin-top: 5px; color: var(--muted); white-space: nowrap; }
.sdx-colors-lg { padding-bottom: 18px; }

/* ---------- Grundlayout ---------- */
.sdx-body {
  flex: 1; min-height: 0; display: grid; position: relative;
  grid-template-columns: 84px 316px minmax(0, 1fr) 304px; grid-template-areas: "rail panel stage insp";
}
.sdx-panel-collapsed .sdx-body { grid-template-columns: 84px 0 minmax(0, 1fr) 304px; }
.sdx-panel-collapsed .sdx-panel { visibility: hidden; border: 0; }
.sdx-rail { grid-area: rail; background: var(--ink); display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; overflow-y: auto; }
.sdx-tool {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px 9px; border-radius: 12px;
  color: #d9d4ca; font-size: 11.5px; font-weight: 600; transition: background .15s, color .15s;
}
.sdx-tool .sdx-i { width: 24px; height: 24px; }
.sdx-tool:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.sdx-tool.is-on { background: var(--hot); color: #fff; }
.sdx-ctx { display: none !important; }
.sdx-sheet { background: var(--card); overflow-y: auto; overscroll-behavior: contain; }
.sdx-panel { grid-area: panel; border-right: 1.5px solid var(--line); padding: 18px 18px 30px; }
.sdx-insp { grid-area: insp; border-left: 1.5px solid var(--line); padding: 4px 18px 40px; }
.sdx-grab, .sdx-done, .sdx-insp-head { display: none; }
.sdx-pane { display: none; }
.sdx-pane.is-on { display: block; }
.sdx-pane-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sdx-pane-head h2, .sdx-insp-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.sdx-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 18px 0 8px; }
.sdx-hint { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.45; }
.sdx-warnhint { color: #9a5b00; background: #fff4d6; padding: 8px 10px; border-radius: 9px; }
.sdx-center { text-align: center; }
.sdx-facts { display: grid; gap: 7px; font-size: 13px; color: var(--ink2); margin-top: 12px; }
.sdx-facts li { padding-left: 16px; position: relative; }
.sdx-facts li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--hot); }
.sdx-row { display: flex; gap: 8px; align-items: center; }
.sdx-row-wrap { flex-wrap: wrap; }
.sdx-row > select { flex: 1; min-width: 0; }
.sdx select, .sdx input[type=search], .sdx textarea, .sdx input[type=number] {
  border: 1.5px solid var(--line2); background: #fff; border-radius: 11px; padding: 9px 11px; font-size: 15px; width: 100%;
  min-height: 42px; box-shadow: none; margin: 0;
}
.sdx textarea { resize: vertical; min-height: 84px; line-height: 1.35; display: block; }
.sdx select:focus, .sdx input:focus, .sdx textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(43, 186, 235, .35); }
.sdx-areainfo { font-size: 14px; font-weight: 600; }
.sdx-pane-prod { font-weight: 700; font-size: 17px; }

/* ---------- Text-Panel ---------- */
.sdx-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sdx-preset {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 84px; padding: 10px 6px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, transform .15s;
}
.sdx-preset span { font-size: 27px; line-height: 1.15; white-space: nowrap; }
.sdx-preset small { font-size: 11.5px; color: var(--muted); }
.sdx-preset:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ---------- Bild-Panel ---------- */
.sdx-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 170px;
  border: 2px dashed var(--line2); border-radius: 16px; background: #fff; padding: 20px; cursor: pointer; transition: border-color .15s, background .15s;
}
.sdx-drop .sdx-i { width: 38px; height: 38px; color: var(--hot); }
.sdx-drop b { font-size: 16px; color: var(--ink); }
.sdx-drop span { font-size: 13px; color: var(--muted); }
.sdx-drop:hover { border-color: var(--ink); background: #fffaf2; }
.sdx-uploads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sdx-upload { aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--line); background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 50%/14px 14px; overflow: hidden; }
.sdx-upload img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- Sprüche ---------- */
.sdx-search { position: relative; margin-bottom: 8px; }
.sdx-search .sdx-i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.sdx-search input { padding-left: 36px !important; }
.sdx-stylepick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sdx-styleitem { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 11px; font-weight: 600; }
.sdx-styleitem img { width: 100%; height: auto; aspect-ratio: 3/2; border-radius: 6px; display: block; background: var(--paper2); }
.sdx-styleitem.is-on { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.sdx-stylepick-insp { grid-template-columns: repeat(2, 1fr); }
.sdx-motives { display: grid; gap: 8px; margin-top: 14px; }
.sdx-count { font-size: 12px; color: var(--muted); }
.sdx-motive {
  display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  text-align: left; transition: border-color .15s;
}
.sdx-motive span { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.sdx-motive small { font-size: 11.5px; color: var(--muted); }
.sdx-motive:hover { border-color: var(--ink); }
.sdx-more { margin: 4px auto 0; }

/* ---------- Grafiken ---------- */
.sdx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sdx-chip { padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line2); font-size: 13px; font-weight: 600; background: #fff; }
.sdx-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sdx-clipgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sdx-clip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 11.5px; }
.sdx-clip svg { width: 44px; height: 44px; display: block; }
.sdx-clip:hover { border-color: var(--ink); color: var(--hot); }

/* ---------- Vorlagen ---------- */
.sdx-tplgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sdx-tpl { display: flex; flex-direction: column; gap: 2px; padding: 6px 6px 10px; border-radius: 13px; border: 1.5px solid var(--line); background: #fff; text-align: left; transition: border-color .15s, transform .15s; }
.sdx-tpl:hover { border-color: var(--ink); transform: translateY(-1px); }
.sdx-tpl-img { display: block; border-radius: 9px; overflow: hidden; background: var(--paper2); aspect-ratio: 1; margin-bottom: 6px; }
.sdx-tpl-img img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sdx-tpl img:not([src]) { visibility: hidden; }
.sdx-tpl b { font-size: 13.5px; padding: 0 4px; }
.sdx-tpl small { font-size: 11.5px; color: var(--muted); padding: 0 4px; line-height: 1.3; }

/* ---------- Ebenen ---------- */
.sdx-layers { display: grid; gap: 4px; position: relative; }
.sdx-layer {
  display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 2px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff;
  transition: transform .12s; touch-action: none;
}
.sdx-layer.is-drag { transition: none; z-index: 2; box-shadow: var(--shadow); border-color: var(--ink); }
.sdx-layer.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.sdx-layer.is-hidden .sdx-layer-main { opacity: .45; }
.sdx-grip { color: var(--muted); cursor: grab; padding: 6px 2px; display: flex; touch-action: none; }
.sdx-grip .sdx-i { width: 18px; height: 18px; }
.sdx-layer-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 4px; text-align: left; font-size: 14px; font-weight: 500; }
.sdx-layer-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdx-layer-main .sdx-i { width: 19px; height: 19px; color: var(--muted); }
.sdx-layer-main em { color: var(--red); display: flex; }
.sdx-layer-main em .sdx-i { color: var(--red); width: 16px; height: 16px; }
.sdx-layer-btn { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--ink2); }
.sdx-layer-btn:hover { background: var(--paper2); }
.sdx-layer-btn .sdx-i { width: 18px; height: 18px; }
.sdx-layers-empty { font-size: 13.5px; color: var(--muted); padding: 14px 4px; }

/* ---------- Bühne ---------- */
.sdx-stage { grid-area: stage; position: relative; overflow: hidden; background: var(--sdx-stage-bg, #f0f0f0); min-width: 0; min-height: 0; }
.sdx-canvas-host { position: absolute; inset: 0; touch-action: none; }
.sdx-canvas-host.is-panning, .sdx-canvas-host.is-panning canvas { cursor: grabbing !important; }
.sdx .sdx-cc { position: relative; }
.sdx .sdx-cc canvas { display: block; touch-action: none; }
.sdx .sdx-photo {
  position: absolute !important; left: 0; top: 0; width: 1000px !important; height: 1000px !important; max-width: none !important; max-height: none !important;
  transform-origin: 0 0; pointer-events: none; user-select: none; -webkit-user-drag: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 97%, transparent);
  mask-composite: intersect;
}
.sdx-photo-approx .sdx-photo { filter: saturate(.92); }
.sdx .sdx-shade { position: absolute; left: 0; top: 0; width: 500px !important; height: 500px !important; transform-origin: 0 0; pointer-events: none; opacity: 0; mix-blend-mode: soft-light; transition: opacity .25s; }
.sdx-is-preview .sdx-shade { opacity: .5; }
.sdx-is-preview[data-light="1"] .sdx-cc .lower-canvas { mix-blend-mode: multiply; }

.sdx-sides { position: absolute; left: 14px; top: 14px; display: flex; flex-direction: column; gap: 10px; z-index: 4; }
.sdx-no-back .sdx-sides { display: none; }
.sdx-side {
  width: 92px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 5px 7px; border-radius: 14px;
  background: rgba(255, 253, 248, .92); border: 1.5px solid var(--line); box-shadow: 0 2px 8px rgba(22, 22, 22, .07); transition: border-color .15s, box-shadow .15s;
}
.sdx-side canvas { width: 80px; height: 80px; border-radius: 10px; display: block; margin-bottom: 3px; }
.sdx-side-l { font-size: 13px; font-weight: 700; line-height: 1.2; }
.sdx-side-state { font-size: 11px; color: var(--muted); line-height: 1.2; }
.sdx-side-state.is-on { color: var(--green); font-weight: 600; }
.sdx-side.is-on { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink), 0 4px 14px rgba(22, 22, 22, .12); }
.sdx-side:hover:not(.is-on) { border-color: var(--line2); }

.sdx-stagebar {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 2px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 4px; box-shadow: var(--shadow);
}
.sdx-sep { width: 1.5px; height: 24px; background: var(--line); margin: 0 4px; flex: none; }
.sdx-zoomlabel { min-width: 58px; height: 40px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.sdx-zoomlabel:hover { background: var(--paper2); }
.sdx-previewbtn { width: auto; padding: 0 12px 0 10px; gap: 7px; font-weight: 600; font-size: 14px; }
.sdx-previewbtn .sdx-i { width: 20px; height: 20px; }

.sdx-warn {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; border-radius: 999px; padding: 6px 6px 6px 14px; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(217, 45, 54, .35); max-width: calc(100% - 240px); white-space: nowrap;
}
.sdx-warn span { overflow: hidden; text-overflow: ellipsis; }
.sdx-warn .sdx-i { width: 18px; height: 18px; }
.sdx-warn button { background: #fff; color: var(--red); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; flex: none; }
.sdx-empty {
  position: absolute; left: 50%; bottom: 82px; transform: translateX(-50%); z-index: 3; background: var(--card); border: 2px solid var(--ink);
  border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); padding: 14px 16px; text-align: center; width: max-content; max-width: calc(100% - 32px);
}
.sdx-empty p { font-size: 14.5px; margin-bottom: 10px; }
.sdx-empty-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.sdx-empty-btns button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--line2); background: #fff; font-weight: 600; font-size: 14px; }
.sdx-empty-btns button:hover { border-color: var(--ink); }
.sdx-empty-btns .sdx-i { width: 18px; height: 18px; }
.sdx-badge {
  position: absolute; z-index: 3; transform: translate(-50%, 0); display: flex; align-items: center; gap: 6px; pointer-events: none;
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); white-space: nowrap;
}
.sdx-badge .sdx-i { width: 15px; height: 15px; }
.sdx-badge.is-bad { background: var(--red); }
.sdx-badge.is-ok { background: var(--amber); }
.sdx-loading { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--paper); font-weight: 600; color: var(--muted); text-align: center; padding: 20px; }
.sdx-spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--hot); animation: sdx-spin .8s linear infinite; }
@keyframes sdx-spin { to { transform: rotate(360deg); } }
.sdx-is-preview .sdx-sides, .sdx-is-preview .sdx-empty, .sdx-is-preview .sdx-warn { display: none !important; }

/* ---------- Inspector ---------- */
.sdx-sec { padding: 16px 0 18px; border-bottom: 1.5px solid var(--line); }
.sdx-sec:last-child { border-bottom: 0; }
.sdx-sec h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sdx-sec h3 ~ h3 { margin-top: 18px; }
.sdx-sec h3 small { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink2); }
.sdx-emptyinsp { text-align: center; padding: 26px 8px 22px; color: var(--muted); }
.sdx-emptyinsp .sdx-i { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--line2); }
.sdx-emptyinsp b { color: var(--ink); font-size: 15px; }
.sdx-sec[data-sec="empty"] { border: 0; }
.sdx-sec[data-sec="empty"] h3 { margin-top: 14px; }
.sdx-fontbtn {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 12px 0 14px;
  border: 1.5px solid var(--line2) !important; border-radius: 12px; background: #fff !important; font-size: 20px;
}
.sdx-fontbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdx-fontbtn[aria-expanded="true"] { border-color: var(--ink) !important; }
.sdx-fontbtn[aria-expanded="true"] .sdx-i { transform: rotate(180deg); }
.sdx-fontlist { display: none; max-height: 320px; overflow-y: auto; margin-top: 8px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 4px; overscroll-behavior: contain; }
.sdx-fontlist.is-open { display: block; }
.sdx-fontcat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 10px 4px; font-family: 'Space Grotesk', sans-serif; }
.sdx-fontitem { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; padding: 8px 10px; border-radius: 9px; font-size: 21px; line-height: 1.2; min-height: 44px; }
.sdx-fontitem:hover { background: var(--paper); }
.sdx-fontitem.is-on { background: var(--paper2); }
.sdx-fontcheck { width: 18px !important; height: 18px !important; visibility: hidden; color: var(--hot); }
.sdx-fontitem.is-on .sdx-fontcheck { visibility: visible; }
.sdx-palette { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; justify-items: center; }
.sdx-palette .sdx-swatch { width: 100%; max-width: 30px; height: auto; aspect-ratio: 1; }
.sdx-swatch-custom { display: flex !important; align-items: center; justify-content: center; cursor: pointer; background: conic-gradient(#ff6a13, #ffd23f, #1f9d55, #2bbaeb, #7b3fe4, #ff4fa3, #ff6a13) !important; color: #fff; }
.sdx-swatch-custom.is-on { background: var(--c) !important; }
.sdx-swatch-custom .sdx-i { width: 15px; height: 15px; stroke-width: 3; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .6)); }
.sdx-swatch-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.sdx-field { display: grid; grid-template-columns: 1fr 52px; grid-template-areas: "l o" "r r"; align-items: center; gap: 2px 8px; margin: 10px 0 4px; }
.sdx-field label { grid-area: l; font-size: 13.5px; font-weight: 600; }
.sdx-field output { grid-area: o; text-align: right; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sdx-field input[type=range] { grid-area: r; width: 100%; accent-color: var(--hot); height: 28px; margin: 0; background: transparent; }
.sdx-field.is-off, .sdx-check.is-off { opacity: .4; pointer-events: none; }
.sdx-seg { gap: 4px; margin: 6px 0 4px; }
.sdx-segbtn { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; background: #fff; }
.sdx-segbtn .sdx-i { width: 19px; height: 19px; }
.sdx-segbtn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sdx-chipbtn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line2); background: #fff; font-size: 13.5px; font-weight: 600; }
.sdx-chipbtn .sdx-i { width: 17px; height: 17px; }
.sdx-chipbtn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
[data-kind="clipart"] .sdx-img-only { display: none; }
.sdx-switch { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.sdx-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sdx-switch span { width: 44px; height: 26px; border-radius: 999px; background: var(--line2); position: relative; flex: none; transition: background .15s; }
.sdx-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.sdx-switch input:checked + span { background: var(--green); }
.sdx-switch input:checked + span::after { transform: translateX(18px); }
.sdx-switch input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.sdx-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin-top: 8px; }
.sdx-check input { margin-top: 3px; accent-color: var(--hot); }
.sdx-quality { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; }
.sdx-quality b { font-size: 16px; display: block; }
.sdx-quality p { font-size: 13px; margin: 2px 0 4px; }
.sdx-quality small { font-size: 11.5px; color: var(--muted); }
.sdx-q-light { display: flex; flex-direction: column; gap: 4px; padding: 6px; background: var(--ink); border-radius: 11px; flex: none; }
.sdx-q-light span { width: 14px; height: 14px; border-radius: 50%; background: #3d3d3a; }
.sdx-quality.is-good .sdx-q-light span:nth-child(3) { background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.sdx-quality.is-ok .sdx-q-light span:nth-child(2) { background: #ffc233; box-shadow: 0 0 10px #ffc233; }
.sdx-quality.is-bad .sdx-q-light span:nth-child(1) { background: #ff4d4f; box-shadow: 0 0 10px #ff4d4f; }
.sdx-quality.is-good { border-color: #bfe6cd; background: #f3fbf6; }
.sdx-quality.is-ok { border-color: #f2d999; background: #fffaf0; }
.sdx-quality.is-bad { border-color: #f1b8bb; background: #fff5f5; }
.sdx-grid-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.sdx-grid-btns button { display: flex; align-items: center; gap: 7px; padding: 9px 9px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; text-align: left; line-height: 1.2; min-height: 42px; }
.sdx-grid-btns button:hover { border-color: var(--ink); }
.sdx-grid-btns .sdx-i { width: 18px; height: 18px; }
.sdx-grid-btns button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sdx-no-back .sdx-needs-back { display: none !important; }

/* ---------- Dialoge ---------- */
.sdx-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(22, 22, 22, .55); }
.sdx-modal-card { background: var(--card); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); width: 100%; max-height: 100%; overflow: auto; padding: 22px; }
.sdx-modal.is-in .sdx-modal-card { animation: sdx-pop .2s ease-out; }
@keyframes sdx-pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.sdx-small { max-width: 440px; text-align: center; }
.sdx-small h2 { font-size: 22px; margin-bottom: 8px; }
.sdx-small p { color: var(--ink2); }
.sdx-modal-btns { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.sdx-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sdx-modal-head h2 { font-size: 24px; letter-spacing: -.01em; }
.sdx-resume-img { width: 140px; height: 140px; border-radius: 16px; display: block; margin: 0 auto 12px; border: 1.5px solid var(--line); object-fit: cover; }
.sdx-help { text-align: left; max-width: 520px; }
.sdx-keys { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.sdx-keys td { padding: 6px 4px; border-top: 1px solid var(--line); }
.sdx-keys td:first-child { white-space: nowrap; width: 40%; }
.sdx kbd { font: 600 12px/1 'Space Grotesk', sans-serif; padding: 3px 6px; border: 1.5px solid var(--line2); border-bottom-width: 3px; border-radius: 6px; background: #fff; }
.sdx-chooser { display: grid; gap: 8px; margin-top: 16px; text-align: left; }
.sdx-chooser-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 13px; background: #fff; font-weight: 600; }
.sdx-chooser-item span { flex: 1; }
.sdx-chooser-item:hover { border-color: var(--ink); }

/* Bestellschritt */
.sdx-order { max-width: 1000px; }
.sdx-order-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; }
.sdx-order-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.sdx-order-prev figure { background: #f0f0f0; border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 1; }
.sdx-order-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sdx-order-prev img:not([src]) { visibility: hidden; }
.sdx-order-prev figcaption { position: absolute; left: 10px; top: 10px; background: rgba(255, 253, 248, .92); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.sdx-no-back .sdx-order-prev { grid-template-columns: 1fr; max-width: 380px; }
.sdx-order-meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.sdx-swatch-dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .2); flex: none; }
.sdx-order-warn { background: #fff4d6; color: #7a4a00; border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; line-height: 1.6; }
.sdx-order-warn .sdx-i { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-right: 6px; }
.sdx-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.sdx-sizes-h { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.sdx-sizerow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 5px 5px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; }
.sdx-sizerow.has-q { border-color: var(--ink); background: #fffaf2; }
.sdx-sizerow.is-off { opacity: .5; }
.sdx-size-l { font-weight: 700; font-size: 15px; display: flex; flex-direction: column; line-height: 1.15; }
.sdx-size-l small { font-weight: 500; font-size: 11px; color: var(--muted); }
.sdx-stepper { display: flex; align-items: center; gap: 2px; }
.sdx-stepper button { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--paper); }
.sdx-stepper button:hover:not(:disabled) { background: var(--paper2); }
.sdx-stepper .sdx-i { width: 16px; height: 16px; stroke-width: 2.4; }
.sdx .sdx-stepper input { width: 46px; min-height: 34px; padding: 4px 2px; text-align: center; font-weight: 700; border-radius: 9px; -moz-appearance: textfield; }
.sdx-stepper input::-webkit-outer-spin-button, .sdx-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sdx-no-back .sdx-sizes, [data-capmode] .sdx-sizes { grid-template-columns: 1fr; }
.sdx-tiers { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.sdx-tier { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--line2); background: #fff; }
.sdx-tier.is-on { background: var(--yellow); border-color: var(--ink); font-weight: 600; }
.sdx-tierhint { font-size: 13px; color: var(--green); font-weight: 600; min-height: 20px; margin-top: 8px; }
.sdx-sum { margin: 10px 0 14px; border-top: 1.5px solid var(--line); padding-top: 8px; }
.sdx-sum > div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14.5px; }
.sdx-sum dt { color: var(--ink2); }
.sdx-sum dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.sdx-sum .is-disc dd { color: var(--green); }
.sdx-sum .is-total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; font-size: 20px; font-weight: 700; }
.sdx-sum .is-total dd { font-weight: 700; }
.sdx-sum .is-total small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.sdx-order-err { display: flex; gap: 8px; align-items: flex-start; background: #fff0f0; color: #a3161d; border: 1.5px solid #f1b8bb; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.sdx-order-err .sdx-i { width: 19px; height: 19px; margin-top: 1px; }

.sdx-busy { position: fixed; inset: 0; z-index: 100010; background: rgba(22, 22, 22, .5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.sdx-busy-card { background: var(--card); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); padding: 24px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 280px; max-width: 92vw; text-align: center; }
.sdx-progress { width: 100%; height: 8px; border-radius: 999px; background: var(--paper2); overflow: hidden; }
.sdx-progress span { display: block; height: 100%; width: 0; background: var(--hot); transition: width .25s; }
.sdx-toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100020; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.sdx-toast { display: flex; gap: 10px; align-items: flex-start; background: var(--ink); color: #fff; border-radius: 14px; padding: 11px 15px; font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; max-width: 520px; }
.sdx-toast.is-in { opacity: 1; transform: none; }
.sdx-toast .sdx-i { width: 19px; height: 19px; color: var(--sky); margin-top: 1px; }
.sdx-toast.is-err { background: #a3161d; }
.sdx-toast.is-err .sdx-i, .sdx-toast.is-ok .sdx-i { color: #fff; }
.sdx-toast.is-ok { background: #17733f; }
.sdx-dropcover { position: absolute; inset: 0; z-index: 50; background: rgba(43, 186, 235, .18); border: 3px dashed var(--sky); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.sdx-dropcover div { background: var(--card); border-radius: 18px; padding: 22px 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: var(--shadow); font-size: 17px; }
.sdx-dropcover .sdx-i { width: 40px; height: 40px; color: var(--sky2); }
.sdx-noscript { padding: 30px; text-align: center; }

html.sdx-modal-on #fc-chat-widget, html.sdx-busy-on #fc-chat-widget { display: none !important; }
/* Chat-Knopf der Website: im Designer unten in die dunkle Werkzeugleiste */
@media (min-width: 1000px) {
  html.sdx-lock #fc-chat-widget { right: auto !important; left: 12px !important; bottom: 14px !important; }
  html.sdx-lock #fc-chat-window { right: auto !important; left: 0 !important; }
}

/* ---------- Mittlere Desktopbreiten ---------- */
@media (max-width: 1279.98px) and (min-width: 1000px) {
  .sdx-body { grid-template-columns: 76px 280px minmax(0, 1fr) 276px; }
  html.sdx-lock #fc-chat-widget { left: 8px !important; }
  .sdx-panel-collapsed .sdx-body { grid-template-columns: 76px 0 minmax(0, 1fr) 276px; }
  .sdx-panel { padding: 16px 14px 26px; } .sdx-insp { padding: 2px 14px 26px; }
  .sdx-next-txt { display: none; }
  .sdx-top { gap: 10px; }
  .sdx-price small { display: none; }
  .sdx-presets .sdx-preset span { font-size: 23px; }
  .sdx-side { width: 80px; } .sdx-side canvas { width: 68px; height: 68px; }
}
@media (max-width: 1100px) and (min-width: 1000px) { .sdx-savestate { display: none; } .sdx-logo { width: 78px; } }
@media (max-height: 760px) and (min-width: 1000px) {
  .sdx-side canvas { width: 62px; height: 62px; } .sdx-side { width: 74px; }
  .sdx-sec { padding: 12px 0 14px; }
}

/* ---------- Handy & Tablet (< 1000 px) ---------- */
@media (max-width: 999.98px) {
  .sdx { --top: 56px; font-size: 15px; }
  .sdx-desktop-only { display: none !important; }
  .sdx-mobile-only { display: flex !important; }
  .sdx-drop .sdx-mobile-only { display: inline !important; }
  .sdx-top { gap: 8px; padding: 0 10px 0 4px; border-bottom-width: 1.5px; }
  .sdx-back { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; flex: none; border-radius: 12px; }
  .sdx-logo, .sdx-colors:not(.sdx-colors-lg), .sdx-savestate { display: none; }
  .sdx-prod { padding-left: 0; border: 0; flex: 1 1 auto; overflow: hidden; }
  .sdx-prod-meta { overflow: hidden; text-overflow: ellipsis; }
  .sdx-prod-name { font-size: 15px; }
  .sdx-prod-meta { font-size: 12px; }
  .sdx-top-sp { display: none; }
  .sdx-price b { font-size: 15px; }
  .sdx-price small { display: none; }
  .sdx-next { min-height: 40px; padding: 0 14px; font-size: 14.5px; box-shadow: 2px 2px 0 var(--ink) !important; }
  .sdx-next-txt { display: none; }
  .sdx-menu-wrap .sdx-iconbtn { width: 36px; }

  .sdx-body { display: flex; flex-direction: column; }
  .sdx-stage { order: 1; flex: 1 1 auto; min-height: 140px; }
  .sdx-sheet {
    order: 2; display: none; flex: none; max-height: 54%; border: 0; border-top: 1.5px solid var(--line); padding: 0 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0; margin-top: -18px; position: relative; z-index: 5; box-shadow: 0 -10px 30px rgba(22, 22, 22, .14);
    transition: transform .2s;
  }
  .sdx-sheet.is-drag { transition: none; }
  .sdx[data-sheet="panel"] .sdx-panel, .sdx[data-sheet="insp"] .sdx-insp { display: block; }
  .sdx[data-sheet="insp"] .sdx-insp { max-height: 46%; }
  .sdx-grab { display: block; position: sticky; top: 0; height: 22px; margin: 0 -16px; background: var(--card); z-index: 2; }
  .sdx-grab::after { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; border-radius: 9px; background: var(--line2); transform: translateX(-50%); }
  .sdx-pane-head, .sdx-insp-head { position: sticky; top: 22px; z-index: 2; background: var(--card); padding: 0 0 10px; margin: 0; display: flex; align-items: center; justify-content: space-between; touch-action: none; }
  .sdx-pane-head h2, .sdx-insp-head h2 { font-size: 18px; }
  .sdx-done { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--ink) !important; color: #fff !important; font-weight: 700; font-size: 14px; }
  .sdx-sec { border: 0; padding: 4px 0 6px; }
  .sdx-sec h3:first-child { display: none; }
  .sdx-sec[data-sec="effects"] h3:first-child, .sdx-sec[data-sec="motifcolor"] h3:first-child { display: flex; }
  .sdx-fontlist { display: block; max-height: none; border: 0; padding: 0; margin: 0; }
  .sdx-fontbtn { display: none; }
  .sdx-palette { gap: 10px; }
  .sdx-palette .sdx-swatch { max-width: 38px; }
  .sdx textarea, .sdx select, .sdx input[type=search], .sdx input[type=number] { font-size: 16px; }
  .sdx-field input[type=range] { height: 34px; }

  .sdx-rail, .sdx-ctx {
    order: 3; flex: none; flex-direction: row; gap: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); overflow-x: auto; overflow-y: hidden;
    background: var(--card); border-top: 1.5px solid var(--line); scrollbar-width: none; position: relative; z-index: 6;
  }
  .sdx-rail::-webkit-scrollbar, .sdx-ctx::-webkit-scrollbar { display: none; }
  .sdx-tool { flex: 1 1 0; min-width: 48px; color: var(--ink2); padding: 7px 0 6px; font-size: 10.5px; border-radius: 12px; letter-spacing: -.01em; }
  .sdx-tool .sdx-i { width: 24px; height: 24px; }
  .sdx-tool.is-on { background: transparent; color: var(--hot); }
  .sdx-tool:hover { background: transparent; color: var(--ink); }
  .sdx-tool.is-on:hover { color: var(--hot); }
  .sdx:not([data-sheet="panel"]) .sdx-tool.is-on { color: var(--ink2); }
  .sdx-ctx { display: flex !important; }
  .sdx-ctx[hidden] { display: none !important; }
  .sdx-has-ctx .sdx-rail { display: none; }
  .sdx-ctx button { flex: 1 1 0; min-width: 44px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 6px; font-size: 11px; font-weight: 600; border-radius: 12px; color: var(--ink2); }
  .sdx-ctx button .sdx-i { width: 24px; height: 24px; }
  .sdx-ctx button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; letter-spacing: -.02em; }
  .sdx-ctx button.is-on { color: var(--hot); }
  .sdx-ctx .is-danger { color: var(--red); }
  .sdx-ctx .sdx-ctx-x { flex: 0 0 40px; min-width: 40px; justify-content: center; border-right: 1.5px solid var(--line); border-radius: 0; margin-right: 2px; }

  .sdx-sides { left: auto; right: 10px; top: 10px; gap: 8px; }
  .sdx-side { width: 62px; padding: 3px 3px 4px; border-radius: 12px; }
  .sdx-side canvas { width: 54px; height: 54px; border-radius: 9px; margin-bottom: 1px; }
  .sdx-side-l { font-size: 11.5px; }
  .sdx-side-state { display: none; }
  .sdx-stagebar { left: 10px; top: 10px; bottom: auto; transform: none; padding: 3px; border-radius: 14px; }
  .sdx-zoomonly { display: none !important; }
  .sdx-stagebar .sdx-iconbtn { width: 40px; height: 40px; }
  .sdx-previewbtn span { display: none; }
  .sdx-previewbtn { padding: 0; width: 40px; }
  .sdx-warn { top: auto; bottom: 12px; max-width: calc(100% - 20px); font-size: 12.5px; padding: 5px 5px 5px 11px; }
  .sdx-empty { bottom: 12px; padding: 10px 10px 10px; border-width: 1.5px; box-shadow: 3px 3px 0 var(--ink); border-radius: 16px; }
  .sdx-empty p { font-size: 13.5px; margin-bottom: 8px; }
  .sdx-empty-btns { flex-wrap: nowrap; gap: 6px; }
  .sdx-empty-btns button { padding: 6px 9px; font-size: 13px; gap: 4px; }
  .sdx-empty-btns .sdx-i { width: 16px; height: 16px; }
  .sdx-toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .sdx-toast { font-size: 13.5px; }
  html.sdx-lock #fc-chat-widget { display: none !important; }

  .sdx-modal { padding: 0; align-items: flex-end; }
  .sdx-modal-card { border-radius: 22px 22px 0 0; border-width: 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 94%; }
  .sdx-small { max-width: none; }
  .sdx-order { max-height: 100%; height: 100%; border-radius: 0; }
  #sdxOrder { align-items: stretch; }
  .sdx-order-grid { grid-template-columns: 1fr; gap: 14px; }
  .sdx-order-prev { grid-template-columns: 1fr 1fr; }
  .sdx-no-back .sdx-order-prev { max-width: 240px; margin: 0 auto; }
  .sdx-modal-head { position: sticky; top: -18px; background: var(--card); z-index: 2; margin: -18px -16px 12px; padding: 12px 12px 10px 16px; border-bottom: 1.5px solid var(--line); }
  .sdx-modal-head h2 { font-size: 20px; }
  .sdx-sizes { grid-template-columns: 1fr; }
}
@media (min-width: 640px) and (max-width: 999.98px) {
  .sdx-sizes { grid-template-columns: 1fr 1fr; }
  .sdx-presets { grid-template-columns: repeat(4, 1fr); }
  .sdx-clipgrid { grid-template-columns: repeat(6, 1fr); }
  .sdx-tplgrid { grid-template-columns: repeat(4, 1fr); }
  .sdx-stylepick { grid-template-columns: repeat(8, 1fr); }
  .sdx-stylepick-insp { grid-template-columns: repeat(4, 1fr); }
  .sdx-palette { grid-template-columns: repeat(15, 38px); justify-content: start; }
  .sdx-next-txt { display: inline; }
}
@media (max-width: 380px) {
  .sdx-price { display: none; }
  .sdx-clipgrid { grid-template-columns: repeat(3, 1fr); }
  .sdx-palette { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .sdx *, .sdx *::before, .sdx *::after { animation: none !important; transition: none !important; }
}
.sdx-fitall { display: inline-flex; margin: 6px 0 0 4px; padding: 6px 12px; font-size: 13px; }
.sdx-ai-bg { width: 100%; justify-content: center; margin: 2px 0 6px; background: var(--ink) !important; color: #fff !important; }
/* Zuschneiden & Form */
.sdx-crop-btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.sdx-shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.sdx-shape { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px 5px; border: 1.5px solid var(--line, #ddd); border-radius: 10px; background: #fff; font-size: 11px; cursor: pointer; color: inherit; }
.sdx-shape svg { width: 26px; height: 26px; }
.sdx-shape svg path { fill: #d9d9d9; stroke: #161616; stroke-width: 1.4; }
.sdx-shape.is-on { border-color: var(--ink, #161616); box-shadow: 0 0 0 1.5px var(--ink, #161616); }
.sdx-border-colors { gap: 8px; margin: 2px 0 8px; }
.sdx-bcol { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.25); cursor: pointer; padding: 0; }
.sdx-bcol.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink, #161616); }
.sdx-crop-card { width: min(720px, 96vw); }
.sdx-crop-wrap { display: flex; justify-content: center; background: #222; border-radius: 10px; padding: 16px; }
.sdx-crop-stage { position: relative; display: inline-block; line-height: 0; touch-action: none; user-select: none; }
.sdx-crop-dim { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sdx-crop-hole { position: absolute; box-shadow: 0 0 0 9999px rgba(0,0,0,.6); }
.sdx-crop-stage img { max-width: min(620px, calc(96vw - 110px)); max-height: 56vh; display: block; }
.sdx-crop-box { position: absolute; outline: 2px solid #fff; cursor: move; box-sizing: border-box; }
.sdx-crop-shape { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sdx-crop-shape path { fill: none; stroke: #2bbaeb; stroke-width: 2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.sdx-crop-box i { position: absolute; width: 22px; height: 22px; background: #fff; border: 2px solid #2bbaeb; border-radius: 50%; box-sizing: border-box; }
.sdx-crop-box i[data-h=nw] { left: -11px; top: -11px; cursor: nwse-resize; } .sdx-crop-box i[data-h=ne] { right: -11px; top: -11px; cursor: nesw-resize; }
.sdx-crop-box i[data-h=sw] { left: -11px; bottom: -11px; cursor: nesw-resize; } .sdx-crop-box i[data-h=se] { right: -11px; bottom: -11px; cursor: nwse-resize; }

/* Mehrfachauswahl / Gruppen */
.sdx-only-multi, .sdx-only-group { display: none; }
[data-kind="multi"] .sdx-only-multi, [data-kind="group"] .sdx-only-group { display: flex; }
[data-kind="multi"] p.sdx-only-multi, [data-kind="group"] p.sdx-only-group { display: block; }
.sdx-sec[data-sec="group"] .sdx-btn { width: 100%; justify-content: center; margin: 4px 0 8px; }
[data-kind="multi"] .sdx-sec[data-sec="arrange"] [data-act="other-side"], [data-kind="multi"] .sdx-sec[data-sec="arrange"] [data-act="lock"], [data-kind="multi"] .sdx-no-multi { display: none; }
.sdx-layer-tools { gap: 6px; margin: 0 0 8px; flex-wrap: wrap; }
.sdx-multi-on [data-act="multi"], [data-act="multi"][aria-pressed="true"] { background: var(--ink, #161616); color: #fff; }

/* ================= Fahrzeug (Art «fahrzeug», aus beschriftig.ch) ================= */
.sdx .sdx-lines {
  position: absolute !important; left: 0; top: 0; width: 1000px !important; height: 1000px !important; max-width: none !important;
  transform-origin: 0 0; pointer-events: none; user-select: none; mix-blend-mode: multiply; z-index: 1;
}
.sdx .sdx-cc .upper-canvas { z-index: 2; }
.bdx .sdx-photo, .sdx-k-flach .sdx-photo { -webkit-mask-image: none !important; mask-image: none !important; }
/* Ansichten: links senkrecht, Vorschau 2:1 */
.bdx-sides .sdx-side { width: 128px; }
.bdx-sides .sdx-side canvas { width: 116px; height: 58px; border-radius: 8px; }
/* Vorlagen 2:1 */
.bdx .sdx-tpl-img { aspect-ratio: 2 / 1; }
/* QR */
.sdx-qr { margin-bottom: 14px; }
.sdx-qr .sdx-row { gap: 6px; }
.sdx .sdx-qr input { flex: 1; min-width: 0; min-height: 38px; padding: 6px 10px; border: 1.5px solid var(--line2); border-radius: 10px; background: #fff; }
/* Offertanfrage */
.bdx-order { max-width: 1120px; }
.bdx .sdx-order-prev { display: block; }
.bdx-prevgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.bdx-prevgrid figure { background: var(--paper); border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: auto; }
.bdx-prevgrid figure:nth-child(-n+2):nth-last-child(n+3), .bdx-prevgrid figure:only-child { grid-column: span 2; }
.bdx-prevgrid img { width: 100%; height: auto; display: block; min-height: 60px; }
.bdx-prevgrid figcaption { position: absolute; left: 8px; top: 8px; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
.bdx .sdx-order-meta { margin-bottom: 10px; }
.bdx-fleet { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; font-weight: 600; font-size: 14px; }
.bdx .sdx-sum .is-sub { font-size: 13px; color: var(--muted); padding: 1px 0; }
.bdx .sdx-sum .is-total { font-size: 18px; }
.bdx-form { display: flex; flex-direction: column; gap: 10px; }
.bdx-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bdx-form label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.bdx-form input:not([type=checkbox]), .bdx-form textarea { width: 100%; min-height: 40px; padding: 8px 11px; border: 1.5px solid var(--line2); border-radius: 10px; background: #fff; font-weight: 400; font-size: 15px; }
.bdx-form textarea { resize: vertical; }
.bdx-form input:focus, .bdx-form textarea:focus { border-color: var(--hot); outline: none; box-shadow: 0 0 0 3px rgba(31, 95, 224, .15); }
.bdx-form label.bdx-consent { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 13px; }
.bdx-consent a { text-decoration: underline; }
.bdx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.bdx-done { display: none; text-align: center; padding: 30px 10px 14px; }
.bdx-done h2 { font-size: 24px; margin: 12px 0; }
.bdx-done p { max-width: 560px; margin: 8px auto; }
.bdx-done .sdx-modal-btns { justify-content: center; margin-top: 20px; }
.bdx-done-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.bdx-done-ic .sdx-i { width: 34px; height: 34px; stroke-width: 2.6; }
#sdxOrder.is-done .sdx-order-grid { display: none; }
#sdxOrder.is-done .bdx-done { display: block; }
.sdx-price small { white-space: nowrap; }
@media (max-width: 999.98px) {
  .bdx-sides { left: 8px; right: 8px; top: auto; bottom: 8px; flex-direction: row; gap: 6px; }
  .bdx-sides .sdx-side { width: auto; flex: 1 1 0; padding: 3px; }
  .bdx-sides .sdx-side canvas { width: 100%; height: auto; aspect-ratio: 2 / 1; }
  .bdx-sides .sdx-side-l { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .bdx .sdx-warn { bottom: auto; top: 58px; }
  .bdx-f2 { grid-template-columns: 1fr; }
  .bdx-prevgrid { grid-template-columns: 1fr; }
  .bdx-prevgrid figure { grid-column: auto !important; }
}
.bdx .sdx-presets { grid-template-columns: 1fr; }
.bdx .sdx-preset span { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; }
.bdx .sdx-btn-block span { white-space: normal; text-align: left; }
.bdx [data-act="copy-side"] { height: auto; min-height: 38px; padding-top: 6px; padding-bottom: 6px; line-height: 1.25; }

/* ================= folie.ch: Logo, Produktwahl nach Bereichen, Format-Panel ================= */
.fdx-logo { width: 132px; }
.fdx-logo text.fdx-logo-t { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 38px; fill: var(--ink); stroke: none; letter-spacing: -.02em; }
.fdx-logo .fdx-logo-dot { fill: var(--hot); }
.sdx-chooser-card { max-width: 860px !important; width: 100%; }
#sdxChooserList.sdx-chooser { display: block; max-height: min(70vh, 660px); overflow: auto; padding: 2px; }
.sdx-chooser-group { margin: 0 0 14px; }
.sdx-chooser-group h3 { margin: 6px 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sdx-chooser-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.sdx-chooser-group h3 { grid-column: 1 / -1; }
.sdx-chooser-group .sdx-chooser-item img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; background: var(--paper); flex: none; }
.sdx-chooser-group .sdx-chooser-item span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.sdx-chooser-group .sdx-chooser-item small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.sdx-flat-desc { margin: 0 0 10px; }
.sdx-flat-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sdx-flat-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px; border: 1.5px solid var(--line2); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; text-align: left; cursor: pointer; color: var(--ink); }
.sdx-flat-opt.is-on { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); font-weight: 700; }
.sdx-flat-sw { width: 22px; height: 22px; border-radius: 6px; background: var(--c); border: 1px solid rgba(0,0,0,.18); flex: none; }
.sdx-flat-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin-bottom: 8px; }
.sdx-flat-size { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 9px; border: 1.5px solid var(--line2); border-radius: 10px; background: #fff; font: inherit; cursor: pointer; text-align: left; color: var(--ink); min-height: 52px; }
.sdx-flat-size b { font-size: 14px; }
.sdx-flat-size small { font-size: 11.5px; color: var(--muted); }
.sdx-flat-size em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--hot2, var(--hot)); }
.sdx-flat-size.is-on { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.sdx-flat-custom { display: flex; align-items: flex-end; gap: 8px; margin: 2px 0 12px; }
.sdx-flat-custom label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; font-weight: 600; position: relative; flex: 1; }
.sdx-flat-custom input { width: 100%; min-height: 40px; padding: 6px 34px 6px 10px; border: 1.5px solid var(--line2); border-radius: 10px; background: #fff; font-size: 16px; }
.sdx-flat-custom label span { position: absolute; right: 10px; bottom: 11px; font-size: 12px; color: var(--muted); font-weight: 600; }
.sdx-flat-x { padding-bottom: 10px; font-weight: 700; color: var(--muted); }
.sdx-flat-shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.sdx-flat-shape { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border: 1.5px solid var(--line2); border-radius: 10px; background: #fff; font: inherit; font-size: 12px; cursor: pointer; color: var(--ink); }
.sdx-flat-shape svg { width: 26px; height: 26px; }
.sdx-flat-shape.is-on { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); font-weight: 700; }
.sdx-flat-shape:disabled { opacity: .35; cursor: not-allowed; }
.sdx-flat-opts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sdx-flat-opts small { color: var(--muted); font-weight: 600; }
.sdx-flat-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper2); margin: 4px 0 12px; }
.sdx-flat-price span { font-size: 13px; color: var(--ink2); }
.sdx-flat-price b { font-size: 20px; }
.sdx-flat-price small { width: 100%; font-size: 12px; color: var(--muted); }
#sdxFlatColors .sdx-swatch span { font-size: 11px; }
.sdx-xsell { margin-top: 2px; }
/* Untergrund/Stempelfarbe im Format-Panel: Namen unter den Kreisen, mehrere Reihen ohne Überlappen */
#sdxFlatColors { display: grid; grid-template-columns: repeat(auto-fill, 64px); column-gap: 10px; row-gap: 40px; padding-bottom: 30px; justify-content: start; }
#sdxFlatColors .sdx-swatch { width: 46px; height: 46px; justify-self: center; }
#sdxFlatColors .sdx-swatch span { width: 72px; white-space: normal; text-align: center; line-height: 1.15; font-size: 11px; }
.sdx-flat-opts .sdx-check { color: var(--ink); }

/* ================= Fahrzeug-Auswahl: Suche, Kategorie-Chips, Marke (ab 9 Fahrzeugen) ================= */
#sdxChooserList.is-veh-only .sdx-chooser-group:not([data-group="fahrzeug"]) { display: none; }
#sdxChooserList.is-veh-only .is-veh-group > h3 { display: none; }
.is-veh-group h3 .sdx-vcount { text-transform: none; letter-spacing: 0; font-weight: 600; }
.sdx-vfilter { grid-column: 1 / -1; position: sticky; top: -2px; box-shadow: 0 -8px 0 var(--card); z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 8px; padding: 8px 0 10px; margin: -4px 0 2px; background: var(--card); border-bottom: 1.5px solid var(--line); }
.sdx-vsearch { position: relative; display: flex; align-items: center; min-width: 0; }
.sdx-vsearch > .sdx-i { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.sdx .sdx-vsearch input[type=search] { width: 100%; min-width: 0; height: 44px; padding: 0 40px 0 38px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.sdx .sdx-vsearch input::-webkit-search-cancel-button { display: none; }
.sdx-vsearch input:focus, .sdx-vfilter select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px rgba(22, 22, 22, .12); }
.sdx-vclear { position: absolute; right: 4px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--muted); }
.sdx-vclear .sdx-i { width: 18px; height: 18px; }
.sdx-vfilter select { height: 44px; min-width: 0; padding: 0 30px 0 12px; border: 1.5px solid var(--line2); border-radius: 12px; font: inherit; font-size: 15px; color: var(--ink); -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 16px; }
.sdx-vchips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 1px; }
.sdx-vchips::-webkit-scrollbar { display: none; }
.sdx-vchip { flex: none; height: 34px; padding: 0 12px; border: 1.5px solid var(--line2); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.sdx-vchip small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 2px; }
.sdx-vchip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sdx-vchip.is-on small { color: rgba(255, 255, 255, .7); }
@media (hover: hover) { .sdx-vchip:hover:not(.is-on) { border-color: var(--ink); } }
.sdx-vcat { grid-column: 1 / -1; margin: 8px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.sdx-vcat[hidden], .sdx-chooser-item.is-veh[hidden] { display: none; }
.sdx-chooser-group .sdx-chooser-item.is-veh { padding: 8px 10px 8px 8px; gap: 10px; position: relative; }
.sdx-chooser-group .sdx-chooser-item.is-veh img { width: 92px; height: 50px; object-fit: contain; background: var(--paper); border-radius: 8px; }
.sdx-chooser-item.is-veh b { font-size: 14.5px; }
.sdx-chooser-group.is-veh-group { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.sdx-veh-ev { display: inline-block; vertical-align: 2px; margin-left: 6px; font-style: normal; font-size: 11px; font-weight: 700; line-height: 1.3; padding: 1px 7px; border-radius: 999px; background: #e3f5ea; color: #157a40; }
.sdx-vempty { grid-column: 1 / -1; text-align: center; padding: 18px 8px; color: var(--muted); }
.sdx-vempty p { margin: 0 0 10px; }
.sdx-vnote { grid-column: 1 / -1; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .sdx-chooser-group.is-veh-group { grid-template-columns: 1fr; }
  .sdx-vchips { flex-wrap: nowrap; margin-right: -16px; padding-right: 16px; }
  .sdx-vfilter { grid-template-columns: minmax(0, 1fr) 128px; gap: 6px; }
  .sdx-vfilter select { font-size: 15px; padding-left: 10px; }
  .sdx-chooser-group .sdx-chooser-item.is-veh img { width: 84px; height: 46px; }
}
.sdx-vclear[hidden] { display: none; }
