/* Studio – baut auf base.css auf */
body { overflow: hidden; }

/* Kopfzeile */
.topbar {
  height: 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
  padding: 0 14px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: var(--accent); color: #fff; font: 700 16px/1 "Archivo Black", var(--font);
}
.design-name {
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 6px 8px; font-weight: 600; font-size: 14px; min-width: 0; width: 260px;
}
.design-name:hover { border-color: var(--line); }
.design-name:focus { border-color: var(--accent); outline: none; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
body:not([data-step="design"]) .design-only { display: none; }

.stepper { display: flex; list-style: none; margin: 0; padding: 0; }
.stepper li { display: flex; align-items: center; }
.stepper li + li::before { content: ""; width: 16px; height: 1px; background: var(--line-strong); margin: 0 4px; }
.stepper button {
  display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer;
  padding: 6px 8px; border-radius: 99px; color: var(--muted); font-weight: 500; white-space: nowrap;
}
.stepper button:hover { color: var(--text); }
.step-no { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; border: 1px solid var(--line-strong); background: var(--panel); }
.stepper button[aria-current="step"] { color: var(--text); }
.stepper button[aria-current="step"] .step-no { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper button.is-done .step-no { background: var(--good-soft); border-color: var(--good-soft); color: var(--good); }

/* Arbeitsbereich */
.workspace { height: calc(100% - 56px); display: grid; grid-template-columns: 72px 280px minmax(0, 1fr) 296px; }

.rail { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; }
.rail button {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 7px; border: 0; border-radius: 8px;
  background: none; color: var(--muted); font-size: 11px; font-weight: 500; cursor: pointer;
}
.rail button:hover { background: var(--sunken); color: var(--text); }
.rail button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-text); }
.rail .ico { width: 20px; height: 20px; }
.rail-end { margin-top: auto; }

