/* OLEditor – Post-Editor-Demo. Präfix .edt-, nutzt die Tokens aus site.css (mit Fallbacks). */
.edt {
  --edt-acc: var(--accent, #d4ff3a);
  --edt-acc-rgb: var(--accent-rgb, 212 255 58);
  --edt-ink: var(--accent-ink, #0b0b0e);
  --edt-bg: var(--bg, #09090c);
  --edt-s1: var(--surface-1, #131319);
  --edt-s2: var(--surface-2, #1a1a22);
  --edt-s3: var(--surface-3, #23232d);
  --edt-line: var(--line, rgb(255 255 255 / .08));
  --edt-line2: var(--line-2, rgb(255 255 255 / .14));
  --edt-t1: var(--text, #f4f4f6);
  --edt-t2: var(--text-2, #b9b9c6);
  --edt-t3: var(--text-3, #9494a3);
  --edt-danger: var(--danger, #ff7a7a);
  --edt-r: var(--r-lg, 24px);
  --edt-ease: var(--ease-out, cubic-bezier(.22, 1, .36, 1));
  --edt-spring: var(--ease-spring, cubic-bezier(.34, 1.56, .64, 1));
  --edt-panel-w: 340px;
  --edt-canvas-h: min(640px, 76vh);
  position: relative;
  container: edt / inline-size;
  color: var(--edt-t1);
  font: 400 15px/1.45 var(--font-body, Inter, 'Segoe UI', system-ui, sans-serif);
  -webkit-tap-highlight-color: transparent;
}
.edt *, .edt *::before, .edt *::after { box-sizing: border-box; }
.edt :where(p, fieldset, legend, ul, h3) { margin: 0; padding: 0; }
.edt :where(button, input, select) { font: inherit; color: inherit; }
:where(.edt) button { cursor: pointer; background: none; border: 0; padding: 0; }
:where(.edt) button:disabled { cursor: default; }
.edt img { display: block; max-width: 100%; }
.edt [hidden] { display: none !important; }
.edt :focus-visible { outline: 2px solid var(--edt-acc); outline-offset: 2px; border-radius: 8px; }
.edt-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.edt-i { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------ Fenster */
.edt-win {
  position: relative; overflow: clip; border-radius: var(--edt-r);
  background: linear-gradient(180deg, rgb(255 255 255 / .025), transparent 140px), var(--edt-s1);
  box-shadow: var(--sh-3, 0 40px 80px -24px rgb(0 0 0 / .85)), 0 0 0 1px var(--edt-line2);
}
.edt-win::before { /* sanfter Akzent-Schein */
  content: ""; position: absolute; inset: -40% 20% auto; height: 420px; pointer-events: none;
  background: radial-gradient(closest-side, rgb(var(--edt-acc-rgb) / .07), transparent);
}
.edt-bar { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--edt-line); background: rgb(0 0 0 / .18); }
.edt-dots { display: flex; gap: 7px; flex: none; }
.edt-dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a46; }
.edt-dots i:nth-child(1) { background: #ff6b6b; opacity: .75; }
.edt-dots i:nth-child(2) { background: #ffc266; opacity: .75; }
.edt-dots i:nth-child(3) { background: #6bd88a; opacity: .75; }
.edt-title { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; font-size: 14px; }
.edt-title b { font: 650 15px/1.2 var(--font-display, inherit); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.edt-handle-name { color: var(--edt-t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edt-badge { flex: none; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--edt-acc); background: rgb(var(--edt-acc-rgb) / .1); border: 1px solid rgb(var(--edt-acc-rgb) / .3); }
.edt-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.edt-ibtn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--edt-t2); transition: background .16s, color .16s, transform .2s var(--edt-spring); }
.edt-ibtn:hover:not(:disabled) { background: rgb(255 255 255 / .08); color: var(--edt-t1); }
.edt-ibtn:active:not(:disabled) { transform: scale(.92); }
.edt-ibtn:disabled { opacity: .45; }
.edt-ibtn-sm { width: 34px; height: 34px; }
.edt-danger:hover:not(:disabled) { color: var(--edt-danger); background: rgb(255 122 122 / .1); }
.edt-apply {
  position: relative; display: inline-grid; place-items: center; min-height: 40px; margin-left: 6px; padding: 8px 18px;
  border-radius: 999px; font-weight: 650; font-size: 14px; line-height: 1.15; color: var(--edt-ink); background: var(--edt-acc);
  box-shadow: 0 10px 26px -12px rgb(var(--edt-acc-rgb) / .8); transition: transform .28s var(--edt-spring), box-shadow .28s var(--edt-ease);
}
.edt-apply > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; transition: opacity .2s, transform .35s var(--edt-spring); }
.edt-apply-ok { opacity: 0; transform: translateY(8px) scale(.8); }
.edt-apply:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 0 0 5px rgb(var(--edt-acc-rgb) / .15), 0 14px 30px -12px rgb(var(--edt-acc-rgb) / .8); }
.edt-apply:disabled { cursor: default; }
.edt--applied .edt-apply-l { opacity: 0; transform: translateY(-8px) scale(.8); }
.edt--applied .edt-apply-ok { opacity: 1; transform: none; }
.edt--applied .edt-apply { animation: edt-pop .5s var(--edt-spring); }
.edt--applied .edt-canvas::after { animation: edt-flash .9s var(--edt-ease); }
@keyframes edt-pop { 40% { transform: scale(1.06); } }
@keyframes edt-flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }

/* ------------------------------------------------ Layout */
.edt-body { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) var(--edt-panel-w); min-height: 0; }
.edt-strip { display: flex; flex-direction: column; gap: 10px; padding: 16px 12px; border-right: 1px solid var(--edt-line); overflow: auto; scrollbar-width: none; }
.edt-strip::-webkit-scrollbar { display: none; }
.edt-thumb { position: relative; flex: none; width: 58px; aspect-ratio: 9 / 16; border-radius: 9px; overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; opacity: .62; transition: opacity .2s, outline-color .2s, transform .25s var(--edt-spring); background: var(--edt-s3); }
.edt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.edt-thumb span { position: absolute; left: 5px; bottom: 4px; min-width: 18px; padding: 1px 5px; border-radius: 6px; font-size: 11px; font-weight: 700; text-align: center; color: #fff; background: rgb(0 0 0 / .6); }
.edt-thumb:hover { opacity: .9; transform: translateY(-1px); }
.edt-thumb[aria-current="true"] { opacity: 1; outline-color: var(--edt-acc); }
.edt-thumb:focus-visible { outline: 2px solid var(--edt-t1); }

.edt-stagewrap { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 26px 20px 18px; min-width: 0;
  background: radial-gradient(rgb(255 255 255 / .05) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--edt-bg); }
.edt-stage { position: relative; }
.edt-canvas {
  position: relative; height: var(--edt-canvas-h); aspect-ratio: 9 / 16; max-width: 100%;
  container-type: inline-size; overflow: hidden; border-radius: 18px; background: #1b1b22;
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / .9), 0 0 0 1px rgb(255 255 255 / .1);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.edt-canvas::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; box-shadow: inset 0 0 0 3px var(--edt-acc), inset 0 0 60px rgb(var(--edt-acc-rgb) / .35); border-radius: inherit; }
.edt-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.edt-vig { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse 75% 65% at 50% 46%, transparent 38%, rgb(0 0 0 / .55) 78%, rgb(0 0 0 / .9) 100%); }

/* Hook-Text */
.edt-hook {
  position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; width: max-content; max-width: 96cqw;
  padding: 1.6cqw 2.2cqw; border-radius: 1.8cqw; color: #fff; text-align: center; white-space: pre;
  cursor: grab; touch-action: none; outline: 1.5px dashed transparent; outline-offset: 0;
  transition: outline-color .16s; -webkit-font-smoothing: antialiased;
}
.edt-hook span { display: block; white-space: pre; font-family: var(--font-display, Inter, sans-serif); font-weight: 800; line-height: 1.02; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.edt-hook:hover { outline-color: rgb(255 255 255 / .55); }
.edt-hook:focus-visible { outline: 2px solid var(--edt-acc); outline-offset: 0; border-radius: 1.8cqw; }
.edt--dragging .edt-hook { cursor: grabbing; outline: 2px solid var(--edt-acc); }
.edt--blocked .edt-hook { outline-color: var(--edt-danger); }
.edt--before .edt-hook { cursor: default; outline-color: transparent; }

/* Hilfslinien */
.edt-guides i { position: absolute; z-index: 4; pointer-events: none; opacity: 0; background: #ff4fd8; box-shadow: 0 0 0 .5px rgb(0 0 0 / .4); transition: opacity .12s; }
.edt-gv { top: 0; bottom: 0; width: 1px; margin-left: -.5px; }
.edt-gh { left: 0; right: 0; height: 1px; margin-top: -.5px; }
.edt-guides i.is-on { opacity: 1; }

/* TikTok-Bereiche */
.edt-safe { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .25s var(--edt-ease); }
.edt--safe .edt-safe { opacity: 1; }
.edt--dragging .edt-safe { opacity: .7; }
.edt-zone { position: absolute; display: flex; align-items: flex-end; justify-content: flex-start; padding: 6px 8px;
  background: repeating-linear-gradient(-45deg, rgb(255 92 92 / .2) 0 6px, rgb(255 92 92 / .07) 6px 12px);
  border: 1px dashed rgb(255 140 140 / .7); }
.edt-zone span { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgb(0 0 0 / .55); padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.edt-z-top { left: 0; right: 0; top: 0; height: 9%; border-width: 0 0 1px; align-items: center; justify-content: center; }
.edt-z-rail { right: 0; top: 56%; width: 14%; height: 24%; border-width: 0 0 0 1px; align-items: flex-start; justify-content: center; padding-top: 4px; }
.edt-z-rail span { display: none; }
.edt-z-bottom { left: 0; right: 0; bottom: 0; height: 20%; border-width: 1px 0 0; }
.edt-rail { position: absolute; right: 2.6%; top: 57.5%; display: grid; gap: 2cqw; }
.edt-rail i { width: 8.4cqw; height: 8.4cqw; border-radius: 50%; background: rgb(255 255 255 / .82); box-shadow: 0 1px 4px rgb(0 0 0 / .4); }
.edt--blocked .edt-zone { border-color: var(--edt-danger); background: repeating-linear-gradient(-45deg, rgb(255 92 92 / .34) 0 6px, rgb(255 92 92 / .12) 6px 12px); }

/* Badges im Bild */
.edt-tag { position: absolute; z-index: 5; top: 10px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: rgb(0 0 0 / .55); backdrop-filter: blur(6px); pointer-events: none; }
.edt-tag-prev { left: 10px; }
.edt-tag-before { right: 10px; color: var(--edt-ink); background: var(--edt-acc); }

/* Werkzeuge unter der Bühne */
.edt-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.edt-tbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--edt-t2); background: rgb(255 255 255 / .05); border: 1px solid var(--edt-line2); transition: background .16s, color .16s, border-color .16s; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.edt-tbtn:hover { background: rgb(255 255 255 / .09); color: var(--edt-t1); }
.edt-tbtn[aria-pressed="true"] { color: var(--edt-ink); background: var(--edt-acc); border-color: transparent; }
.edt-tbtn .edt-i { width: 16px; height: 16px; }
.edt-pos { min-width: 92px; font: 600 12px/1 ui-monospace, 'SFMono-Regular', Consolas, monospace; color: var(--edt-t3); text-align: center; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ Panel */
.edt-panel { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--edt-line); background: var(--edt-s1); }
.edt-grab { display: none; }
.edt-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 14px 14px 0; padding: 4px; border-radius: 14px; background: var(--edt-bg); border: 1px solid var(--edt-line2); }
.edt-tab { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 6px 8px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--edt-t2); transition: background .16s, color .16s; min-width: 0; }
.edt-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edt-tab .edt-i { width: 16px; height: 16px; }
.edt-tab:hover { color: var(--edt-t1); }
.edt-tab[aria-selected="true"] { color: var(--edt-t1); background: var(--edt-s3); box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset; }
.edt-tab[aria-selected="true"] .edt-i { color: var(--edt-acc); }
.edt-panes { position: relative; flex: 1; min-height: 0; }
.edt-pane { display: grid; gap: 18px; padding: 18px 16px 20px; max-height: calc(var(--edt-canvas-h) + 30px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--edt-s3) transparent; }
.edt-pane:focus-visible { outline-offset: -2px; }
.edt-h, .edt-fs legend, .edt-field label, .edt-range-h label { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--edt-t2); }
.edt-fs { border: 0; min-width: 0; display: grid; gap: 9px; }
.edt-fs legend { margin-bottom: 9px; float: left; width: 100%; }
.edt-fs legend + * { clear: both; }

.edt-field { display: grid; gap: 6px; min-width: 0; }
.edt-field input, .edt-field select, .edt-rn {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 11px; font-size: 15px; color: var(--edt-t1);
  background: var(--edt-bg); border: 1px solid var(--edt-line2); transition: border-color .16s, box-shadow .16s;
}
.edt-field input::placeholder { color: var(--edt-t3); }
.edt-field input:focus, .edt-field select:focus, .edt-rn:focus { outline: none; border-color: var(--edt-acc); box-shadow: 0 0 0 3px rgb(var(--edt-acc-rgb) / .18); }

/* Schrift-Chips */
.edt-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 7px; }
.edt-fchip { position: relative; cursor: pointer; }
.edt-fchip input, .edt-sw input, .edt-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.edt-fchip > span { display: grid; justify-items: center; gap: 3px; padding: 9px 4px 8px; border-radius: 12px; background: var(--edt-bg); border: 1px solid var(--edt-line2); transition: border-color .16s, background .16s, transform .25s var(--edt-spring); }
.edt-fprev { font-size: 25px; line-height: 1.05; color: var(--edt-t1); letter-spacing: -.01em; }
.edt-fchip small { font-size: 11.5px; font-weight: 600; color: var(--edt-t2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.edt-fchip:hover > span { border-color: rgb(255 255 255 / .28); }
.edt-fchip input:checked + span { border-color: var(--edt-acc); background: rgb(var(--edt-acc-rgb) / .08); }
.edt-fchip input:checked + span small { color: var(--edt-t1); }
.edt-fchip input:focus-visible + span, .edt-sw input:focus-visible + span, .edt-seg input:focus-visible + span { outline: 2px solid var(--edt-acc); outline-offset: 2px; }

/* Farben */
.edt-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.edt-sw { position: relative; width: 34px; height: 34px; cursor: pointer; }
.edt-sw > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); transition: transform .25s var(--edt-spring), box-shadow .16s; }
.edt-sw input:checked + span, .edt-sw-custom.is-on > span { box-shadow: 0 0 0 2px var(--edt-s1), 0 0 0 4px var(--edt-acc); transform: scale(.94); }
.edt-sw:hover > span { transform: scale(1.06); }
.edt-sw-custom > span { color: var(--edt-t1); background: conic-gradient(#ff6b6b, #ffd166, #6bd88a, #5ec8ff, #b18cff, #ff6bd5, #ff6b6b); }
.edt-sw-custom.is-on > span { background: var(--sw, #9ad7ff); color: transparent; }
.edt-sw-custom .edt-i { width: 16px; height: 16px; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .6)); }
.edt-sw-custom input { width: 100%; height: 100%; }

/* Segmente */
.edt-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; border-radius: 12px; background: var(--edt-bg); border: 1px solid var(--edt-line2); }
.edt-seg label { position: relative; min-width: 0; }
.edt-seg span { display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 4px 6px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--edt-t2); text-align: center; line-height: 1.15; transition: background .16s, color .16s; overflow-wrap: anywhere; }
.edt-seg label:hover span { color: var(--edt-t1); }
.edt-seg input:checked + span { color: var(--edt-t1); background: var(--edt-s3); }
.edt-seg .edt-i { width: 17px; height: 17px; }
.edt-row2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; }

/* Schalter */
.edt-switch { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 42px; font-size: 13.5px; font-weight: 600; color: var(--edt-t2); cursor: pointer; }
.edt-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.edt-switch-ui { position: relative; width: 40px; height: 24px; flex: none; border-radius: 999px; background: var(--edt-s3); box-shadow: inset 0 0 0 1px var(--edt-line2); transition: background .2s; }
.edt-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #d8d8e0; transition: transform .28s var(--edt-spring), background .2s; }
.edt-switch input:checked + .edt-switch-ui { background: var(--edt-acc); }
.edt-switch input:checked + .edt-switch-ui::after { transform: translateX(16px); background: var(--edt-ink); }
.edt-switch input:focus-visible + .edt-switch-ui { outline: 2px solid var(--edt-acc); outline-offset: 2px; }

/* Regler */
.edt-range { display: grid; gap: 6px; transition: opacity .2s; }
.edt-range.is-off { opacity: .45; }
.edt-range-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.edt-out { font: 600 12.5px/1 ui-monospace, 'SFMono-Regular', Consolas, monospace; color: var(--edt-t1); font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }
.edt-range input[type="range"] {
  --a: 0%; --z: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y;
}
.edt-range input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--edt-s3) var(--a), var(--edt-acc) var(--a), var(--edt-acc) var(--z), var(--edt-s3) var(--z)); }
.edt-range input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--edt-s3) var(--a), var(--edt-acc) var(--a), var(--edt-acc) var(--z), var(--edt-s3) var(--z)); }
.edt-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgb(0 0 0 / .5), 0 0 0 4px rgb(var(--edt-acc-rgb) / 0); transition: box-shadow .16s, transform .2s var(--edt-spring); }
.edt-range input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgb(0 0 0 / .5); }
.edt-range input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 2px 8px rgb(0 0 0 / .5), 0 0 0 6px rgb(var(--edt-acc-rgb) / .16); }
.edt-range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.edt-range input[type="range"]:focus-visible { outline: none; }
.edt-range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--edt-s1), 0 0 0 5px var(--edt-acc); }
.edt-range input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--edt-s1), 0 0 0 5px var(--edt-acc); }

