/*
 * Produktdesigner (Textil) – bildschirmfüllende Arbeitsfläche.
 * Alle Regeln hängen unter .rs-studio, damit das Joomla-Template nichts
 * verstellt und umgekehrt.
 */

.rs-studio {
    --st-bg: #f2f4f7;
    --st-surface: #ffffff;
    --st-border: #e4e7ec;
    --st-border-strong: #d0d5dd;
    --st-text: #101828;
    --st-muted: #667085;
    --st-accent: #2554d9;
    --st-accent-hover: #1c43b3;
    --st-accent-soft: #eef2ff;
    --st-on-accent: #fff;
    /* Ecken: klein (Knöpfe), mittel, groß (Karten, Bühne). TopShop → Aussehen. */
    --st-radius-xs: 8px;
    --st-radius-sm: 10px;
    --st-radius-lg: 18px;
    --st-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --st-canvas: radial-gradient(#d0d5dd 1px, transparent 1px);
    --st-danger: #b42318;
    --st-guide: #f0457a;
    --st-radius: 12px;
    --st-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 24, 40, .06);
    --st-shadow-lg: 0 12px 32px rgba(16, 24, 40, .16);
    --st-rail: 76px;
    --st-panel: 324px;

    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: var(--st-bg);
    color: var(--st-text);
    font: 14px/1.45 var(--st-font);
    -webkit-font-smoothing: antialiased;
}

.rs-studio *, .rs-studio *::before, .rs-studio *::after { box-sizing: border-box; }
.rs-studio button { font: inherit; color: inherit; }
.rs-studio button:focus-visible, .rs-studio input:focus-visible, .rs-studio textarea:focus-visible,
.rs-studio summary:focus-visible, .rs-studio a:focus-visible {
    outline: 2px solid var(--st-accent); outline-offset: 2px;
}
.rs-studio [hidden] { display: none !important; }
.rs-studio h2, .rs-studio h3, .rs-studio p { margin: 0; }

.rs-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- Knöpfe */

.rs-studio .rs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--st-radius-sm); cursor: pointer;
    font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none;
    transition: background-color .15s, border-color .15s, box-shadow .15s; }