.side-panel { background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; min-width: 0; }
.panel-section { padding: 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.panel-section:last-child { border-bottom: 0; }
.panel-title { font-size: 15px; font-weight: 600; }
.panel-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.blank-list { display: flex; flex-direction: column; gap: 8px; }
.blank-card {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center;
  padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  text-align: left; cursor: pointer;
}
.blank-card:hover { border-color: var(--line-strong); }
.blank-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.blank-photo, .blank-sil {
  width: 52px; height: 64px; border-radius: 8px; background: var(--sunken) center/cover no-repeat;
}
.blank-sil { color: var(--text); }
.blank-sil path { fill: currentColor; }
.blank-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.blank-copy strong { font-size: 13px; line-height: 1.25; }
.blank-dots { display: flex; gap: 4px; }
.blank-dots i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.color-list { display: grid; grid-template-columns: 1fr; gap: 6px; }
.color-option {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); cursor: pointer; text-align: left;
}
.color-option:hover { border-color: var(--line-strong); }
.color-option[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.color-option .area-list { display: flex; flex-direction: column; gap: 6px; }
.area-option {
  display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); cursor: pointer;
}
.area-option[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.area-option span { color: var(--muted); font-size: 12px; }
.color-pick, .place-list, .soon-list { display: flex; flex-direction: column; gap: 6px; }
.color-row { display: flex; align-items: center; gap: 8px; }
.color-show {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); cursor: pointer; text-align: left; color: var(--text);
}
.color-show[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.color-show i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); flex: none; }
.color-show .tick { margin-left: auto; font-size: 12px; color: var(--accent-text); }
.color-show .tick.off { color: var(--muted); }
.color-choice {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); cursor: pointer; text-align: left; color: var(--text);
}
.color-choice i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); flex: none; }
.color-choice .tick { margin-left: auto; font-size: 12px; color: var(--accent-text); }
.color-choice .tick.off { color: var(--muted); }
.color-choice[aria-pressed="true"] { border-color: var(--accent); }
.soon-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.soon-card strong { display: block; font-size: 14px; }
.soon { flex: none; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 22px 14px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; text-align: center; background: var(--sunken); cursor: pointer;
}
.dropzone:hover { border-color: var(--accent); }
.upload-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.upload-card { display: flex; flex-direction: column; gap: 4px; align-items: stretch; min-width: 0; }
.upload-card .link-btn { font-size: 11px; padding: 0; }
.upload-item { aspect-ratio: 1; width: 100%; min-width: 0; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); padding: 4px; cursor: pointer; background: var(--panel); }
.upload-item img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.upload-item:hover { border-color: var(--accent); }
.text-presets { display: flex; flex-direction: column; gap: 6px; }
.text-preset { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 10px 12px; text-align: left; cursor: pointer; }
.text-preset:hover { border-color: var(--accent); }
.mark-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.template-card { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; padding: 8px; }
.template-copy { min-width: 0; }
.template-copy .hint { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-mark { width: 100%; height: 72px; display: block; }
.tpl-mark svg { width: 100%; height: 100%; display: block; }
.create-prompt { width: 100%; min-height: 76px; resize: vertical; font-size: 14px; }
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.brief {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px 10px; text-align: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; color: var(--text);
}
.brief .tpl-mark { height: 64px; }
.brief strong { font-size: 12px; }
.brief.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.brief-fields { display: flex; flex-direction: column; gap: 8px; }
.brief-fields .field { margin: 0; }
.upload-edits { display: flex; flex-direction: column; gap: 10px; }
.upload-edit { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; }
.upload-edit .upload-item { width: 72px; height: 72px; }
.upload-actions { display: flex; gap: 6px; }
.chip.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.tips { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; display: flex; flex-direction: column; gap: 4px; }

/* Ebenen */
.layer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.layer-item { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.layer-item:hover { background: var(--sunken); }
.layer-item.is-selected { background: var(--accent-soft); border-color: rgba(226,51,126,.35); }
.layer-item.is-hidden .layer-name, .layer-item.is-hidden .layer-thumb { opacity: .45; }
.layer-item.drop-target { border-top-color: var(--accent); }
.layer-thumb { width: 34px; height: 34px; flex: none; border-radius: 6px; background: var(--sunken) center/contain no-repeat; border: 1px solid var(--line); display: grid; place-items: center; font: 700 15px/1 "Anton", var(--font); }
.layer-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rename { flex: 1; height: 26px; border: 1px solid var(--accent); border-radius: 4px; padding: 0 6px; }
.dpi-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dpi-dot.is-good { background: var(--good); } .dpi-dot.is-ok { background: var(--ok); } .dpi-dot.is-low { background: var(--low); }
.empty { color: var(--muted); font-size: 12px; margin: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; }

/* Bühne */
.stage { position: relative; min-width: 0; overflow: hidden; background: #fff; }
.editor-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.editor-canvas:focus { outline: none; }
.stage-top { position: absolute; z-index: 3; top: 34px; left: 34px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; }
.stage-top .pill-group:first-child { flex-wrap: nowrap; flex: 1 1 auto; min-width: 0; max-width: none; overflow-x: auto; scrollbar-width: none; }
.stage-top .pill-group:first-child::-webkit-scrollbar { display: none; }
.stage-top .pill-group:first-child button { white-space: nowrap; flex: none; }
.color-switch { flex: none; max-width: 42%; overflow-x: auto; scrollbar-width: none; }
.color-switch::-webkit-scrollbar { display: none; }
.color-switch button { white-space: nowrap; flex: none; }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.22); flex: none; }
.mode-switch { margin-left: auto; flex: none; }
.stage-bottom { position: absolute; z-index: 3; left: 34px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none; }
.pill-group, .toolbar, .statusbar {
  pointer-events: auto; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(22,23,27,.06);
}
.pill-group button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.pill-group button:hover { color: var(--text); }
.pill-group button[aria-selected="true"] { background: var(--sunken); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.mode-switch button[aria-selected="true"] { background: var(--ink, #16171b); color: #fff; box-shadow: none; }
.pill-group .count { min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; display: inline-grid; place-items: center; padding: 0 5px; }
.toolbar { order: 2; margin-left: auto; }
.toolbar .sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.toolbar .tool.is-on { background: var(--accent-soft); color: var(--accent-text); }
.zoom-label { background: none; border: 0; min-width: 52px; cursor: pointer; color: var(--muted); font-size: 12px; }
.statusbar { order: 1; padding: 7px 10px; gap: 14px; color: var(--muted); font-size: 12px; }
.statusbar b { color: var(--text); font-weight: 500; }
.drop-hint {
  position: absolute; inset: 22px 0 0 22px; z-index: 4; display: none; place-items: center; font-size: 15px;
  background: rgba(226,51,126,.06); border: 2px dashed var(--accent); pointer-events: none;
}
.stage.is-dropping .drop-hint { display: grid; }
.stage-3d-hint { display: none; }
.stage[data-mode="3d"] .editor-canvas { visibility: hidden; }
.stage[data-mode="3d"] .stage-3d-hint { display: block; position: absolute; z-index: 2; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; color: var(--muted); font-size: 12px; }
.stage[data-mode="3d"] .toolbar, .stage[data-mode="3d"] .statusbar { display: none; }

/* Eigenschaften rechts */
.inspector { background: var(--panel); border-left: 1px solid var(--line); overflow-y: auto; min-width: 0; }
.prop-section { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.prop-section h3 { font-size: 12px; font-weight: 600; color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: center; }
.mini-select { border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 6px; font-size: 12px; background: var(--panel); }
.field-with-link { display: flex; align-items: flex-end; gap: 2px; }
.field-with-link .field { flex: 1; }
.field-with-link .link { margin-bottom: 4px; }
.field.slider { flex-direction: row; align-items: center; gap: 10px; }
.field.slider .field-label { width: 64px; flex: none; }
.field.slider input { flex: 1; accent-color: var(--accent); }
.field.slider .unit { width: 44px; text-align: right; color: var(--muted); font-size: 12px; }
.inspector textarea { font-size: 14px; width: 100%; }
.quality { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.quality-badge { padding: 2px 8px; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.quality.is-good .quality-badge { background: var(--good-soft); color: var(--good); }
.quality.is-ok .quality-badge { background: var(--ok-soft); color: var(--ok); }
.quality.is-low .quality-badge { background: var(--low-soft); color: var(--low); }
.ink-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ink {
  width: 24px; height: 24px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(22, 23, 27, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}
.ink.is-on { outline: 2px solid var(--accent); outline-offset: 2px; }
.ink-pick { display: inline-flex; }
.field .ink-input[type="color"],
.ink-pick input.ink-input[type="color"] {
  width: 26px; height: 26px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px dashed var(--line-strong); background: transparent;
}
.field .ink-input[type="color"]::-webkit-color-swatch-wrapper,
.ink-pick input.ink-input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.field .ink-input[type="color"]::-webkit-color-swatch,
.ink-pick input.ink-input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 999px; }
.paint-list { display: flex; flex-direction: column; gap: 12px; }
.paint-block { display: flex; flex-direction: column; gap: 6px; }
.paint-name { font-size: 12px; color: var(--muted); }
.colour-control { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.colour-bar { display: flex; align-items: center; gap: 8px; }
.colour-control input.hex-input,
.field .colour-control input.hex-input:not([type="range"]) {
  width: 92px; max-width: 92px; flex: 0 0 92px; height: 28px; padding: 0 8px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--panel);
  font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.field .colour-control input.ink-input[type="color"] {
  width: 26px; max-width: 26px; flex: 0 0 26px; height: 26px; padding: 0;
}
.palette-toggle {
  margin-left: auto; height: 28px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--panel); font-size: 12px;
}
.palette-toggle.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.rgb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rgb-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rgb-field span { font-size: 11px; color: var(--muted); }
.colour-control .rgb-field input,
.field .colour-control .rgb-field input {
  width: 100%; height: 28px; padding: 0 6px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--panel);
}
.palette {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  padding: 8px; border-radius: 10px; background: var(--sunken);
}
.palette .ink { width: 22px; height: 22px; justify-self: center; }
.cropper {
  position: relative; width: 100%; max-height: 220px; border-radius: 8px; overflow: hidden; touch-action: none;
  background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 50% / 16px 16px;
  border: 1px solid var(--line);
}
.cropper img { width: 100%; height: 100%; object-fit: fill; display: block; pointer-events: none; }
.crop-window {
  position: absolute; box-shadow: 0 0 0 999px rgba(22, 23, 27, .48);
  border: 1.5px solid #fff; cursor: move; touch-action: none;
}
.crop-window::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, transparent 33.2%, rgba(255,255,255,.75) 33.2% calc(33.2% + 1px), transparent calc(33.2% + 1px) 66.4%, rgba(255,255,255,.75) 66.4% calc(66.4% + 1px), transparent calc(66.4% + 1px)),
    linear-gradient(to bottom, transparent 33.2%, rgba(255,255,255,.75) 33.2% calc(33.2% + 1px), transparent calc(33.2% + 1px) 66.4%, rgba(255,255,255,.75) 66.4% calc(66.4% + 1px), transparent calc(66.4% + 1px));
}
.crop-handle {
  position: absolute; width: 10px; height: 10px; background: #fff; border: 1.5px solid #16171b; border-radius: 2px; z-index: 1;
}
.crop-handle.is-left-top { left: 2px; top: 2px; cursor: nwse-resize; }
.crop-handle.is-top { left: calc(50% - 5px); top: 2px; cursor: ns-resize; }
.crop-handle.is-right-top { right: 2px; top: 2px; cursor: nesw-resize; }
.crop-handle.is-right { right: 2px; top: calc(50% - 5px); cursor: ew-resize; }
.crop-handle.is-right-bottom { right: 2px; bottom: 2px; cursor: nwse-resize; }
.crop-handle.is-bottom { left: calc(50% - 5px); bottom: 2px; cursor: ns-resize; }
.crop-handle.is-left-bottom { left: 2px; bottom: 2px; cursor: nesw-resize; }
.crop-handle.is-left { left: 2px; top: calc(50% - 5px); cursor: ew-resize; }
.nothing { padding: 24px 16px; display: flex; flex-direction: column; gap: 14px; }
.nothing .big { font-size: 15px; font-weight: 600; }
.shortcuts summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.shortcuts dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 0; font-size: 12px; }
.shortcuts dt { white-space: nowrap; font-weight: 500; }
.shortcuts dd { margin: 0; color: var(--muted); }

/* Schritte 2 & 3 */
.page { height: calc(100% - 56px); overflow-y: auto; }
.page-grid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(440px, 600px); gap: 32px; max-width: 1240px; margin: 0 auto; padding: 28px; }
.page-preview { position: sticky; top: 28px; align-self: start; display: flex; flex-direction: column; gap: 12px; }
.preview-frame { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; justify-content: center; }
.mock-canvas { display: block; max-width: 100%; }
.gallery-main { display: block; max-width: 100%; max-height: calc(100vh - 330px); margin: 0 auto; }
.preview-switch { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.color-thumbs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.thumb-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.thumb-btn.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.gallery-thumb { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--panel); }
.gallery-thumb:hover { border-color: var(--accent); }
.gallery-thumb img { width: 100%; display: block; }

.page-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 15px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.opt-row { display: flex; flex-direction: column; gap: 6px; }
.option-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.option-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; background: var(--panel); }
.option-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.option-card input { accent-color: var(--accent); margin-top: 2px; }
.option-card strong { display: block; }
.option-card .price { margin-left: auto; white-space: nowrap; font-weight: 600; }
.option-card .hint { margin-top: 2px; }

.cost-table td, .cost-table th, .price-table td, .price-table th { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cost-table th, .price-table th { font-size: 12px; font-weight: 500; color: var(--muted); }
.cost-table td .sub { display: block; color: var(--muted); font-size: 12px; }
.cost-table tfoot td { border-bottom: 0; font-weight: 600; padding-top: 12px; }
td.num, th.num { text-align: right; white-space: nowrap; padding-left: 12px; }
td.muted { color: var(--muted); }
td.warn { color: var(--ok); }
.price-table .field-input.price { display: inline-flex; width: 112px; }
.price-table input { width: 100%; height: 34px; padding: 0 26px 0 8px; text-align: right; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); }
.price-table input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.price-table tr.is-loss td { color: var(--low); }
.price-table tr.is-thin td:nth-child(4), .price-table tr.is-thin td:nth-child(5) { color: var(--ok); }
.price-table td:nth-child(4) { font-weight: 600; color: var(--good); }
.bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px; background: var(--sunken); border-radius: 10px; }
.bulk-value { width: 100px; }
.bulk-value input { width: 100%; height: 34px; padding: 0 26px 0 8px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); }
.summary { margin: 0; font-weight: 500; padding: 12px 14px; border-radius: 10px; background: var(--good-soft); color: var(--good); }
.summary.is-loss { background: var(--low-soft); color: var(--low); }
.facts { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.piece-facts .facts { grid-template-columns: 88px 1fr; }
.facts .good { color: var(--good); font-weight: 600; }
.card .btn.sm { align-self: flex-start; }
.page-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: space-between;
  padding: 12px 28px; background: rgba(255,255,255,.95); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
.page-center { display: grid; place-items: center; gap: 12px; padding: 80px 24px; }
.print-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.print-file { margin: 0; display: flex; gap: 12px; }
.print-file .checker { width: 90px; aspect-ratio: 3 / 4; flex: none; }
.print-file img { width: 100%; height: 100%; object-fit: contain; }
.print-file figcaption { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); align-items: flex-start; }
.print-file strong { color: var(--text); font-size: 13px; }
.row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.connect { display: flex; flex-direction: column; gap: 10px; }
.connect .btn { align-self: flex-start; }
.more summary { cursor: pointer; color: var(--muted); }
.push-result:empty { display: none; }