.edt-hint { font-size: 13px; line-height: 1.45; color: var(--edt-t3); }
.edt-hint.is-warn { color: var(--warn, #ffc266); }
.edt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 650; color: var(--edt-t1); background: rgb(255 255 255 / .05); border: 1px solid var(--edt-line2); transition: background .16s, border-color .16s, transform .25s var(--edt-spring); justify-self: start; }
.edt-btn:hover { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .24); }
.edt-btn:active { transform: scale(.97); }
.edt-btn .edt-i { width: 16px; height: 16px; }
.edt-btn-acc { color: var(--edt-ink); background: var(--edt-acc); border-color: transparent; }
.edt-btn-acc:hover { background: var(--edt-acc); box-shadow: 0 0 0 4px rgb(var(--edt-acc-rgb) / .16); }
.edt-btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }

/* Stile */
.edt-save { display: grid; gap: 12px; padding: 14px; border-radius: 16px; background: rgb(var(--edt-acc-rgb) / .045); border: 1px solid rgb(var(--edt-acc-rgb) / .2); }
.edt-save-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.edt-save-row .edt-btn { min-height: 42px; }
.edt-slist { list-style: none; display: grid; gap: 8px; margin-top: -8px; }
.edt-srow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 8px 7px 7px; border-radius: 14px; background: var(--edt-bg); border: 1px solid var(--edt-line); }
.edt-srow.is-new { animation: edt-in .55s var(--edt-spring); border-color: rgb(var(--edt-acc-rgb) / .5); }
@keyframes edt-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.edt-sprev { position: relative; display: grid; place-items: center; width: 44px; height: 56px; border-radius: 9px; overflow: hidden; background: var(--edt-s3); }
.edt-sprev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.edt-sprev b { position: relative; display: block; font-size: 17px !important; line-height: 1 !important; padding: 2px 4px !important; }
.edt-sname { display: grid; gap: 1px; min-width: 0; }
.edt-sname b { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edt-sname small { font-size: 12px; color: var(--edt-t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edt-sname .edt-rn { min-height: 36px; padding: 6px 10px; font-size: 14px; }
.edt-sbtns { display: flex; align-items: center; gap: 2px; }
.edt-srow.is-mine { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: 'p n' 'p b'; row-gap: 4px; }
.edt-srow.is-mine .edt-sprev { grid-area: p; }
.edt-srow.is-mine .edt-sname { grid-area: n; padding-top: 2px; }
.edt-srow.is-mine .edt-sbtns { grid-area: b; margin-left: -4px; }
.edt-empty { font-size: 13px; color: var(--edt-t3); margin-top: -8px; padding: 12px; border-radius: 12px; border: 1px dashed var(--edt-line2); }

/* Statuszeile + Toast */
.edt-status { display: flex; align-items: flex-start; gap: 8px; padding: 11px 16px; border-top: 1px solid var(--edt-line); font-size: 12.5px; line-height: 1.45; color: var(--edt-t3); background: rgb(0 0 0 / .18); }
.edt-status .edt-i { width: 15px; height: 15px; margin-top: 1px; color: var(--edt-t2); }
.edt-toast {
  position: absolute; z-index: 20; left: 50%; bottom: 58px; display: flex; align-items: center; gap: 12px; max-width: min(92%, 520px);
  padding: 10px 12px 10px 16px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; color: var(--edt-t1);
  background: rgb(30 30 38 / .96); backdrop-filter: blur(10px); box-shadow: 0 18px 40px -16px rgb(0 0 0 / .9), 0 0 0 1px var(--edt-line2);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px) scale(.98); transition: opacity .22s, transform .3s var(--edt-spring), visibility 0s .3s; pointer-events: none;
}
.edt-toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .22s, transform .3s var(--edt-spring), visibility 0s; pointer-events: auto; }
.edt-toast:empty { display: none; }
.edt-toast-btn { flex: none; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--edt-ink); background: var(--edt-acc); }
.edt-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Ohne JS (render.mjs): Standbild, Bedienelemente ruhig */
.edt--static .edt-panel :is(input, button, select, label), .edt--static .edt-actions button, .edt--static .edt-tools button, .edt--static .edt-strip button { pointer-events: none; }
.edt--static .edt-panes, .edt--static .edt-actions, .edt--static .edt-tools button { opacity: .6; }
.edt--static .edt-hook { cursor: default; }
.edt-noscript { margin-top: 12px; text-align: center; font-size: 14px; color: var(--edt-t2); }