.rs-studio .rs-btn .rs-i { width: 18px; height: 18px; }
.rs-studio .rs-btn-primary { background: var(--st-accent); color: var(--st-on-accent); box-shadow: 0 1px 2px color-mix(in srgb, var(--st-accent) 30%, transparent); }
.rs-studio .rs-btn-primary:hover { background: var(--st-accent-hover); }
.rs-studio .rs-btn-primary:disabled { background: #98a2b3; box-shadow: none; cursor: not-allowed; }
.rs-studio .rs-btn-secondary { background: var(--st-surface); border-color: var(--st-border-strong); }
.rs-studio .rs-btn-secondary:hover { background: #f9fafb; }
.rs-studio .rs-btn-danger { background: var(--st-surface); border-color: #fecdca; color: var(--st-danger); }
.rs-studio .rs-btn-danger:hover { background: #fef3f2; }
.rs-studio .rs-btn-block { width: 100%; }
.rs-studio .rs-btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.rs-studio .rs-btn-sm { height: 32px; padding: 0 10px; font-size: 13px; border-radius: var(--st-radius-xs); }

.rs-studio .rs-icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
    border: 0; border-radius: var(--st-radius-sm); background: transparent; cursor: pointer; transition: background-color .15s; }
.rs-studio .rs-icon-btn:hover:not(:disabled) { background: #f2f4f7; }
.rs-studio .rs-icon-btn:disabled { opacity: .35; cursor: default; }
.rs-studio .rs-icon-btn-box { width: 40px; height: 40px; border: 1px solid var(--st-border); }

/* ------------------------------------------------------------- Kopfzeile */

.rs-top { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 16px;
    background: var(--st-surface); border-bottom: 1px solid var(--st-border); flex: none; }
.rs-top-back { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px 8px 6px;
    border-radius: var(--st-radius-sm); color: var(--st-text) !important; text-decoration: none !important; font-weight: 500; }
.rs-top-back:hover { background: #f2f4f7; }
.rs-top-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; padding-left: 12px;
    border-left: 1px solid var(--st-border); }
.rs-top-site { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--st-muted); }
.rs-top-title strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-top-sub { font-size: 12px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rs-top-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.rs-divider { width: 1px; height: 24px; background: var(--st-border); margin: 0 8px; }
.rs-zoom { display: flex; align-items: center; }
.rs-studio .rs-zoom-label { min-width: 56px; height: 32px; border: 0; background: transparent; border-radius: var(--st-radius-xs);
    font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.rs-studio .rs-zoom-label:hover { background: #f2f4f7; }
.rs-studio .rs-preview-btn { width: auto; display: inline-flex; gap: 6px; padding: 0 12px; margin-left: 6px; font-weight: 500; }
.rs-studio .rs-preview-btn[aria-pressed="true"] { background: var(--st-accent-soft); color: var(--st-accent); }

.rs-top-order { display: flex; align-items: center; gap: 14px; margin-left: 8px; padding-left: 16px;
    border-left: 1px solid var(--st-border); }
.rs-top-price { text-align: right; line-height: 1.2; }
.rs-top-price strong { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.rs-top-price small { font-size: 11px; color: var(--st-muted); }
.rs-studio .rs-short { display: none; }

/* ------------------------------------------------------------- Aufbau */

.rs-body { display: flex; flex: 1; min-height: 0; }

.rs-rail { display: flex; flex-direction: column; gap: 4px; width: var(--st-rail); padding: 10px 8px;
    background: var(--st-surface); border-right: 1px solid var(--st-border); flex: none; }
.rs-studio .rs-rail-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px;
    border: 0; border-radius: var(--st-radius); background: transparent; color: var(--st-muted); cursor: pointer;
    font-size: 11px; font-weight: 500; transition: background-color .15s, color .15s; }
.rs-studio .rs-rail-btn .rs-i { width: 22px; height: 22px; }
.rs-studio .rs-rail-btn:hover { background: #f2f4f7; color: var(--st-text); }
.rs-studio .rs-rail-btn.is-active { background: var(--st-accent-soft); color: var(--st-accent); }

.rs-panel { width: var(--st-panel); flex: none; overflow-y: auto; overscroll-behavior: contain;
    background: var(--st-surface); border-right: 1px solid var(--st-border); }
.rs-studio:not(.is-panel-open) .rs-panel { display: none; }

.rs-stage { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.rs-canvas-wrap { position: relative; flex: 1; min-height: 0; overflow: auto; display: flex;
    background-image: var(--st-canvas); background-size: 22px 22px; }

/* margin: auto zentriert sicher – auch wenn das Produkt größer als die Fläche ist (Zoom) bleibt es erreichbar. */
.rs-mockup { position: relative; margin: auto; flex: none; border-radius: var(--st-radius-lg); background: #fff;
    box-shadow: var(--st-shadow); user-select: none; -webkit-user-select: none; }
.rs-mockup-img { display: block; width: 100% !important; height: 100% !important; max-width: none !important;
    border-radius: var(--st-radius-lg); pointer-events: none; }

/* ------------------------------------------------------------- Druckfläche */

.rs-area { position: absolute; touch-action: none; }
.rs-area-frame { position: absolute; inset: 0; border: 1.5px dashed color-mix(in srgb, var(--st-accent) 45%, transparent); border-radius: 3px;
    pointer-events: none; transition: border-color .15s; }
.rs-area:hover .rs-area-frame, .rs-studio.is-dragging .rs-area-frame { border-color: color-mix(in srgb, var(--st-accent) 85%, transparent); }
.rs-area.is-outside .rs-area-frame { border-color: #f04438; }
.rs-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rs-svg.is-hidden { visibility: hidden; pointer-events: none; }
.rs-svg .rs-el { cursor: move; }

.rs-guide { position: absolute; pointer-events: none; z-index: 3; }
.rs-guide-v { top: -24px; bottom: -24px; width: 0; border-left: 1px solid var(--st-guide); }
.rs-guide-h { left: -24px; right: -24px; height: 0; border-top: 1px solid var(--st-guide); }

.rs-area-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 10px; padding: 8px; text-align: center; color: var(--st-muted);
    font-size: 13px; pointer-events: none; }
.rs-area-empty > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; pointer-events: auto; }
.rs-area-empty p { max-width: 16em; }
.rs-area-empty.is-compact { overflow: visible; padding: 0; }
.rs-area-empty.is-compact p { display: none; }
.rs-area-empty.is-compact > div { flex-wrap: nowrap; }

.rs-selection { position: absolute; z-index: 4; border: 1.5px solid var(--st-accent); cursor: move;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); }
.rs-selection.is-outside { border-color: #f04438; }
.rs-handle { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #fff;
    border: 1.5px solid var(--st-accent); border-radius: 50%; box-shadow: var(--st-shadow); touch-action: none; }
.rs-handle[data-handle="nw"] { left: 0; top: 0; cursor: nwse-resize; }
.rs-handle[data-handle="ne"] { left: 100%; top: 0; cursor: nesw-resize; }
.rs-handle[data-handle="sw"] { left: 0; top: 100%; cursor: nesw-resize; }
.rs-handle[data-handle="se"] { left: 100%; top: 100%; cursor: nwse-resize; }
.rs-handle-rotate { left: 50% !important; top: calc(100% + 28px) !important; width: 28px; height: 28px;
    margin: -14px 0 0 -14px; display: grid; place-items: center; color: var(--st-accent); cursor: grab; }
.rs-handle-rotate::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: 14px;
    border-left: 1.5px solid var(--st-accent); }
.rs-handle-rotate .rs-i { width: 15px; height: 15px; stroke-width: 2.2; }
.rs-selection-label { position: absolute; left: 50%; top: calc(100% + 54px); padding: 2px 8px; border-radius: 999px;
    background: #101828; color: #fff; font-size: 11px; white-space: nowrap; pointer-events: none;
    font-variant-numeric: tabular-nums; }

.rs-float { position: absolute; z-index: 5; display: flex; gap: 2px; padding: 4px; transform: translate(-50%, -100%);
    background: #fff; border-radius: var(--st-radius); box-shadow: var(--st-shadow-lg); }
.rs-studio .rs-float button { display: grid; place-items: center; width: 34px; height: 34px; border: 0;
    border-radius: var(--st-radius-xs); background: transparent; cursor: pointer; }
.rs-studio .rs-float button:hover { background: #f2f4f7; }
.rs-studio .rs-float button[data-quick="remove"]:hover { background: #fef3f2; color: var(--st-danger); }
.rs-float .rs-i { width: 18px; height: 18px; }
.rs-studio.is-dragging .rs-float { display: none; }

.rs-studio.is-preview .rs-area-frame, .rs-studio.is-preview .rs-selection,
.rs-studio.is-preview .rs-float, .rs-studio.is-preview .rs-guide { display: none; }
.rs-studio.is-preview .rs-svg .rs-el { cursor: default; }

.rs-stage-alert { position: absolute; z-index: 6; top: 14px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 8px 14px;
    background: #fef3f2; color: var(--st-danger); border: 1px solid #fecdca; border-radius: 999px;
    font-size: 13px; font-weight: 500; box-shadow: var(--st-shadow); }
.rs-stage-alert .rs-i { width: 18px; height: 18px; }

.rs-drop-hint { position: absolute; inset: 12px; display: none; flex-direction: column; align-items: center;
    justify-content: center; gap: 8px; border: 2px dashed var(--st-accent); border-radius: var(--st-radius-lg);
    background: rgba(238, 242, 255, .85); color: var(--st-accent); font-weight: 600; pointer-events: none; z-index: 7; }
.rs-drop-hint .rs-i { width: 36px; height: 36px; }
.rs-studio.is-dropping .rs-drop-hint { display: flex; }
.rs-studio.is-uploading .rs-canvas-wrap { cursor: progress; }
.rs-studio.is-uploading .rs-canvas-wrap::after { content: ""; position: absolute; top: 20px; right: 20px;
    width: 22px; height: 22px; border: 3px solid color-mix(in srgb, var(--st-accent) 25%, transparent); border-top-color: var(--st-accent);
    border-radius: 50%; animation: rs-spin .8s linear infinite; }

.rs-sides { display: flex; justify-content: center; gap: 10px; padding: 12px 16px 16px; flex: none; }
.rs-studio .rs-side { position: relative; display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px;
    border: 1px solid var(--st-border); border-radius: var(--st-radius-lg); background: var(--st-surface); cursor: pointer;
    font-weight: 500; box-shadow: var(--st-shadow); transition: border-color .15s, box-shadow .15s; }
.rs-studio .rs-side img { width: 44px; height: 44px; padding: 2px; object-fit: contain; border-radius: var(--st-radius-sm); background: #eceef2; }
.rs-studio .rs-side.is-active { border-color: var(--st-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-accent) 15%, transparent); }
.rs-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--st-accent); color: var(--st-on-accent); font-size: 11px; font-weight: 700;
    display: grid; place-items: center; }

/* ---------------------------------------------------------------- Panel */

.rs-panel-content { padding: 20px 20px 32px; }
.rs-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.rs-panel-head h2 { font-size: 17px; font-weight: 650; line-height: 1.3; }
.rs-muted { color: var(--st-muted); font-size: 13px; margin-top: 2px !important; }

.rs-section { padding: 16px 0; border-top: 1px solid var(--st-border); }
.rs-panel-head + .rs-section, .rs-panel-head + .rs-btn + .rs-section { border-top: 0; padding-top: 4px; }
.rs-panel-head + .rs-btn { margin-bottom: 16px; }
.rs-section-title { margin: 0 0 10px !important; font-size: 12px; font-weight: 600; letter-spacing: .05em;
    text-transform: uppercase; color: var(--st-muted); }
.rs-value { margin-bottom: 10px !important; font-weight: 600; }
.rs-hint { margin-top: 12px !important; font-size: 13px; color: var(--st-muted); line-height: 1.5; }
.rs-hint-warn { color: #b54708; }

.rs-field { margin-top: 14px; }
.rs-label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--st-muted); }
.rs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.rs-row-split > * { flex: 1; }

.rs-studio .rs-input { width: 100%; padding: 9px 12px; border: 1px solid var(--st-border-strong); border-radius: var(--st-radius-sm);
    background: #fff; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.rs-studio .rs-input:focus { border-color: var(--st-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-accent) 15%, transparent); outline: 0; }
.rs-studio textarea.rs-text-input { min-height: 64px; resize: vertical; font-size: 15px; line-height: 1.4; }
.rs-search { position: relative; display: block; margin-bottom: 4px; }
.rs-search > span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--st-muted); display: flex; }
.rs-search > span .rs-i { width: 18px; height: 18px; }
.rs-studio .rs-search .rs-input { padding-left: 38px; }

.rs-slider { display: flex; align-items: center; gap: 12px; }
.rs-slider input[type="range"] { flex: 1; min-width: 0; accent-color: var(--st-accent); margin: 0; }
.rs-number-wrap { display: inline-flex; align-items: center; border: 1px solid var(--st-border-strong);
    border-radius: var(--st-radius-xs); background: #fff; padding-right: 8px; }
.rs-studio .rs-number { width: 58px; padding: 6px 4px 6px 8px; border: 0; background: transparent; font: inherit;
    font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.rs-studio .rs-number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rs-studio .rs-number:focus { outline: 0; }
.rs-number-wrap:focus-within { border-color: var(--st-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-accent) 15%, transparent); }
.rs-unit { font-size: 12px; color: var(--st-muted); min-width: 1ch; }

.rs-segmented { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--st-radius-sm); background: #f2f4f7; }
.rs-studio .rs-seg { display: grid; place-items: center; width: 38px; height: 32px; border: 0; border-radius: var(--st-radius-xs);
    background: transparent; cursor: pointer; font-weight: 700; font-size: 15px; color: #344054; }
.rs-studio .rs-seg .rs-i { width: 18px; height: 18px; }
.rs-studio .rs-seg:hover:not(:disabled) { color: var(--st-text); }
.rs-studio .rs-seg.is-active { background: #fff; color: var(--st-accent); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.rs-studio .rs-seg:disabled { opacity: .35; cursor: default; }
.rs-seg-text .rs-seg:nth-child(2) { font-family: Georgia, serif; font-style: italic; font-weight: 400; }

.rs-actions { display: flex; gap: 6px; }

/* Produkt */
.rs-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 10px; }
.rs-studio .rs-swatch { aspect-ratio: 1; width: 100%; padding: 0; border: 1px solid rgba(16, 24, 40, .18);
    border-radius: 50%; cursor: pointer; box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .06); transition: transform .12s; }
.rs-studio .rs-swatch:hover { transform: scale(1.08); }
.rs-studio .rs-swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--st-accent); }

.rs-studio .rs-choice { display: flex; align-items: flex-start; gap: 12px; width: 100%; margin-bottom: 8px; padding: 12px;
    border: 1px solid var(--st-border); border-radius: var(--st-radius); background: #fff; text-align: left;
    cursor: pointer; transition: border-color .15s, background-color .15s; }
.rs-studio .rs-choice:hover { border-color: var(--st-border-strong); }
.rs-studio .rs-choice.is-active { border-color: var(--st-accent); background: var(--st-accent-soft); }
.rs-choice-check { display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin-top: 1px;
    border: 1.5px solid var(--st-border-strong); border-radius: 50%; background: #fff; }
.rs-choice.is-active .rs-choice-check { border-color: var(--st-accent); background: var(--st-accent); color: var(--st-on-accent); }
.rs-choice-check .rs-i { width: 13px; height: 13px; stroke-width: 3; }
.rs-choice-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rs-choice-body span { font-size: 13px; color: #475467; }
.rs-choice-body small { font-size: 12px; color: var(--st-muted); }

/* Text */
.rs-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rs-studio .rs-preset { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    height: 88px; padding: 8px; overflow: hidden; border: 1px solid var(--st-border); border-radius: var(--st-radius);
    background: #f9fafb; cursor: pointer; transition: border-color .15s, background-color .15s; }
.rs-studio .rs-preset:hover { border-color: var(--st-accent); background: #fff; }
.rs-preset-sample { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.2; color: var(--st-text); }
.rs-preset small { font-size: 11px; color: var(--st-muted); }

.rs-fontpicker { position: relative; }
.rs-studio .rs-select { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
    height: 46px; padding: 0 12px; border: 1px solid var(--st-border-strong); border-radius: var(--st-radius-sm); background: #fff;
    cursor: pointer; font-size: 19px; text-align: left; }
.rs-studio .rs-select > span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rs-studio .rs-select .rs-i { color: var(--st-muted); transition: transform .15s; }
.rs-fontpicker.is-open .rs-select { border-color: var(--st-accent); }
.rs-fontpicker.is-open .rs-select .rs-i { transform: rotate(180deg); }
.rs-fontlist-pop { display: none; margin-top: 8px; padding: 8px; border: 1px solid var(--st-border);
    border-radius: var(--st-radius); background: #fff; box-shadow: var(--st-shadow-lg); }
.rs-fontpicker.is-open .rs-fontlist-pop { display: block; }
.rs-fontlist { max-height: 320px; overflow-y: auto; margin-top: 6px; overscroll-behavior: contain; }
.rs-fontlist-cat { padding: 10px 8px 4px; font-size: 11px; font-weight: 600; letter-spacing: .05em;
    text-transform: uppercase; color: var(--st-muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.rs-studio .rs-fontlist-item { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: var(--st-radius-xs);
    background: transparent; text-align: left; font-size: 20px; line-height: 1.3; cursor: pointer; }
.rs-studio .rs-fontlist-item:hover { background: #f2f4f7; }
.rs-studio .rs-fontlist-item.is-active { background: var(--st-accent-soft); color: var(--st-accent); }

.rs-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(28px, 1fr)); gap: 8px; }
.rs-studio .rs-color { position: relative; aspect-ratio: 1; width: 100%; padding: 0; border: 1px solid rgba(16, 24, 40, .16);
    border-radius: 50%; cursor: pointer; transition: transform .12s; }
.rs-studio .rs-color:hover { transform: scale(1.1); }
.rs-studio .rs-color.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--st-accent); }
.rs-color-custom { background: conic-gradient(#f04438, #fdb022, #12b76a, #2e90fa, #7a5af8, #ee46bc, #f04438); overflow: hidden; }
.rs-color-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }

.rs-details { border-top: 1px solid var(--st-border); }
.rs-details summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0;
    list-style: none; cursor: pointer; font-weight: 600; }
.rs-details summary::-webkit-details-marker { display: none; }
.rs-details summary .rs-i { color: var(--st-muted); transition: transform .15s; }
.rs-details[open] summary .rs-i { transform: rotate(180deg); }
.rs-details-body { padding-bottom: 16px; }
.rs-details-body > .rs-field:first-child { margin-top: 0; }

/* Motive, Upload, Ebenen */
.rs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rs-studio .rs-tile { display: grid; place-items: center; aspect-ratio: 1; padding: 8px; border: 1px solid var(--st-border);
    border-radius: var(--st-radius-sm); background: #f9fafb; cursor: pointer; transition: border-color .15s; }
.rs-studio .rs-tile:hover { border-color: var(--st-accent); background: #fff; }
.rs-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }

.rs-studio .rs-dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%;
    padding: 28px 16px; border: 2px dashed #c7d2fe; border-radius: var(--st-radius-lg); background: #f5f7ff; cursor: pointer;
    text-align: center; transition: border-color .15s, background-color .15s; }
.rs-studio .rs-dropzone:hover { border-color: var(--st-accent); background: var(--st-accent-soft); }
.rs-dropzone-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 4px;
    border-radius: 50%; background: #fff; color: var(--st-accent); box-shadow: var(--st-shadow); }
.rs-dropzone strong { font-size: 15px; }
.rs-dropzone > span:last-child { font-size: 13px; color: var(--st-muted); }
.rs-tips { margin: 16px 0 4px; padding-left: 18px; color: var(--st-muted); font-size: 13px; line-height: 1.55; }
.rs-tips li + li { margin-top: 4px; }
.rs-notice { padding: 14px; border: 1px solid #fedf89; border-radius: var(--st-radius); background: #fffaeb; color: #93370d; }
.rs-notice .rs-btn { margin-top: 12px; }

.rs-layers { list-style: none; margin: 0; padding: 0; }
.rs-layer { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: var(--st-radius-sm); }
.rs-layer:hover { background: #f9fafb; }
.rs-studio .rs-layer-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 2px;
    border: 0; background: transparent; text-align: left; cursor: pointer; }
.rs-layer-thumb { display: grid; place-items: center; flex: none; width: 38px; height: 38px; overflow: hidden;
    border: 1px solid var(--st-border); border-radius: var(--st-radius-xs); background: #fff; font-size: 17px; }
.rs-layer-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rs-layer-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.rs-empty { padding: 32px 12px; text-align: center; color: var(--st-muted); }
.rs-empty .rs-i { width: 36px; height: 36px; margin-bottom: 8px; color: #98a2b3; }

.rs-image-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rs-image-info > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.rs-image-info strong { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rs-image-thumb { display: grid; place-items: center; flex: none; width: 60px; height: 60px; padding: 4px;
    border: 1px solid var(--st-border); border-radius: var(--st-radius-sm);
    background: repeating-conic-gradient(#f2f4f7 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.rs-image-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rs-quality { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.rs-quality.is-good { background: #ecfdf3; color: #067647; }
.rs-quality.is-ok { background: #f0f9ff; color: #026aa2; }
.rs-quality.is-low { background: #fffaeb; color: #b54708; }
.rs-quality.is-bad { background: #fef3f2; color: var(--st-danger); }
.rs-quality.is-vector { background: #f4f3ff; color: #5925dc; }

/* ------------------------------------------------------------- Bestellen */

.rs-studio .rs-dialog { width: min(580px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
    border-radius: 20px; background: #fff; color: var(--st-text); box-shadow: 0 24px 64px rgba(16, 24, 40, .28); }
.rs-studio .rs-dialog::backdrop { background: rgba(16, 24, 40, .5); backdrop-filter: blur(3px); }
.rs-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px 24px; }
.rs-dialog-head h2 { font-size: 19px; font-weight: 650; }
.rs-dialog-head form { margin: 0; }
.rs-dialog-body { padding: 8px 24px 24px; }

.rs-order-product { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 10px;
    border-radius: var(--st-radius-lg); background: #f9fafb; }
.rs-order-product img { width: 56px; height: 56px; padding: 3px; object-fit: contain; border-radius: var(--st-radius-sm); background: #eceef2; }
.rs-order-product div { display: flex; flex-direction: column; min-width: 0; }
.rs-order-product span { font-size: 13px; color: var(--st-muted); }

.rs-size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-studio .rs-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px;
    min-height: 44px; padding: 6px 14px; border: 1px solid var(--st-border-strong); border-radius: var(--st-radius-sm); background: #fff;
    font-weight: 600; line-height: 1.15; cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.rs-studio .rs-chip:hover { border-color: var(--st-accent); }
.rs-studio .rs-chip small { font-size: 11px; font-weight: 500; color: var(--st-muted); }
.rs-studio .rs-chip.is-active { border-color: var(--st-accent); background: var(--st-accent-soft); color: var(--st-accent);
    box-shadow: 0 0 0 1px var(--st-accent); }
.rs-qty-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.rs-qty-row .rs-section-title { margin: 0; }
.rs-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rs-section-head .rs-section-title { margin: 0 !important; }
.rs-studio .rs-link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border: 1.5px solid var(--st-accent);
    border-radius: 999px; background: var(--st-accent-soft); color: var(--st-accent); font: inherit; font-size: 13px; font-weight: 600;
    line-height: 1.2; cursor: pointer; transition: background-color .15s, color .15s; }
.rs-studio .rs-link-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rs-studio .rs-link-btn:hover, .rs-studio .rs-link-btn:focus-visible { background: var(--st-accent); color: var(--st-on-accent); }
.rs-studio .rs-stepper-lg button { width: 38px; height: 38px; }
.rs-studio .rs-stepper-lg input { width: 56px; height: 38px; font-size: 16px; }
.rs-size-missing { margin-top: 10px; font-size: 13px; color: var(--st-muted); }
.rs-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.rs-size { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px;
    border: 1px solid var(--st-border); border-radius: var(--st-radius); }
.rs-size:has(input:not([value="0"])) { border-color: var(--st-border-strong); }
.rs-size-name { font-weight: 650; }
.rs-size small { font-size: 11px; color: var(--st-muted); }
.rs-stepper { display: flex; align-items: center; gap: 2px; }
.rs-studio .rs-stepper button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
    border: 1px solid var(--st-border-strong); border-radius: 50%; background: #fff; cursor: pointer; }
.rs-studio .rs-stepper button:hover { border-color: var(--st-accent); color: var(--st-accent); }
.rs-stepper .rs-i { width: 14px; height: 14px; stroke-width: 2.4; }
.rs-studio .rs-stepper input { width: 40px; height: 28px; padding: 0; border: 0; background: transparent; text-align: center;
    font: inherit; font-weight: 650; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.rs-studio .rs-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.rs-warnings { list-style: none; margin: 16px 0 0; padding: 10px 14px; border-radius: var(--st-radius);
    background: #fffaeb; color: #b54708; font-size: 13px; }
.rs-warnings li { display: flex; gap: 8px; align-items: flex-start; }
.rs-warnings li + li { margin-top: 6px; }
.rs-warnings .rs-i { width: 16px; height: 16px; margin-top: 2px; }

.rs-totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 20px 0 0; padding-top: 16px;
    border-top: 1px solid var(--st-border); }
.rs-totals dt { color: #475467; }
.rs-totals dd { margin: 0; padding-left: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.rs-totals .rs-total { padding-top: 8px; border-top: 1px solid var(--st-border); color: var(--st-text);
    font-size: 18px; font-weight: 700; }
.rs-totals .rs-per { font-size: 13px; color: var(--st-muted); }
.rs-order-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.rs-spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
    border-radius: 50%; animation: rs-spin .8s linear infinite; }
@keyframes rs-spin { to { transform: rotate(360deg); } }

.rs-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1100; display: flex; align-items: center; gap: 16px;
    max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: var(--st-radius); background: #101828; color: #fff;
    box-shadow: var(--st-shadow-lg); font-size: 14px; opacity: 0; pointer-events: none;
    transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }
.rs-toast.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.rs-studio .rs-toast-action { padding: 0; border: 0; background: none; color: #93c5fd; font-weight: 600; cursor: pointer; white-space: nowrap; }

/* Gezeichnete Produkte: Rahmen, Kamera, Glanz über dem Entwurf. */
.rs-studio .rs-overlay { position: absolute; max-width: none !important; height: auto; margin: 0; pointer-events: none;
    user-select: none; -webkit-user-select: none; }

/* Logo im Kopf (TopShop → Aussehen) */
.rs-top-logo { display: block; height: 34px; width: auto; max-width: 160px; object-fit: contain; flex: none;
    padding-left: 12px; border-left: 1px solid var(--st-border); }
@media (max-width: 899px) { .rs-top-logo { height: 28px; max-width: 96px; padding-left: 6px; } }

/* ---------------------------------------------------------- Becher (3D) */

.rs-mug3d { position: absolute; z-index: 8; right: 16px; bottom: 16px; width: 256px; display: flex; flex-direction: column;
    background: var(--st-surface); border: 1px solid var(--st-border); border-radius: var(--st-radius-lg); box-shadow: var(--st-shadow-lg);
    overflow: hidden; }
.rs-mug3d-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 0 14px; }
.rs-mug3d-head strong { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--st-muted); }
.rs-studio .rs-mug3d-head .rs-icon-btn { width: 32px; height: 32px; }
.rs-mug3d-head .rs-i { width: 17px; height: 17px; }
.rs-mug3d-canvas { display: block; width: 100%; height: 196px; cursor: grab; touch-action: none; }
.rs-mug3d-canvas.is-grabbing { cursor: grabbing; }
.rs-mug3d-views { display: flex; gap: 2px; margin: 0 10px 10px; padding: 3px; border-radius: var(--st-radius-sm); background: #f2f4f7; }
.rs-studio .rs-mug3d-views button { flex: 1; height: 28px; padding: 0 6px; border: 0; border-radius: var(--st-radius-xs); background: transparent;
    color: var(--st-muted); font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.rs-studio .rs-mug3d-views button:hover { color: var(--st-text); }
.rs-studio .rs-mug3d-views button.is-active { background: #fff; color: var(--st-accent); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.rs-mug3d-hint { display: none; }

/* Platz unter der Abwicklung, damit die 3D-Ansicht nichts verdeckt. */
.rs-studio.is-mug .rs-canvas-wrap { padding-bottom: 272px; }

/* Vorschau: 3D-Ansicht füllt die Bühne. */
.rs-studio.is-mug.is-preview .rs-canvas-wrap { visibility: hidden; }
.rs-studio.is-mug.is-preview .rs-mug3d { inset: 16px; width: auto; border-radius: var(--st-radius-lg); box-shadow: var(--st-shadow); }
.rs-studio.is-mug.is-preview .rs-mug3d-canvas { flex: 1; height: auto; min-height: 0; }
.rs-studio.is-mug.is-preview .rs-mug3d-views { align-self: center; width: min(420px, calc(100% - 32px)); margin-bottom: 6px; }
.rs-studio.is-mug.is-preview .rs-mug3d-views button { height: 34px; font-size: 13px; }
.rs-studio.is-mug.is-preview .rs-mug3d-hint { display: block; padding: 0 16px 14px; text-align: center; font-size: 12px;
    color: var(--st-muted); }

.rs-noscript { position: fixed; inset: auto 16px 16px; padding: 12px; background: #fffaeb; border-radius: var(--st-radius); }

/* ---------------------------------------------------------------- Mobil */

@media (max-width: 1180px) {
    .rs-studio { --st-panel: 296px; }
    .rs-top-site, .rs-preview-btn span { display: none; }
}

@media (max-width: 899px) {
    .rs-studio { --st-rail: 0px; }
    .rs-top { height: 56px; gap: 6px; padding: 0 8px; }
    .rs-top-back span, .rs-top-title, .rs-zoom, .rs-divider, .rs-top-price small { display: none; }
    .rs-top-back { padding: 8px 4px; }
    .rs-top-tools { margin-left: auto; }
    .rs-studio .rs-long { display: none; }
    .rs-studio .rs-short { display: inline; }
    .rs-top-order { gap: 8px; margin-left: 4px; padding-left: 8px; }
    .rs-top-price strong { font-size: 15px; }
    .rs-studio .rs-top-order .rs-btn { height: 38px; padding: 0 12px; }
    .rs-studio .rs-preview-btn { margin-left: 0; padding: 0; width: 36px; }

    .rs-body { flex-direction: column; }
    .rs-stage { order: 1; }
    .rs-rail { order: 3; flex-direction: row; justify-content: space-around; width: auto; gap: 0;
        padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--st-border); }
    .rs-studio .rs-rail-btn { flex: 1; padding: 6px 2px; font-size: 10.5px; }
    .rs-studio.is-panel-open .rs-canvas-wrap { padding-bottom: calc(50dvh - 60px); }
    .rs-panel { order: 2; position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 20;
        width: auto; max-height: 50dvh; border-right: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 32px rgba(16, 24, 40, .16); }
    .rs-panel::before { content: ""; display: block; width: 40px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: #d0d5dd; }
    .rs-panel-content { padding: 10px 16px 24px; }
    .rs-mockup { margin: auto; }
    /* iPhone: Eingabefelder unter 16 px lassen Safari hineinzoomen – danach steht das Produkt schief im Bild. */
    .rs-studio input, .rs-studio textarea, .rs-studio select, .rs-studio .rs-input, .rs-studio textarea.rs-text-input,
    .rs-studio .rs-number { font-size: 16px; }
    .rs-sides { padding: 8px; gap: 8px; }
    .rs-studio .rs-side { padding: 4px 12px 4px 4px; }
    .rs-studio .rs-side img { width: 34px; height: 34px; }
    .rs-grid { grid-template-columns: repeat(4, 1fr); }
    .rs-studio.is-mug .rs-canvas-wrap { padding-bottom: 0; padding-top: 140px; }
    .rs-studio.is-mug.is-panel-open .rs-canvas-wrap { padding-bottom: calc(50dvh - 60px); }
    .rs-mug3d { top: 8px; right: 8px; bottom: auto; width: 132px; border-radius: var(--st-radius-lg); }
    .rs-mug3d-head, .rs-mug3d-views { display: none; }
    .rs-mug3d-canvas { height: 124px; }
    .rs-studio.is-mug.is-preview .rs-mug3d { inset: 8px; bottom: 8px; }
    .rs-studio.is-mug.is-preview .rs-mug3d-head, .rs-studio.is-mug.is-preview .rs-mug3d-views { display: flex; }
    .rs-dialog-body { padding: 8px 16px 20px; }
    .rs-order-actions { flex-direction: column-reverse; }
    .rs-order-actions .rs-btn { width: 100%; white-space: normal; }
    .rs-toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    .rs-studio *, .rs-toast { transition: none !important; animation: none !important; }
}

/* ---------- Formen, Linien, QR-Code, Vorlagen, Mehrfachauswahl ---------- */

/* Seitenanfasser (Breite/Höhe) nur bei Formen, bei Linien nur links/rechts */
.rs-handle-edge { display: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 3px; }
.rs-handle[data-handle="n"] { left: 50%; top: 0; cursor: ns-resize; }
.rs-handle[data-handle="s"] { left: 50%; top: 100%; cursor: ns-resize; }
.rs-handle[data-handle="e"] { left: 100%; top: 50%; cursor: ew-resize; }
.rs-handle[data-handle="w"] { left: 0; top: 50%; cursor: ew-resize; }
.rs-selection.is-free .rs-handle-edge { display: block; }
.rs-selection.is-line .rs-handle[data-handle="e"], .rs-selection.is-line .rs-handle[data-handle="w"] { display: block; }
.rs-selection.is-line .rs-handle:not(.rs-handle-edge):not(.rs-handle-rotate) { display: none; }
.rs-selection.is-multi { border-style: dashed; cursor: move; }
.rs-selection.is-multi .rs-handle, .rs-selection.is-locked .rs-handle { display: none !important; }
.rs-selection.is-locked { border-style: dotted; cursor: default; }

/* Auswahlrahmen zum Aufziehen */
.rs-marquee { position: absolute; z-index: 4; border: 1px solid var(--st-accent); background: color-mix(in srgb, var(--st-accent) 10%, transparent); pointer-events: none; }

/* Raster und Sicherheitsabstand (nur Hilfe, wird nicht gedruckt) */
.rs-aid-grid { position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background-image: linear-gradient(to right, color-mix(in srgb, var(--st-accent) 22%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--st-accent) 22%, transparent) 1px, transparent 1px); }
.rs-aid-safe { position: absolute; z-index: 2; pointer-events: none; border: 1px dashed #12b76a; border-radius: 2px; }
.rs-studio.is-preview .rs-aid-grid, .rs-studio.is-preview .rs-aid-safe { display: none; }
.rs-studio .rs-icon-btn[aria-pressed="true"] { background: var(--st-accent-soft); color: var(--st-accent); }

/* Form-Kacheln */
.rs-shape-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rs-studio .rs-shape-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px;
    border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); background: #f9fafb; cursor: pointer; color: var(--st-text); }
.rs-studio .rs-shape-tile:hover { border-color: var(--st-accent); background: #fff; }
.rs-shape-tile .rs-i { width: 30px; height: 30px; fill: color-mix(in srgb, var(--st-accent) 22%, transparent); stroke-width: 1.6; }
.rs-shape-tile.is-outline .rs-i { fill: none; }
.rs-shape-tile small { font-size: 11px; color: var(--st-muted); line-height: 1.2; text-align: center; }

/* „Keine Farbe“ */
.rs-studio .rs-color-none { background: #fff; overflow: hidden; }
.rs-studio .rs-color-none::after { content: ""; position: absolute; left: -20%; top: 50%; width: 140%; height: 2px; background: #f04438; transform: rotate(-45deg); }

/* Zahlenfelder X/Y/B/H */
.rs-numgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.rs-numfield { display: flex; align-items: center; gap: 6px; margin: 0; }
.rs-numfield-label { font-size: 12px; font-weight: 600; color: var(--st-muted); min-width: 1.2em; }
.rs-numfield .rs-number-wrap { flex: 1; }
.rs-numfield .rs-number { width: 100%; }
.rs-actions-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.rs-actions-6 .rs-icon-btn-box { width: auto; }
.rs-label-small { font-size: 12px; margin: 0 0 6px; }
.rs-studio .rs-link-btn { border: 0; background: none; padding: 0; color: var(--st-accent); font-size: 12px; cursor: pointer; text-decoration: underline; }
.rs-studio .rs-icon-btn.is-on { color: var(--st-accent); }

/* QR-Assistent */
.rs-qr-form { display: grid; gap: 10px; }
.rs-qr-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-studio .rs-chip-btn { padding: 5px 10px; border: 1px solid var(--st-border-strong); border-radius: 999px; background: #fff; font-size: 12px; cursor: pointer; color: var(--st-text); }
.rs-studio .rs-chip-btn.is-active { background: var(--st-accent); border-color: var(--st-accent); color: var(--st-on-accent); }
.rs-qr-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rs-qr-fields .rs-field-stack { grid-column: span 2; display: grid; gap: 3px; margin: 0; }
.rs-qr-fields .rs-field-stack:has(input[type="text"], input[type="tel"]):not(:first-child) { grid-column: span 1; }
.rs-qr-fields .rs-label { font-size: 12px; }

/* Vorlagen */
.rs-template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rs-studio .rs-template { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid var(--st-border);
    border-radius: var(--st-radius-sm); background: #f9fafb; cursor: pointer; color: var(--st-text); }
.rs-studio .rs-template:hover { border-color: var(--st-accent); background: #fff; }
.rs-template-svg { width: 100%; height: auto; aspect-ratio: 85 / 55; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .18); border-radius: 2px; }
.rs-template small { font-size: 12px; font-weight: 600; }

/* Ebenen */
.rs-layer.is-selected { background: var(--st-accent-soft); }
.rs-layer-icon { display: grid; place-items: center; }
.rs-layer-icon .rs-i { width: 22px; height: 22px; fill: currentColor; fill-opacity: .25; }

@media (max-width: 899px) {
    .rs-studio #rs-grid-btn { display: none; }
    .rs-studio .rs-rail-btn { font-size: 9.5px; }
    .rs-qr-fields { grid-template-columns: 1fr; }
    .rs-qr-fields .rs-field-stack:has(input[type="text"], input[type="tel"]):not(:first-child) { grid-column: span 2; }
}