.design-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.design-card { width: 100%; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.design-card:hover { border-color: var(--accent); }
.design-card .checker { aspect-ratio: 3 / 4; }
.design-card img { width: 100%; height: 100%; object-fit: contain; }
.design-card span { color: var(--muted); font-size: 12px; }

@media (max-width: 1280px) {
  .workspace { grid-template-columns: 64px 240px minmax(0, 1fr) 272px; }
  .stepper button { padding: 6px; }
  .design-name { width: 160px; }
}
@media (max-width: 980px) {
  .page-grid { grid-template-columns: 1fr; }
  .page-preview { position: static; }
  .workspace { grid-template-columns: 64px minmax(0, 1fr); }
  .side-panel, .inspector { display: none; }
}
.statusbar span { white-space: nowrap; }
.prop-section .icon-row .icon-btn { width: 27px; height: 30px; }
.prop-section .icon-row .sep { margin: 0 2px; }
.nothing .facts { grid-template-columns: 88px 1fr; }
.option-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.panel-head h2 { font-size: 15px; }

/* Schritt Bilder & Texte – reduziert, ruhig */
.content-wrap { max-width: 1240px; margin: 0 auto; padding: 28px; }
.content-head { margin-bottom: 20px; }
.content-head h2 { font-size: 22px; letter-spacing: -.01em; margin: 0 0 4px; }
.content-head p { margin: 0; }
.content-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); gap: 36px; align-items: start; }
.content-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.media { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 12px; }
.shot-frame { position: relative; width: 100%; max-height: 520px; margin: 0 auto; background: #e6e4e0; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.shot-frame img, .stage-img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; display: block; }
.stage-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); box-shadow: 0 2px 10px rgba(0,0,0,.12); font-size: 22px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; color: var(--text); }
.shot-frame:hover .stage-nav { opacity: 1; }
.stage-nav.prev { left: 12px; } .stage-nav.next { right: 12px; }
.stage-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(255,255,255,.7); font-weight: 600; }
.stage.is-busy img { filter: blur(2px); }
.media-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.stage-caption { font-weight: 600; }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.strip-item { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--sunken); cursor: grab; aspect-ratio: 4 / 5; }
.strip-item { min-width: 0; }
.strip-item img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; display: block; }
.strip-item.is-current { outline: 2px solid var(--text); outline-offset: 1px; }
.strip-item.is-off img { opacity: .28; filter: grayscale(1); }
.strip-main { position: absolute; left: 5px; top: 5px; background: var(--text); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; }
.strip-eye { position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.strip-eye svg { width: 13px; height: 13px; }
.strip-item:hover .strip-eye, .strip-item.is-off .strip-eye { opacity: 1; }
.content-side { display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-head h3 { font-size: 15px; margin: 0; }
.panel-tools { display: flex; align-items: center; gap: 6px; }
.panel-foot { display: flex; justify-content: flex-end; min-height: 16px; }
.save-state { font-size: 12px; color: var(--muted); }
.presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.preset { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 0 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; color: var(--text); overflow: hidden; }
.preset.is-active { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.preset:disabled { opacity: .6; cursor: wait; }
.preset-swatch { width: 100%; aspect-ratio: 4 / 5; display: grid; place-items: center; position: relative; }
.preset-swatch[data-surface="paper"]::after, .preset-swatch[data-surface="concrete"]::after, .preset-swatch[data-surface="linen"]::after { content: ''; position: absolute; inset: 0; opacity: .25; mix-blend-mode: multiply; background-image: radial-gradient(rgba(0,0,0,.4) .6px, transparent .8px); background-size: 3px 3px; }
.preset-swatch[data-surface="linen"]::after { background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); }
.preset-tee { width: 56%; aspect-ratio: 1 / 1; background: #6b6650; clip-path: polygon(30% 0, 70% 0, 100% 18%, 88% 34%, 80% 28%, 80% 100%, 20% 100%, 20% 28%, 12% 34%, 0 18%); filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); z-index: 1; }
.fine summary, .fold summary { cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 2px 0; }
.fine summary::-webkit-details-marker, .fold summary::-webkit-details-marker { display: none; }
.fine summary::after, .fold summary::after { content: '+'; color: var(--muted); font-weight: 400; margin-left: 8px; }
.fine[open] summary::after, .fold[open] summary::after { content: '–'; }
.fold summary > span:first-child { flex: 1; }
.fold { border-top: 1px solid var(--line); padding-top: 10px; }
.fold[open] { display: flex; flex-direction: column; gap: 10px; }
.fine-body { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.fine-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.fine-row > span { width: 80px; color: var(--muted); }
.fine-row input[type="color"] { width: 40px; height: 28px; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; background: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.mini-select { height: 30px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 6px; font: inherit; font-size: 12px; background: var(--panel); }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #fff6ea; border: 1px solid #f5d6a8; font-size: 13px; }
.alert p { margin: 4px 0 0; color: #7a4b10; }
.alert svg { flex: none; width: 18px; height: 18px; color: #b45309; margin-top: 1px; }
.premium-line { font-size: 12px; color: var(--muted); margin: 0; display: flex; gap: 8px; align-items: center; }
.avatar-list, .model-shots { display: flex; flex-direction: column; gap: 8px; }
.avatar-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.model-shots { flex-direction: row; flex-wrap: wrap; }
.model-shots img { width: 72px; height: 90px; object-fit: cover; border-radius: 6px; background: #e6e4e0; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.pick-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); display: flex; flex-direction: column; min-width: 0; }
.pick-card.is-on { border-color: var(--text); }
.pick-card img { width: 100%; height: 180px; object-fit: contain; background: #e6e4e0; display: block; }
.pick-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.pick-body label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.pick-body textarea { min-height: 52px; font-size: 12px; }
.listing-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; color: #1c1c1e; }
.listing-card > img { width: 100%; height: 360px; object-fit: contain; background: #e6e4e0; display: block; }
.listing-card .strip { padding: 10px 12px 0; }
.listing-card .strip-item img { width: 100%; height: 100%; object-fit: cover; background: #e6e4e0; }
.listing-copy { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.listing-copy strong { font-size: 18px; }
.listing-copy p { margin: 0; color: #5c584f; font-size: 14px; }
.gen-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gen-bar .panel-tools { flex-wrap: wrap; justify-content: flex-end; }
.review { display: flex; flex-direction: column; gap: 12px; }
.review-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-tools input[type="range"] { width: 140px; accent-color: var(--accent); }
.review-stage { width: 100%; max-height: min(62vh, 640px); overflow: auto; border-radius: 12px; display: grid; place-items: center; min-height: 0; }
.guide-list { display: flex; flex-direction: column; gap: 8px; }
.guide-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.guide-card p { margin: 0; color: var(--muted); font-size: 13px; }
.shortcut-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 13px; }
.shortcut-list dt { font-weight: 600; white-space: nowrap; }
.shortcut-list dd { margin: 0; color: var(--muted); }
.review-stage canvas { display: block; }
.stage-model { display: none; position: absolute; inset: 64px 24px 56px 24px; width: calc(100% - 48px); height: calc(100% - 120px); background: #fff; z-index: 1; touch-action: none; }
.stage[data-mode="3d"] .stage-model { display: block; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { display: flex; gap: 8px; align-items: flex-start; }
.faq-fields { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.field-label .count { float: right; font-weight: 400; color: var(--muted); }
.field-label .count.over { color: #c2410c; }
.serp { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: arial, sans-serif; }
.serp-url { font-size: 12px; color: #4d5156; }
.serp-title { font-size: 17px; color: #1a0dab; line-height: 1.3; }
.serp-desc { font-size: 13px; color: #4d5156; }
@media (max-width: 1100px) { .content-cols { grid-template-columns: 1fr; } .media { position: static; } }

@media (max-width: 1500px) { .me-btn .me-name { display: none; } .design-name { width: 200px; } }
@media (max-width: 1280px) { .stepper button:not([aria-current="step"]) { font-size: 0; gap: 0; } .stepper button:not([aria-current="step"]) .step-no { font-size: 11px; } }
.more-toggle { font-size: 12px; align-self: flex-start; }
.strip.extra:empty { display: none; }
.panel.launch { gap: 10px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.panel.launch h3 { font-size: 18px; margin: 0; letter-spacing: -.01em; }
.launch-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0; }
.launch-stats div { background: var(--sunken); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.launch-stats span { font-size: 11px; color: var(--muted); }
.launch-stats strong { font-size: 14px; }
.launch-stats .good { color: var(--good); }
.panel .muted, .content-side .muted { font-size: 12px; }
.channel { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.channel.is-soon { opacity: .6; }
.channel-head { display: flex; justify-content: space-between; align-items: center; }
.channel-body { display: flex; flex-direction: column; gap: 10px; }
.channel .connect { display: flex; flex-direction: column; gap: 10px; }
.fold-panel summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; }
.fold-panel summary::-webkit-details-marker { display: none; }
.fold-panel[open] summary { margin-bottom: 12px; }
.btn.block { width: 100%; }

.facts-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; text-align: left;
}
.facts-chev { color: var(--muted); font-size: 12px; }
.shelf { display: flex; flex-direction: column; gap: 8px; }
.shelves { gap: 18px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shelf-navs { display: flex; gap: 4px; }
.shelf-nav {
  width: 26px; height: 26px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel);
  cursor: pointer; color: var(--text); font-size: 16px; line-height: 1;
}
.shelf-nav:hover { border-color: var(--accent); color: var(--accent); }
.shelf-row { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 2px; }
.shelf-row::-webkit-scrollbar { height: 0; }
.shelf-card { flex: 0 0 132px; scroll-snap-align: start; }
.style-card {
  flex: 0 0 148px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px;
  padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  cursor: pointer; text-align: left; color: inherit;
}
.style-card.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.style-preview { display: block; height: 112px; border-radius: 8px; overflow: hidden; background: #f6f3ec; }
.style-preview svg { width: 100%; height: 100%; display: block; }
.style-card strong { font-size: 12px; }
.style-expect { margin: 0; }
.template-card .tpl-mark { height: 72px; }