/* ------------------------------------------------ Mittlere Breite */
@container edt (max-width: 1060px) {
  .edt-body { --edt-panel-w: 310px; grid-template-columns: 74px minmax(0, 1fr) var(--edt-panel-w); }
  .edt-strip { padding-inline: 8px; }
  .edt-handle-name { display: none; }
}

/* ------------------------------------------------ Mobil: Bühne oben, Folien als Leiste, Panel als Bottom-Sheet */
@container edt (max-width: 760px) {
  .edt-win { --edt-canvas-h: min(54vh, 520px); }
  .edt-body { display: flex; flex-direction: column; }
  .edt-bar { gap: 8px; padding: 8px 8px 8px 12px; flex-wrap: wrap; }
  .edt-dots { display: none; }
  .edt-title b { font-size: 14px; }
  .edt-actions { margin-left: auto; }
  .edt-ibtn { width: 36px; height: 36px; }
  .edt-apply { margin-left: 2px; padding: 8px 14px; font-size: 13px; }
  .edt-stagewrap { order: 1; padding: 16px 12px 12px; }
  .edt-strip { order: 2; flex-direction: row; justify-content: center; padding: 10px 12px; border-right: 0; border-top: 1px solid var(--edt-line); }
  .edt-thumb { width: 44px; }
  .edt-panel {
    order: 3; position: sticky; bottom: 0; z-index: 10; border-left: 0; border-radius: 22px 22px 0 0;
    border-top: 1px solid var(--edt-line2); box-shadow: 0 -18px 40px -18px rgb(0 0 0 / .9);
  }
  .edt-grab { display: grid; place-items: center; width: 100%; height: 24px; margin-bottom: -6px; }
  .edt-grab i { width: 40px; height: 5px; border-radius: 999px; background: rgb(255 255 255 / .28); transition: background .16s; }
  .edt-grab:hover i { background: rgb(255 255 255 / .5); }
  .edt-tabs { margin: 8px 12px 0; }
  .edt-pane { max-height: 36vh; padding: 14px 14px 18px; }
  .edt--sheet-min .edt-panes { display: none; }
  .edt--sheet-min .edt-tabs { margin-bottom: 12px; }
  .edt-toast { bottom: auto; top: 64px; }
}
@container edt (max-width: 420px) {
  .edt-apply { padding: 8px 14px; }
  .edt-ibtn { width: 34px; height: 34px; }
  .edt-tab .edt-i { display: none; }
  .edt-tbtn { padding: 7px 11px; font-size: 13px; }
  .edt-pos { display: none; }
  .edt-fonts { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
}
@container edt (max-width: 520px) {
  .edt-bar { row-gap: 4px; }
  .edt-title { flex-basis: 100%; padding: 2px 0 0 2px; }
  .edt-badge { display: inline-block; }
  .edt-actions { flex: 1; margin-left: -6px; }
  .edt-apply { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .edt *, .edt *::before, .edt *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .edt-hook { outline: 1px solid CanvasText; }
  .edt-range input[type="range"] { appearance: auto; }
}

/* ------------------------------------------------ Abschnitt (render.mjs renderEditorSection) */
.edt-sec-bullets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; list-style: none; }
.edt-sec-bullets li { display: grid; grid-template-columns: 1fr; gap: 4px 12px; padding: 16px 18px; border-radius: var(--r-md, 16px); background: var(--surface-1, #131319); border: 1px solid var(--line, rgb(255 255 255 / .08)); }
.edt-sec-bullets li:has(> .edt-i) { grid-template-columns: auto 1fr; }
.edt-sec-bullets .edt-i { grid-row: span 2; width: 22px; height: 22px; margin-top: 1px; color: var(--accent, #d4ff3a); }
.edt-sec-bullets b { font-family: var(--font-display, inherit); font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em; }
.edt-sec-bullets span { color: var(--text-2, #b9b9c6); font-size: .9375rem; line-height: 1.5; }
.edt-sec-note { margin-top: 16px; text-align: center; font-size: var(--fs-sm, .875rem); color: var(--text-3, #9494a3); }
@media (max-width: 860px) { .edt-sec-bullets { grid-template-columns: 1fr; } }

/* Grenze eigene Stile (Demo: höchstens 3) – Zähler, gedämpfter Speichern-Knopf, freundliche Hinweiskarte (kein Fehlerrot) */
.edt-count { margin-top: -4px; font-size: 12.5px; line-height: 1.4; color: var(--edt-t3); overflow-wrap: anywhere; }
.edt-count.is-full { color: var(--edt-t2); }
.edt-btn-acc.is-dim, .edt-btn-acc.is-dim:hover { color: var(--edt-t2); background: rgb(255 255 255 / .06); border-color: var(--edt-line2); box-shadow: none; cursor: not-allowed; }
.edt-limit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border-radius: 14px; background: rgb(var(--edt-acc-rgb) / .07); border: 1px solid rgb(var(--edt-acc-rgb) / .35); color: var(--edt-t1); font-size: 13.5px; line-height: 1.45; }
.edt-limit[hidden] { display: none; }
.edt-limit > .edt-i { width: 18px; height: 18px; margin-top: 1px; color: var(--edt-acc); }
.edt-limit p { margin: 0 0 10px; overflow-wrap: anywhere; }
.edt-limit .edt-btn { text-decoration: none; }
.edt-limit:focus-visible { outline: 2px solid var(--edt-acc); outline-offset: 2px; }
.edt-limit.is-pulse { animation: edt-in .45s var(--edt-spring); }
@media (prefers-reduced-motion: reduce) { .edt-limit.is-pulse { animation: none; } }
