/* =========================================================
   GifWerk – app.css  (mobile-first, Dark Editor)
   ========================================================= */
:root{
  --bg:#0e0f13; --bg2:#14161c; --panel:#1a1c22; --panel2:#212430;
  --line:#2a2d36; --line2:#363a46;
  --ink:#f5f5f7; --mut:#9aa0ab; --mut2:#6b7180;
  --acc:#ff3d7f; --acc-d:#e02e6c; --ok:#2de2e6; --warn:#ffb020;
  --r:16px; --r-sm:11px;
  --safe-t:env(safe-area-inset-top); --safe-b:env(safe-area-inset-bottom);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
html{background:var(--bg);overscroll-behavior:none}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  overscroll-behavior:none;-webkit-user-select:none;user-select:none;
  display:flex;flex-direction:column;
}
/* Der Editor sitzt in einem festen App-Viewport. Dadurch besitzt die Seite
   selbst keinen scrollbaren Rand, an dem iOS/Android Pull-to-Refresh starten kann. */
body.editor-page{
  position:fixed;top:0;left:0;width:100%;
  height:var(--app-height,100dvh);min-height:0;overflow:hidden;
  overscroll-behavior-x:none;overscroll-behavior-y:none;
  -webkit-overflow-scrolling:auto
}
body.editor-page .topbar{flex:0 0 auto}
body.editor-page .loader,body.editor-page .editor{width:100%;min-height:0}
body.editor-page .panels,body.editor-page .modal-card,body.editor-page .sheet-card{
  overscroll-behavior-y:contain
}
svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round;display:block}
.hidden{display:none !important}
.tiny{font-size:11.5px;color:var(--mut2);line-height:1.4}

/* ---------- Buttons ---------- */
.btn-acc{background:var(--acc);color:#fff;border:0;border-radius:var(--r-sm);
  padding:12px 18px;font-size:15px;font-weight:700;text-decoration:none;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
.btn-acc:active{background:var(--acc-d)}
.btn-acc.big{padding:15px 26px;font-size:16px;border-radius:14px}
.btn-ghost{background:transparent;color:var(--ink);border:1px solid var(--line2);
  border-radius:var(--r-sm);padding:12px 16px;font-size:15px;font-weight:600;cursor:pointer}
.btn-ghost:active{background:var(--panel2)}
.icon-btn{background:transparent;border:0;color:var(--mut);padding:8px;cursor:pointer;
  display:grid;place-items:center;border-radius:10px}
.icon-btn:active{background:var(--panel2);color:var(--ink)}

/* ---------- Setup-Hinweis ---------- */
.setup-note{margin:auto;text-align:center;padding:40px 24px;max-width:360px}
.setup-note h1{font-size:34px;font-weight:800;letter-spacing:-.02em;margin:0 0 8px}
.setup-note h1 span,.brand span{color:var(--acc)}
.setup-note p{color:var(--mut);margin:0 0 22px}

/* ---------- Topbar ---------- */
.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;
  justify-content:space-between;padding:calc(var(--safe-t) + 8px) 14px 8px;
  background:linear-gradient(var(--bg),rgba(14,15,19,.86));backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line)}
.brand{font-weight:800;font-size:19px;letter-spacing:-.02em}
.top-actions{display:flex;gap:2px}

/* ---------- Loader-Screen ---------- */
.loader{flex:1;display:flex;align-items:center;justify-content:center;padding:24px}
.loader-inner{max-width:340px;text-align:center}
.loader-badge{width:74px;height:74px;margin:0 auto 18px;border-radius:22px;
  background:linear-gradient(140deg,var(--acc),#b81d8f);display:grid;place-items:center;
  box-shadow:0 12px 40px -12px var(--acc)}
.loader-badge svg{width:38px;height:38px;stroke-width:1.7;color:#fff}
.loader h2{font-size:23px;font-weight:800;margin:0 0 8px;letter-spacing:-.01em}
.loader p{color:var(--mut);margin:0 0 22px}
.loader .btn-acc{width:100%}
.loader .tiny{margin-top:16px}

/* ---------- Editor-Layout ---------- */
.editor{flex:1;display:flex;flex-direction:column;min-height:0}

/* Stage / Vorschau */
.stage{position:relative;background:
  repeating-conic-gradient(#16181f 0% 25%,#1b1e26 0% 50%) 50%/22px 22px;
  flex:1;min-height:0;display:flex;align-items:center;justify-content:center;
  overflow:hidden;touch-action:none}
#preview{max-width:100%;max-height:100%;display:block;
  box-shadow:0 0 0 1px var(--line),0 18px 50px -20px #000;border-radius:4px}
.stage-overlay{position:absolute;inset:0;pointer-events:none}
.stage-hint{position:absolute;top:10px;left:50%;transform:translateX(-50%);
  background:rgba(0,0,0,.55);color:var(--mut);font-size:11px;padding:5px 11px;
  border-radius:20px;white-space:nowrap;transition:opacity .4s;pointer-events:none}
.stage-hint.fade{opacity:0}

/* Playbar */
.playbar{position:relative;display:flex;align-items:center;gap:10px;flex:0 0 auto;
  background:var(--bg2);padding:8px 12px;border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)}
.round{width:38px;height:38px;border-radius:50%;background:var(--acc);border:0;color:#fff;
  display:grid;place-items:center;flex:0 0 auto;cursor:pointer}
.round:active{background:var(--acc-d)}
.round svg{width:18px;height:18px}
.frame-count{font-size:11px;color:var(--mut);font-variant-numeric:tabular-nums;
  min-width:42px;text-align:right}

/* Range global */
input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:30px;
  background:transparent;cursor:pointer;margin:0}
input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:6px;
  background:var(--line2)}
input[type=range]::-moz-range-track{height:6px;border-radius:6px;background:var(--line2)}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;
  border-radius:50%;background:#fff;margin-top:-8px;box-shadow:0 2px 8px rgba(0,0,0,.5);
  border:2px solid var(--acc)}
input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:50%;
  background:#fff;border:2px solid var(--acc);box-shadow:0 2px 8px rgba(0,0,0,.5)}

/* Tabs */
.tabs{display:flex;background:var(--bg2);border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)}
.tab{flex:1;background:transparent;border:0;color:var(--mut2);padding:8px 2px 7px;
  display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer;
  font-size:10.5px;font-weight:600;position:relative}
.tab svg{width:21px;height:21px}
.tab.active{color:var(--acc)}
.tab.active::after{content:"";position:absolute;top:0;left:18%;right:18%;height:2.5px;
  background:var(--acc);border-radius:3px}

/* Panels */
.panels{background:var(--bg2);max-height:38vh;overflow-y:auto;
  overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
.panel{display:none;padding:14px 14px 6px}
.panel.active{display:block;animation:fade .2s ease}
@keyframes fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

.ctrl{margin-bottom:14px}
.ctrl-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:2px}
.ctrl-head label{font-size:13px;font-weight:600;color:var(--ink)}
.val{font-size:12px;color:var(--ok);font-variant-numeric:tabular-nums;font-weight:600}
.dual{position:relative;height:30px}
.dual input{position:absolute;inset:0;pointer-events:none;background:none}
.dual input::-webkit-slider-thumb{pointer-events:auto}
.dual input::-moz-range-thumb{pointer-events:auto}
.dual input::-webkit-slider-runnable-track{background:transparent}
.dual::before{content:"";position:absolute;left:0;right:0;top:12px;height:6px;
  border-radius:6px;background:var(--line2)}

/* Chips */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.chip{background:var(--panel2);border:1px solid var(--line2);color:var(--ink);
  border-radius:20px;padding:9px 15px;font-size:13px;font-weight:600;cursor:pointer}
.chip:active{transform:scale(.97)}
.chip.toggle.active{background:var(--acc);border-color:var(--acc);color:#fff}

/* Filter-Vorschauzeile */
.filter-row{display:flex;gap:9px;overflow-x:auto;padding-bottom:12px;margin:0 -14px 8px;
  padding-left:14px;padding-right:14px;-webkit-overflow-scrolling:touch}
.filter-item{flex:0 0 auto;text-align:center;cursor:pointer}
.filter-item canvas{width:58px;height:58px;border-radius:12px;border:2px solid transparent;
  background:var(--panel2);object-fit:cover}
.filter-item.active canvas{border-color:var(--acc)}
.filter-item span{display:block;font-size:10.5px;color:var(--mut);margin-top:4px}
.filter-item.active span{color:var(--acc)}

/* Text-Panel */
.text-add{display:flex;gap:8px;margin-bottom:12px}
.text-add input{flex:1;background:#101218;border:1px solid var(--line2);border-radius:var(--r-sm);
  color:var(--ink);padding:11px 13px;font-size:15px}
.text-add input:focus{outline:none;border-color:var(--acc)}
.swatches{display:flex;gap:9px;flex-wrap:wrap}
.swatch{width:30px;height:30px;border-radius:50%;border:2px solid var(--line2);cursor:pointer}
.swatch.active{border-color:#fff;box-shadow:0 0 0 2px var(--acc)}
.sel-only{opacity:.4;pointer-events:none;transition:opacity .2s}
.sel-only.on{opacity:1;pointer-events:auto}
.sel-hint{margin-top:6px}


.time-card{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.02)}
.timeline-chips .chip{padding:8px 12px;font-size:12px}
.timeline-list{display:grid;gap:8px;margin-top:10px}
.timeline-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 11px;border:1px solid var(--line2);border-radius:12px;background:#151821;cursor:pointer}
.timeline-item.active{border-color:var(--acc);box-shadow:0 0 0 1px rgba(255,61,127,.22) inset}
.timeline-item-main{min-width:0;display:flex;flex-direction:column;gap:2px}
.timeline-item-title{font-size:13px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.timeline-item-sub{font-size:11.5px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.timeline-item-del{width:34px;height:34px;min-width:34px;border-radius:10px;border:1px solid var(--line2);background:#22161d;color:#ff7aa5;display:grid;place-items:center;cursor:pointer}
.timeline-item-del:active{transform:scale(.96)}
.timeline-item-empty{padding:10px 2px 0;color:var(--mut);font-size:12px}

/* Sticker-Panel */
.sticker-cats{display:flex;gap:8px;overflow-x:auto;padding-bottom:10px;margin-bottom:4px}
.sticker-cat{flex:0 0 auto;background:var(--panel2);border:1px solid var(--line2);
  border-radius:18px;padding:7px 13px;font-size:13px;cursor:pointer;color:var(--mut)}
.sticker-cat.active{background:var(--acc);border-color:var(--acc);color:#fff}
.sticker-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.sticker{aspect-ratio:1;display:grid;place-items:center;font-size:26px;
  background:var(--panel2);border-radius:12px;cursor:pointer;border:1px solid transparent}
.sticker:active{transform:scale(.92);border-color:var(--acc)}

/* Layers-Bar */
.layers-bar{display:flex;align-items:center;gap:8px;background:var(--bg2);
  border-top:1px solid var(--line);padding:8px 10px}
.layers-scroll{display:flex;gap:7px;overflow-x:auto;flex:1;-webkit-overflow-scrolling:touch}
.layer-pill{flex:0 0 auto;display:flex;align-items:center;gap:6px;background:var(--panel2);
  border:1px solid var(--line2);border-radius:10px;padding:6px 11px;font-size:12.5px;
  max-width:130px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.layer-pill.active{border-color:var(--acc);background:#2a1722;color:#fff}
.layer-pill .dot{width:8px;height:8px;border-radius:50%;background:var(--mut);flex:0 0 auto}
.layer-pill.active .dot{background:var(--acc)}
.layer-pill small{display:block;font-size:10px;color:var(--mut);margin-top:2px}
.layer-pill.active small{color:#ffd2e2}
.layer-del{flex:0 0 auto;width:40px;height:40px;border-radius:11px;background:#2a1620;
  border:1px solid #5a2238;color:#ff6b95;display:grid;place-items:center;cursor:pointer}
.layer-del:active{background:#391a26}

/* Aktionsleiste */
.action-bar{display:flex;gap:10px;padding:10px 12px calc(10px + var(--safe-b));
  background:var(--bg);border-top:1px solid var(--line)}
.btn-make{flex:1;background:linear-gradient(135deg,var(--acc),#b81d8f);color:#fff;border:0;
  border-radius:14px;padding:15px;font-size:16px;font-weight:800;display:flex;
  align-items:center;justify-content:center;gap:9px;cursor:pointer;
  box-shadow:0 10px 30px -12px var(--acc)}
.btn-make:active{transform:translateY(1px)}
.btn-make svg{width:20px;height:20px}
.action-bar .btn-ghost{flex:0 0 auto}

/* ---------- Modal (Export) ---------- */
.modal{position:fixed;inset:0;z-index:60;background:rgba(6,7,10,.82);
  backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:20px}
.modal-card{background:var(--panel);border:1px solid var(--line2);border-radius:20px;
  width:100%;max-width:380px;padding:18px;max-height:90vh;overflow-y:auto}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.modal-head h3{margin:0;font-size:17px;font-weight:700}
.progress-wrap{padding:18px 4px 8px}
.progress{height:9px;background:var(--line2);border-radius:8px;overflow:hidden}
.progress-bar{height:100%;width:0;background:linear-gradient(90deg,var(--acc),var(--ok));
  border-radius:8px;transition:width .15s}
.progress-label{text-align:center;color:var(--mut);font-size:13px;margin:12px 0 2px}
.result{text-align:center}
.result img{max-width:100%;max-height:46vh;border-radius:12px;border:1px solid var(--line2);
  background:repeating-conic-gradient(#16181f 0 25%,#1b1e26 0 50%) 50%/18px 18px}
.result-meta{color:var(--mut);font-size:12.5px;margin:10px 0 14px}
.result .btn-acc{width:100%;margin-bottom:9px}
.result .btn-ghost{width:100%}

/* ---------- Sheets ---------- */
.sheet{position:fixed;inset:0;z-index:70;background:rgba(6,7,10,.6);
  display:flex;align-items:flex-end;justify-content:center}
.sheet-card{background:var(--panel);width:100%;max-width:480px;max-height:92%;overflow-y:auto;
  border-radius:22px 22px 0 0;border:1px solid var(--line2);border-bottom:0;
  padding:8px 18px calc(20px + var(--safe-b));animation:slideUp .25s ease;
  overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
@keyframes slideUp{from{transform:translateY(100%)}to{transform:none}}
.sheet-grip{width:42px;height:5px;border-radius:5px;background:var(--line2);margin:6px auto 14px}
.sheet-card h3{margin:0 0 12px;font-size:17px;font-weight:700}
.sheet-card label{display:block;font-size:12px;color:var(--mut);margin:12px 0 5px;font-weight:600}
.sheet-card input{width:100%;background:#101218;border:1px solid var(--line2);
  border-radius:var(--r-sm);color:var(--ink);padding:12px 13px;font-size:15px}
.sheet-card input:focus{outline:none;border-color:var(--acc)}
.sheet-actions{display:flex;gap:10px;margin-top:18px}
.sheet-actions button{flex:1}
.help-list{list-style:none;padding:0;margin:0 0 18px}
.help-list li{padding:9px 0;border-bottom:1px solid var(--line);font-size:13.5px;color:var(--mut)}
.help-list li b{color:var(--ink)}
.help-list li:last-child{border-bottom:0}
.help-list+.btn-acc{width:100%}

/* ---------- Toast ---------- */
.toast{position:fixed;left:50%;bottom:calc(80px + var(--safe-b));transform:translateX(-50%);
  background:#22252f;color:var(--ink);border:1px solid var(--line2);padding:11px 18px;
  border-radius:24px;font-size:13.5px;z-index:90;box-shadow:0 8px 24px rgba(0,0,0,.4);
  max-width:88vw;text-align:center;animation:toastIn .25s}
.toast.err{border-color:#6e2440;background:#2a1620;color:#ffb9cf}
@keyframes toastIn{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}

/* ---------- Tablet / Landscape ---------- */
@media (min-width:760px){
  .editor{flex-direction:row;flex-wrap:wrap}
  .stage{flex:1 1 60%;order:1}
  .tabs{flex:0 0 100%;order:3}
  .panels{flex:0 0 100%;order:4;max-height:30vh}
  .action-bar{flex:0 0 100%;order:5}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important}
}


/* ---------- Eigenes Bild / Freihand-Ausschneiden ---------- */
.custom-image-card{
  display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px;
  background:linear-gradient(135deg,#211923,#191b22);border:1px solid #4a2940;
  border-radius:14px
}
.custom-image-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.custom-image-copy strong{font-size:14px;color:var(--ink)}
.custom-image-copy span{font-size:11.5px;line-height:1.35;color:var(--mut)}
.custom-image-btn{flex:0 0 auto;white-space:nowrap;padding:10px 12px;font-size:12.5px}

.image-size-card{
  margin:0 0 14px;padding:12px;background:#171920;border:1px solid var(--line2);
  border-radius:14px
}
.image-size-card .ctrl-head{margin-bottom:4px}
.image-size-card .ctrl-head.mini{margin-bottom:2px}
.image-size-card .ctrl-head.mini label{font-size:11.5px;color:var(--mut)}
.image-size-card .ctrl-head.mini .val{font-size:11.5px}
.image-size-row{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;gap:8px;align-items:center}
.image-scale-step{
  width:46px;height:46px;border-radius:12px;border:1px solid #61304a;background:#2a1722;
  color:#ff75a5;font-size:27px;font-weight:500;line-height:1;cursor:pointer
}
.image-scale-step:active{background:#3a1b2a;transform:scale(.96)}
.image-size-row input[type=range]{height:46px}
.image-size-row input[type=range]::-webkit-slider-thumb{width:28px;height:28px;margin-top:-11px}
.image-size-row input[type=range]::-moz-range-thumb{width:28px;height:28px}
.image-subctrls{display:grid;gap:10px;margin-top:10px}
.image-subctrl{background:#12141a;border:1px solid #232733;border-radius:12px;padding:8px 10px}
.image-subctrl input[type=range]{margin-top:2px}
.image-size-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:7px}
.image-size-actions-3{grid-template-columns:1fr 1fr 1fr}
.image-size-actions .btn-ghost{min-height:42px;padding:9px 10px;font-size:12px}
.image-size-card .tiny{margin:9px 1px 0;color:var(--mut);line-height:1.35}
/* Echter Vollbild-Arbeitsbereich: Kopf und Werkzeuge bleiben fest,
   die Zeichenfläche nutzt den gesamten verbleibenden Viewport. */
.cutout-modal{
  position:fixed;inset:0;z-index:85;width:100%;height:100%;
  background:#08090d;display:block;overflow:hidden;overscroll-behavior:none;
  -webkit-overflow-scrolling:auto
}
.cutout-card{
  position:relative;width:100%;height:100%;max-width:none;max-height:none;overflow:hidden;
  background:var(--bg);border:0;border-radius:0;padding:0;
  display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:0;
  box-shadow:none
}
.cutout-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:58px;padding:calc(8px + var(--safe-t)) 12px 8px 14px;
  background:rgba(14,15,19,.97);border-bottom:1px solid var(--line);
  position:relative;z-index:2
}
.cutout-head>div{min-width:0}
.cutout-head h3{margin:0 0 2px;font-size:17px;line-height:1.2}
.cutout-head p{margin:0;color:var(--mut);font-size:11.5px;line-height:1.35}
.cutout-head .icon-btn{
  flex:0 0 auto;width:44px;height:44px;padding:0;color:var(--ink);
  background:var(--panel2);border:1px solid var(--line2);border-radius:12px
}
.cutout-head .icon-btn:active{background:#2a2d38}
.cutout-head .icon-btn svg{width:24px;height:24px}
.cutout-stage{
  position:relative;width:100%;height:100%;min-height:0;margin:0;overflow:hidden;
  border:0;border-radius:0;background-color:#12141a;
  background-image:linear-gradient(45deg,#1d2028 25%,transparent 25%),
    linear-gradient(-45deg,#1d2028 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#1d2028 75%),
    linear-gradient(-45deg,transparent 75%,#1d2028 75%);
  background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0;
  touch-action:none;contain:strict
}
.cutout-stage::after{
  content:"Mit einem Finger umranden";position:absolute;left:50%;top:10px;
  transform:translateX(-50%);z-index:3;pointer-events:none;white-space:nowrap;
  color:rgba(255,255,255,.78);font-size:11px;font-weight:650;
  background:rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.08);
  padding:5px 10px;border-radius:18px;backdrop-filter:blur(4px)
}
.cutout-stage canvas{
  position:absolute;inset:0;width:100%;height:100%;display:block
}
#cutoutOverlay{cursor:crosshair;touch-action:none}
.cutout-status{
  min-height:38px;margin:0;padding:9px 14px;text-align:center;
  color:var(--mut);font-size:12.5px;line-height:1.35;background:var(--bg2);
  border-top:1px solid var(--line)
}
.cutout-status.ready{color:var(--ok)}
.cutout-tools{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;
  padding:9px 12px calc(9px + var(--safe-b));background:var(--bg);
  border-top:1px solid var(--line)
}
.cutout-tools button{min-height:44px;padding:10px 12px;font-size:13px}
.cutout-tools .btn-acc{width:100%;grid-column:1/-1;min-height:48px;font-size:14px}
.cutout-tools button:disabled{opacity:.42;cursor:not-allowed;transform:none}

@media (max-width:430px){
  .custom-image-card{align-items:stretch;flex-direction:column}
  .custom-image-btn{width:100%;text-align:center}
  .image-size-actions,.image-size-actions-3{grid-template-columns:1fr 1fr 1fr}
  .cutout-head{padding-left:12px}
  .cutout-head h3{font-size:16px}
  .cutout-head p{font-size:11px}
}

@media (min-width:600px){
  .cutout-tools{grid-template-columns:auto auto minmax(240px,1fr);align-items:center}
  .cutout-tools .btn-acc{grid-column:auto}
}

@media (orientation:landscape) and (max-height:650px){
  .cutout-card{grid-template-rows:auto minmax(0,1fr) auto}
  .cutout-head{min-height:48px;padding-top:calc(5px + var(--safe-t));padding-bottom:5px}
  .cutout-head h3{font-size:15px;margin:0}
  .cutout-head p{display:none}
  .cutout-status{
    position:absolute;left:50%;bottom:calc(58px + var(--safe-b));z-index:4;
    transform:translateX(-50%);min-height:0;width:max-content;max-width:78vw;
    padding:6px 11px;border:1px solid rgba(255,255,255,.08);border-radius:18px;
    background:rgba(0,0,0,.68);backdrop-filter:blur(4px)
  }
  .cutout-tools{
    grid-template-columns:auto auto minmax(220px,1fr);padding-top:7px;padding-bottom:calc(7px + var(--safe-b))
  }
  .cutout-tools .btn-acc{grid-column:auto;min-height:44px}
}

@media (max-height:520px) and (orientation:landscape){
  .cutout-stage::after{display:none}
}

body.cutout-open{overflow:hidden;touch-action:none}


/* ---------- Fullscreen-Editor / Sidebar-Workflow (v1.0.9) ---------- */
.editor{
  position:relative;
  padding-bottom:calc(86px + var(--safe-b));
}
.stage{
  flex:1;
  min-height:0;
  padding:10px 10px calc(190px + var(--safe-b)) 76px;
  align-items:center;
  justify-content:center;
}
#preview{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
}
.stage-hint{
  top:10px;
  max-width:calc(100vw - 110px);
  overflow:hidden;
  text-overflow:ellipsis;
}
.playbar{
  position:fixed;
  left:10px;
  right:10px;
  bottom:calc(142px + var(--safe-b));
  z-index:24;
  border:1px solid rgba(255,255,255,.06);
  border-radius:24px;
  background:rgba(12,14,20,.88);
  backdrop-filter:blur(14px);
  box-shadow:0 16px 40px -28px #000;
  padding:10px 12px;
}
.playbar .round{width:46px;height:46px}
.playbar .round svg{width:21px;height:21px}
.playbar .frame-count{min-width:50px;font-size:13px;color:var(--ink)}
.tool-dock{
  position:fixed;
  top:calc(var(--safe-t) + 76px);
  left:10px;
  z-index:36;
  display:flex;
  flex-direction:column;
  gap:8px;
  background:transparent;
  border:0;
}
.tool-dock .tab{
  width:62px;
  min-height:62px;
  padding:8px 4px 7px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(13,15,21,.78);
  backdrop-filter:blur(12px);
  color:var(--mut);
  box-shadow:0 10px 26px -18px #000;
  flex:0 0 auto;
}
.tool-dock .tab span{font-size:10px;line-height:1.15}
.tool-dock .tab.active{
  color:#fff;
  background:linear-gradient(180deg,#ff4384,#cf256a);
  border-color:#ff5b95;
}
.tool-dock .tab.active::after{display:none}
.tool-dock .tab:active{transform:scale(.96)}
.sidebar-backdrop{
  position:fixed;
  inset:calc(var(--safe-t) + 56px) 0 calc(86px + var(--safe-b)) 0;
  z-index:34;
  background:transparent;
  backdrop-filter:none;
  pointer-events:none;
}
.panels-drawer{
  position:fixed;
  top:calc(var(--safe-t) + 56px);
  right:0;
  bottom:calc(86px + var(--safe-b));
  width:min(88vw,380px);
  max-width:380px;
  display:flex;
  flex-direction:column;
  background:rgba(20,22,28,.97);
  border-left:1px solid rgba(255,255,255,.08);
  transform:translateX(104%);
  transition:transform .24s ease;
  z-index:35;
  box-shadow:-22px 0 48px -30px rgba(0,0,0,.95);
  backdrop-filter:blur(14px);
}
.editor.sidebar-open .panels-drawer{transform:none}
.drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 12px 10px 14px;
  border-bottom:1px solid var(--line);
  background:rgba(12,14,20,.74);
}
.drawer-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.drawer-copy strong{font-size:16px;line-height:1.15}
.drawer-copy span{font-size:11.5px;color:var(--mut);line-height:1.3}
.drawer-close{
  width:42px;
  height:42px;
  border-radius:12px;
  color:var(--ink);
  background:var(--panel2);
  border:1px solid var(--line2);
  flex:0 0 auto;
}
.panels{
  flex:1;
  max-height:none;
  height:auto;
  overflow-y:auto;
  background:transparent;
  padding-bottom:24px;
}
.panel{padding:14px 14px 10px}
.panel.active{display:block}
.layers-bar{
  position:fixed;
  left:10px;
  right:10px;
  bottom:calc(86px + var(--safe-b));
  z-index:25;
  border:1px solid rgba(255,255,255,.07);
  border-radius:18px;
  background:rgba(15,17,23,.9);
  backdrop-filter:blur(12px);
  box-shadow:0 12px 34px -24px #000;
}
.layer-pill{background:#232734}
.action-bar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:26;
  padding:10px 12px calc(10px + var(--safe-b));
  background:linear-gradient(180deg,rgba(14,15,19,.2),rgba(14,15,19,.96) 22%,rgba(14,15,19,.98));
  backdrop-filter:blur(12px);
}
@media (max-width:430px){
  .stage{padding-left:72px;padding-bottom:calc(182px + var(--safe-b))}
  .tool-dock .tab{width:58px;min-height:58px}
  .panels-drawer{width:min(92vw,360px)}
  .playbar{left:8px;right:8px}
  .layers-bar{left:8px;right:8px}
}
@media (min-width:760px){
  .stage{padding:14px 14px calc(176px + var(--safe-b)) 86px}
  .tool-dock{top:calc(var(--safe-t) + 84px)}
  .panels-drawer{width:min(42vw,420px);max-width:420px}
  .playbar,.layers-bar{left:18px;right:18px;max-width:780px}
  .action-bar{display:flex;justify-content:center}
  .action-bar>*{max-width:780px}
}

/* ---------- Szene / Hintergrund-Komposition (v1.2.0) ---------- */
.scene-upload-card{border-color:#2f5362;background:linear-gradient(135deg,#142229,#171b22)}
.scene-status{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:0 0 14px;padding:11px 12px;border:1px solid #31515d;border-radius:13px;
  background:#121d22
}
.scene-status-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.scene-status-copy strong{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
.scene-status-copy span{font-size:11.5px;color:var(--mut)}
.btn-ghost.compact{width:auto;min-height:38px;padding:8px 11px;font-size:12px;flex:0 0 auto}
.scene-media-card{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:0 0 14px;padding:12px;border:1px solid #4a2940;border-radius:14px;
  background:linear-gradient(135deg,#211923,#191b22)
}
.scene-media-card>div{min-width:0;display:flex;flex-direction:column;gap:4px}
.scene-media-card strong{font-size:14px;color:var(--ink)}
.scene-media-card span{font-size:11.5px;line-height:1.38;color:var(--mut)}
.scene-media-card .btn-acc{flex:0 0 auto;padding:10px 12px;font-size:12.5px}
.media-fit-actions{grid-template-columns:1fr 1fr}
.layer-pill.media-layer{border-color:#3e7890;background:#172831}
.layer-pill.media-layer .dot{background:#5dcbff}
.layer-del.disabled{opacity:.35;pointer-events:none}
#backgroundFitChips .chip.active{border-color:#5dcbff;color:#b9ecff;background:#152934}
@media (max-width:430px){
  .tool-dock{gap:6px}
  .tool-dock .tab{width:56px;min-height:54px;padding-top:6px;padding-bottom:5px}
  .tool-dock .tab svg{width:19px;height:19px}
  .scene-media-card,.scene-upload-card{align-items:stretch;flex-direction:column}
  .scene-media-card .btn-acc,.scene-upload-card .custom-image-btn{width:100%;text-align:center}
}

/* ---------- Multi-Media-Hintergrund & Touch-Workflow (v1.3.0) ---------- */
.stage-quick-tools{
  position:absolute;top:48px;left:50%;transform:translateX(-50%);z-index:12;
  display:flex;align-items:center;gap:6px;padding:5px;border:1px solid rgba(255,255,255,.08);
  border-radius:16px;background:rgba(10,12,17,.82);backdrop-filter:blur(14px);
  box-shadow:0 12px 34px -24px #000
}
.stage-quick{
  min-width:82px;height:38px;padding:0 10px;border:0;border-radius:11px;
  display:flex;align-items:center;justify-content:center;gap:6px;
  background:transparent;color:var(--mut);font-size:11.5px;font-weight:750;cursor:pointer
}
.stage-quick svg{width:17px;height:17px}
.stage-quick.active{background:#2a1722;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,61,127,.55)}
.stage-quick:disabled{opacity:.38;cursor:not-allowed}
.stage-quick:active:not(:disabled){transform:scale(.97)}

.scene-intro-card{
  display:flex;flex-direction:column;gap:3px;margin:0 0 10px;padding:0 2px
}
.scene-intro-card.second{margin-top:18px}
.scene-intro-card strong{font-size:14px;color:var(--ink)}
.scene-intro-card span{font-size:11.5px;line-height:1.4;color:var(--mut)}
.scene-status{gap:8px}
.scene-status-icon{
  width:40px;height:40px;min-width:40px;border-radius:11px;display:grid;place-items:center;
  background:#17303a;border:1px solid #315866;color:#9ceaff;font-size:10px;font-weight:900;letter-spacing:.04em
}
.scene-status-copy{flex:1}
.btn-ghost.compact.danger{color:#ff8bac;border-color:#612b40;background:#24151b}
.scene-layer-switch{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:14px}
.scene-layer-choice{
  min-width:0;display:flex;align-items:center;gap:10px;padding:11px;border:1px solid var(--line2);
  border-radius:14px;background:#151821;color:var(--ink);text-align:left;cursor:pointer
}
.scene-layer-choice:disabled{opacity:.38;cursor:not-allowed}
.scene-layer-choice.active{border-color:var(--acc);background:#281720;box-shadow:0 0 0 1px rgba(255,61,127,.18) inset}
.scene-layer-choice-icon{
  width:38px;height:38px;min-width:38px;border-radius:11px;display:grid;place-items:center;
  font-size:11px;font-weight:900;color:#fff
}
.scene-layer-choice-icon.bg{background:linear-gradient(145deg,#22677e,#173642)}
.scene-layer-choice-icon.media{background:linear-gradient(145deg,#ff4c89,#b72563)}
.scene-layer-choice>span:last-child{min-width:0;display:flex;flex-direction:column;gap:2px}
.scene-layer-choice strong{font-size:13px}
.scene-layer-choice small{font-size:10.5px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fx-target-card{
  display:grid;grid-template-columns:auto 1fr;column-gap:8px;row-gap:2px;
  margin-bottom:12px;padding:11px 12px;border:1px solid #34404f;border-radius:13px;background:#151a22
}
.fx-target-card span{font-size:11.5px;color:var(--mut)}
.fx-target-card strong{font-size:13px;color:var(--ok)}
.fx-target-card small{grid-column:1/-1;font-size:10.5px;color:var(--mut2)}
.fx-target-disabled{opacity:.48;pointer-events:none;position:relative}
.fx-target-disabled::after{
  content:"Zeitsegmente sind nur für die Animation verfügbar";display:block;margin-top:8px;
  font-size:10.5px;color:var(--mut)
}
.layer-pill.background-layer{border-color:#315866;background:#14242b}
.layer-pill.background-layer .dot{background:#55d7ff}
#backgroundFitChips .chip[data-bgfit="reset"]{border-style:dashed}

@media (max-width:540px){
  .stage-quick-tools{top:44px;left:calc(50% + 34px);max-width:calc(100vw - 92px)}
  .stage-quick{min-width:0;padding:0 8px}
  .stage-quick span{display:none}
  .stage-quick svg{width:19px;height:19px}
  .scene-status{flex-wrap:wrap}
  .scene-status-copy{min-width:calc(100% - 52px)}
  .scene-status .btn-ghost.compact{flex:1}
}

@media (max-width:600px){
  .tool-dock{transition:opacity .18s ease,transform .18s ease}
  .editor.sidebar-open .tool-dock{opacity:0;pointer-events:none;transform:translateX(-120%)}
}

/* ---------- Visuelle Keyframe-Zeitleiste (v1.4.0) ---------- */
.timeline-guide{
  display:flex;flex-direction:column;gap:4px;margin:0 0 12px;padding:12px 13px;
  border:1px solid #365064;border-radius:14px;background:linear-gradient(145deg,#14212a,#171a21)
}
.timeline-guide strong{font-size:14px;color:var(--ink)}
.timeline-guide span{font-size:11.5px;line-height:1.42;color:var(--mut)}
.timeline-studio{
  --timeline-playhead:0%;margin:0 0 14px;padding:10px;border:1px solid var(--line2);
  border-radius:15px;background:#11141b;overflow:hidden
}
.timeline-studio-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.timeline-studio-head>div{min-width:0;display:flex;flex-direction:column;gap:2px}
.timeline-studio-head strong{font-size:13.5px;color:var(--ink)}
.timeline-studio-head span{font-size:11px;color:#7ddcff;font-variant-numeric:tabular-nums}
.timeline-ruler{position:relative;margin-left:100px;padding-top:18px;touch-action:none;cursor:crosshair}
.timeline-ruler-labels{position:absolute;left:0;right:0;top:0;height:16px;pointer-events:none}
.timeline-ruler-labels span{
  position:absolute;top:0;transform:translateX(-50%);font-size:9px;color:var(--mut2);white-space:nowrap
}
.timeline-ruler-labels span:first-child{transform:none}
.timeline-ruler-labels span:last-child{transform:translateX(-100%)}
.timeline-ruler-line{position:relative;height:10px;border-top:1px solid #39404f;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(25% - 1px),#2b313d calc(25% - 1px),#2b313d 25%)}
.timeline-ruler-line i{
  position:absolute;top:-5px;left:0;width:3px;height:16px;transform:translateX(-1px);
  border-radius:3px;background:#ff3d7f;box-shadow:0 0 0 1px rgba(0,0,0,.35),0 0 12px rgba(255,61,127,.45)
}
.timeline-tracks{display:grid;gap:7px;margin-top:4px;max-height:250px;overflow:auto;padding-right:2px;-webkit-overflow-scrolling:touch}
.timeline-track-row{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:8px;padding:4px;border-radius:11px;border:1px solid transparent}
.timeline-track-row.active{border-color:rgba(255,61,127,.55);background:rgba(255,61,127,.06)}
.timeline-track-label{
  min-width:0;padding:4px 3px;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer
}
.timeline-track-label strong,.timeline-track-label small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.timeline-track-label strong{font-size:10.5px;font-weight:800}
.timeline-track-label small{margin-top:2px;font-size:8.5px;color:var(--mut2);font-variant-numeric:tabular-nums}
.timeline-track-rail{
  position:relative;height:34px;border-radius:9px;border:1px solid #2b313d;
  background:repeating-linear-gradient(90deg,#151922 0,#151922 calc(25% - 1px),#252b36 calc(25% - 1px),#252b36 25%);
  overflow:visible;touch-action:none;cursor:crosshair
}
.timeline-range-bar{
  position:absolute;top:7px;height:18px;min-width:12px;border-radius:7px;
  background:linear-gradient(90deg,#c72d66,#ff4c89);box-shadow:0 3px 12px rgba(255,61,127,.2);
  cursor:grab;touch-action:none
}
.timeline-range-bar:active{cursor:grabbing}
.timeline-range-bar.media{background:linear-gradient(90deg,#25779d,#5dcbff);box-shadow:0 3px 12px rgba(93,203,255,.18)}
.timeline-range-bar.background{background:linear-gradient(90deg,#257c6d,#4de0ba);box-shadow:0 3px 12px rgba(77,224,186,.16)}
.timeline-range-handle{
  position:absolute;top:-5px;width:14px;height:28px;border:2px solid #fff;border-radius:6px;
  background:rgba(17,20,27,.88);box-shadow:0 3px 10px rgba(0,0,0,.35);touch-action:none;cursor:ew-resize
}
.timeline-range-handle.left{left:-7px}.timeline-range-handle.right{right:-7px}
.timeline-key-marker{
  position:absolute;z-index:5;top:50%;width:15px;height:15px;padding:0;border:2px solid #fff;border-radius:3px;
  background:#5dcbff;transform:translate(-50%,-50%) rotate(45deg);box-shadow:0 2px 9px rgba(0,0,0,.45);
  cursor:ew-resize;touch-action:none
}
.timeline-key-marker.current{background:#ff3d7f;box-shadow:0 0 0 3px rgba(255,61,127,.2),0 2px 9px rgba(0,0,0,.45)}
.timeline-track-playhead{
  position:absolute;z-index:4;top:-3px;bottom:-3px;left:var(--timeline-playhead);width:2px;
  transform:translateX(-1px);background:rgba(255,255,255,.68);pointer-events:none
}
.timeline-selection-card,.motion-card{
  margin:0 0 12px;padding:12px;border:1px solid var(--line2);border-radius:14px;background:#151821
}
.timeline-selection-card.disabled,.motion-card.disabled{opacity:.45;pointer-events:none}
.timeline-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
.timeline-action-grid .chip:last-child{grid-column:1/-1}
.timeline-fades{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.motion-card{border-color:#4a2c43;background:linear-gradient(145deg,#211821,#17191f)}
.motion-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.motion-card-head>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.motion-card-head strong{font-size:13.5px;color:var(--ink)}
.motion-card-head span{font-size:10.5px;line-height:1.35;color:var(--mut)}
.motion-count{
  flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#2b1a24;color:#ff8db4!important;
  border:1px solid #5d2941;font-size:10px!important;font-weight:800
}
.motion-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.motion-actions .btn-acc{grid-column:1/-1;width:100%;min-height:43px}
.motion-actions .btn-ghost{min-height:39px;padding:8px 10px;font-size:11.5px}
.motion-actions button:disabled{opacity:.35;cursor:not-allowed;transform:none}
.motion-easing{margin-top:10px}
.timeline-project-settings{margin-top:6px;border:1px solid var(--line2);border-radius:13px;background:#12151c;overflow:hidden}
.timeline-project-settings summary{padding:12px 13px;color:var(--ink);font-size:12.5px;font-weight:750;cursor:pointer;list-style:none}
.timeline-project-settings summary::-webkit-details-marker{display:none}
.timeline-project-settings summary::after{content:"+";float:right;color:var(--mut);font-size:17px;line-height:12px}
.timeline-project-settings[open] summary::after{content:"–"}
.timeline-project-settings[open] summary{border-bottom:1px solid var(--line2)}
.timeline-project-settings>.ctrl,.timeline-project-settings>.chips{margin:12px}

@media (max-width:430px){
  .timeline-ruler{margin-left:82px}
  .timeline-track-row{grid-template-columns:74px minmax(0,1fr);gap:5px}
  .timeline-track-label strong{font-size:9.5px}.timeline-track-label small{font-size:7.8px}
  .timeline-tracks{max-height:220px}
  .timeline-fades{grid-template-columns:1fr}
}

/* ---------- Medienkarussell & Zeitleiste unter der Vorschau (v1.5.0) ---------- */
.editor{
  padding-bottom:calc(154px + var(--safe-b));
  overflow:hidden;
}
.stage{
  min-height:150px;
  padding:10px 10px 10px 76px;
}
.playbar{
  position:relative;
  left:auto;right:auto;bottom:auto;z-index:20;
  width:100%;margin:0;border-left:0;border-right:0;border-radius:0;
  padding:7px 12px;background:rgba(12,14,20,.96);
  box-shadow:none;backdrop-filter:blur(12px);
}
.playbar .round{width:40px;height:40px}
.playbar .round svg{width:18px;height:18px}
.playbar .frame-count{min-width:48px;font-size:12px}
.under-stage-workspace{
  flex:0 0 auto;max-height:min(43vh,430px);overflow-y:auto;overflow-x:hidden;
  background:linear-gradient(180deg,#11131a,#0f1117);border-top:1px solid var(--line);
  overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;
}
.media-library{padding:9px 0 8px;border-bottom:1px solid var(--line)}
.media-library-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px 8px;
}
.media-library-head>div{min-width:0;display:flex;flex-direction:column;gap:1px}
.media-library-head strong{font-size:12.5px;color:var(--ink)}
.media-library-head span{font-size:9.5px;color:var(--mut);line-height:1.25}
.media-library-add{
  flex:0 0 auto;min-height:34px;padding:7px 10px;border:1px solid #555d70;border-radius:11px;
  display:flex;align-items:center;justify-content:center;background:#20242e;color:#fff;
  font-size:11px;font-weight:750;cursor:pointer;
}
.media-library-add:active{transform:scale(.97);background:#292e3a}
.media-library-scroll{
  display:flex;gap:9px;overflow-x:auto;overflow-y:hidden;padding:1px 12px 5px;
  scroll-snap-type:x proximity;overscroll-behavior-x:contain;touch-action:pan-x;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.media-library-scroll::-webkit-scrollbar{display:none}
.media-library-empty{
  min-width:100%;min-height:70px;padding:13px;border:1px dashed #353b48;border-radius:13px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;
  background:#14171e;color:var(--mut);
}
.media-library-empty strong{font-size:11.5px;color:var(--ink)}
.media-library-empty span{font-size:9.5px}
.media-card{
  position:relative;flex:0 0 112px;scroll-snap-align:start;overflow:hidden;
  border:1px solid #343947;border-radius:13px;background:#181b23;
  box-shadow:0 7px 20px -17px #000;
}
.media-card.active-background{border-color:#4de0ba;box-shadow:0 0 0 1px rgba(77,224,186,.24) inset}
.media-card.active-source{border-color:#5dcbff}
.media-card-preview{
  position:relative;width:100%;height:64px;overflow:hidden;background:
  repeating-conic-gradient(#20242d 0 25%,#181b22 0 50%) 50%/12px 12px;
}
.media-card-preview img,.media-card-preview video{
  width:100%;height:100%;display:block;object-fit:cover;pointer-events:none;
}
.media-card-kind{
  position:absolute;top:5px;left:5px;padding:2px 5px;border-radius:6px;
  background:rgba(0,0,0,.72);color:#fff;font-size:8px;font-weight:850;letter-spacing:.04em;
}
.media-card-current{
  position:absolute;top:5px;right:5px;width:18px;height:18px;border-radius:50%;
  display:grid;place-items:center;background:#42d9b5;color:#071612;font-size:11px;font-weight:900;
}
.media-card-copy{padding:6px 7px 5px;min-width:0}
.media-card-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9.5px;font-weight:700;color:var(--ink)}
.media-card-meta{display:block;margin-top:1px;font-size:8px;color:var(--mut2)}
.media-card-use{
  width:calc(100% - 10px);min-height:29px;margin:0 5px 6px;border:0;border-radius:9px;
  background:linear-gradient(135deg,#23836f,#2ebf9f);color:#fff;font-size:9.5px;font-weight:800;cursor:pointer;
}
.media-card-use:active{transform:scale(.96)}
.media-card.active-background .media-card-use{background:#26312f;color:#8ff1d8}
.timeline-under-stage{border-bottom:1px solid var(--line)}
.timeline-under-head{
  display:flex;align-items:center;gap:8px;min-height:46px;padding:5px 10px;background:#13161d;
  position:sticky;top:0;z-index:7;border-bottom:1px solid #262b35;
}
.timeline-collapse{
  min-width:0;flex:1;display:flex;align-items:center;gap:9px;padding:5px 4px;border:0;
  background:transparent;color:var(--ink);text-align:left;cursor:pointer;
}
.timeline-collapse-icon{
  width:26px;height:26px;min-width:26px;border-radius:8px;display:grid;place-items:center;
  background:#242833;color:#ff79a7;font-size:18px;transition:transform .18s ease;
}
.timeline-collapse>span:last-child{min-width:0;display:flex;flex-direction:column;gap:1px}
.timeline-collapse strong{font-size:12.5px}
.timeline-collapse small{font-size:9px;color:var(--mut);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.timeline-under-stage.collapsed .timeline-collapse-icon{transform:rotate(-90deg)}
.timeline-body{display:block;padding:7px 8px 8px}
.timeline-under-stage.collapsed .timeline-body{display:none}
.timeline-body .timeline-studio{margin:0;padding:7px;border-radius:12px;background:#10131a}
.timeline-body .timeline-studio-head{margin-bottom:5px}
.timeline-body .timeline-studio-head strong{font-size:11.5px}
.timeline-body .timeline-tracks{max-height:145px;gap:5px}
.timeline-body .timeline-track-row{padding:2px}
.timeline-body .timeline-track-rail{height:31px}
.timeline-body .timeline-ruler{padding-top:15px}
.timeline-panel-note{
  display:flex;flex-direction:column;gap:3px;margin:0 0 12px;padding:11px 12px;
  border:1px solid #384557;border-radius:13px;background:#151b24;
}
.timeline-panel-note strong{font-size:12.5px;color:var(--ink)}
.timeline-panel-note span{font-size:10.5px;line-height:1.35;color:var(--mut)}
.layers-bar{bottom:calc(86px + var(--safe-b))}

@media (max-width:430px){
  .editor{padding-bottom:calc(150px + var(--safe-b))}
  .stage{padding-left:70px;padding-bottom:8px}
  .under-stage-workspace{max-height:min(45vh,390px)}
  .media-library-head>div span{max-width:215px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .media-card{flex-basis:104px}
  .media-card-preview{height:59px}
  .timeline-under-head{padding-left:8px;padding-right:8px}
  .timeline-under-head .btn-ghost.compact{min-height:34px;padding:6px 9px;font-size:10.5px}
  .timeline-body{padding-left:5px;padding-right:5px}
  .timeline-body .timeline-ruler{margin-left:78px}
  .timeline-body .timeline-track-row{grid-template-columns:70px minmax(0,1fr);gap:4px}
  .timeline-body .timeline-track-label strong{font-size:9px}
  .timeline-body .timeline-track-label small{font-size:7.3px}
}
@media (max-height:720px){
  .under-stage-workspace{max-height:39vh}
  .media-library{padding-top:6px;padding-bottom:5px}
  .media-card-preview{height:52px}
  .timeline-body .timeline-tracks{max-height:105px}
}
@media (orientation:landscape) and (max-height:650px){
  .editor{padding-bottom:calc(92px + var(--safe-b))}
  .stage{padding-bottom:6px}
  .under-stage-workspace{max-height:47vh}
  .media-library-head>div span{display:none}
  .media-library-scroll{padding-bottom:3px}
  .media-card{flex-basis:96px}
  .media-card-preview{height:44px}
  .media-card-copy{padding-top:4px;padding-bottom:3px}
  .media-card-use{min-height:25px;margin-bottom:4px}
  .timeline-body .timeline-tracks{max-height:82px}
}
@media (min-width:760px){
  .editor{display:flex;flex-direction:column;flex-wrap:nowrap}
  .stage{order:initial;flex:1 1 auto;padding:14px 14px 10px 86px}
  .playbar,.under-stage-workspace{order:initial;max-width:none;left:auto;right:auto}
  .under-stage-workspace{width:100%;max-height:min(40vh,410px)}
  .media-library-scroll{padding-left:18px;padding-right:18px}
  .timeline-body{padding-left:18px;padding-right:18px}
  .timeline-body .timeline-studio{max-width:1050px;margin:0 auto}
}

/* Werkzeugdock bleibt vollständig innerhalb des Vorschaufensters. */
.tool-dock{
  top:calc(var(--safe-t) + 64px);left:8px;
  display:grid;grid-template-columns:repeat(2,46px);gap:5px;
  width:97px;max-height:150px;
}
.tool-dock .tab{
  width:46px;min-height:46px;padding:5px 2px 4px;border-radius:13px;
}
.tool-dock .tab svg{width:17px;height:17px}
.tool-dock .tab span{font-size:8px;line-height:1}
.stage{padding-left:108px}
.media-card{flex-basis:106px}
.media-card-preview{height:54px}
.media-card-copy{padding:5px 6px 4px}
.media-card-use{min-height:27px;margin-bottom:5px;font-size:9px}

@media (max-width:430px){
  .tool-dock{top:calc(var(--safe-t) + 62px);left:7px;grid-template-columns:repeat(2,44px);width:93px}
  .tool-dock .tab{width:44px;min-height:44px;padding:4px 1px;border-radius:12px}
  .tool-dock .tab svg{width:16px;height:16px}
  .tool-dock .tab span{font-size:7.6px}
  .stage{padding-left:102px}
  .media-card{flex-basis:101px}
  .media-card-preview{height:50px}
}
@media (orientation:landscape) and (max-height:650px){
  .tool-dock{grid-template-columns:repeat(3,42px);width:136px;max-height:92px}
  .tool-dock .tab{width:42px;min-height:40px}
  .stage{padding-left:145px}
}

/* Kompakte mobile Anordnung: beide Medien- und Animationsspuren bleiben sichtbar. */
.media-library{padding-top:7px;padding-bottom:6px}
.media-library-head{padding-bottom:6px}
.media-library-head span{font-size:9px}
.media-card-preview{height:46px}
.media-card-copy{padding-top:4px;padding-bottom:3px}
.media-card-use{min-height:25px;margin-bottom:4px}
.timeline-under-head{min-height:42px;padding-top:3px;padding-bottom:3px}
.timeline-body{padding-top:5px;padding-bottom:5px}
.timeline-body .timeline-studio{padding:6px}
.timeline-body .timeline-studio-head{margin-bottom:2px}
.timeline-body .timeline-studio-head .btn-ghost.compact{min-height:32px;padding:5px 9px;font-size:10.5px}
.timeline-body .timeline-ruler{padding-top:13px}
.timeline-body .timeline-ruler-line{height:8px}
.timeline-body .timeline-tracks{max-height:112px;gap:3px;margin-top:2px}
.timeline-body .timeline-track-row{min-height:29px}
.timeline-body .timeline-track-rail{height:27px}
.timeline-body .timeline-range-bar{top:5px;height:16px}
.timeline-body .timeline-range-handle{top:-4px;height:24px}
.timeline-body .timeline-key-marker{top:4px}

@media (max-width:430px){
  .media-card-preview{height:44px}
  .media-library-head{padding-top:0}
  .timeline-under-head{min-height:40px}
}

/* =========================================================
   GifWerk 1.6.0 – Große, übersichtliche Studio-Arbeitsfläche
   ========================================================= */

/* Die Vorschau ist wieder der Hauptbereich. Alte Fullscreen-Abstände werden
   gezielt überschrieben, ohne Zeitleiste, Medienarchiv oder Export zu verändern. */
body.editor-page .topbar{
  min-height:48px;
  padding:calc(var(--safe-t) + 6px) 12px 6px;
  background:rgba(12,14,19,.96);
}
body.editor-page .brand{font-size:18px}

.editor{
  position:relative;
  flex:1 1 auto;
  min-height:0;
  padding-bottom:calc(70px + var(--safe-b));
  background:#0b0d12;
}

.stage{
  order:1;
  flex:1 1 0;
  min-height:250px;
  width:100%;
  padding:60px 8px 68px;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%,rgba(255,61,127,.055),transparent 42%),
    repeating-conic-gradient(#16181f 0% 25%,#1b1e26 0% 50%) 50%/22px 22px;
}
#preview{
  width:auto;
  height:auto;
  max-width:calc(100% - 8px);
  max-height:100%;
  border-radius:8px;
  box-shadow:0 0 0 1px rgba(255,255,255,.12),0 22px 54px -28px #000;
}

/* Klarer Schnellzugriff am oberen Rand der Arbeitsfläche. */
.stage-quick-tools{
  top:8px;
  left:50%;
  transform:translateX(-50%);
  width:auto;
  max-width:calc(100% - 16px);
  gap:4px;
  padding:4px;
  border-radius:14px;
  background:rgba(8,10,14,.9);
  box-shadow:0 12px 34px -24px #000;
}
.stage-quick{
  min-width:74px;
  height:36px;
  padding:0 9px;
  border-radius:10px;
  font-size:10.5px;
}
.stage-quick.focus-toggle{min-width:64px}
.stage-quick.focus-toggle.active{
  background:#17332d;
  color:#a7ffe4;
  box-shadow:inset 0 0 0 1px rgba(83,231,188,.45);
}
.stage-hint{
  top:50px;
  max-width:calc(100% - 24px);
  font-size:10px;
  padding:4px 9px;
  background:rgba(0,0,0,.48);
}

/* Werkzeugleiste liegt jetzt horizontal in der Vorschau. Dadurch geht links
   kein Arbeitsraum mehr verloren und alle Werkzeuge bleiben mit einer Hand erreichbar. */
.tool-dock{
  position:absolute;
  z-index:26;
  top:auto;
  right:auto;
  bottom:10px;
  left:50%;
  transform:translateX(-50%);
  display:grid;
  grid-template-columns:repeat(6,46px);
  gap:5px;
  width:auto;
  max-width:calc(100% - 16px);
  max-height:none;
  padding:5px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:16px;
  background:rgba(10,12,17,.9);
  backdrop-filter:blur(15px);
  box-shadow:0 14px 38px -24px #000;
}
.tool-dock .tab{
  width:46px;
  min-height:44px;
  padding:5px 2px 4px;
  border:0;
  border-radius:11px;
  background:transparent;
  box-shadow:none;
}
.tool-dock .tab svg{width:17px;height:17px}
.tool-dock .tab span{font-size:8px;line-height:1}
.tool-dock .tab.active{
  background:linear-gradient(180deg,#ff4384,#cf256a);
  color:#fff;
  border:0;
}
.editor.sidebar-open .tool-dock{
  opacity:1;
  pointer-events:auto;
  transform:translateX(-50%);
}

.playbar{
  order:2;
  position:relative;
  left:auto;
  right:auto;
  bottom:auto;
  z-index:20;
  width:100%;
  min-height:48px;
  margin:0;
  padding:5px 10px;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:#11141b;
  box-shadow:none;
}
.playbar .round{width:38px;height:38px}
.playbar .round svg{width:17px;height:17px}

/* Medien und Zeitleiste bleiben direkt unter der Vorschau, sind jedoch deutlich
   kompakter. Der Bereich scrollt intern, statt die Arbeitsfläche zusammenzudrücken. */
.under-stage-workspace{
  order:3;
  flex:0 0 auto;
  width:100%;
  max-height:min(34dvh,286px);
  overflow-y:auto;
  overflow-x:hidden;
  background:#0f1117;
  border-top:0;
  border-bottom:1px solid var(--line);
  scrollbar-width:thin;
}
.media-library{
  padding:6px 0 5px;
  border-bottom:1px solid var(--line);
}
.media-library-head{
  min-height:34px;
  padding:0 10px 5px;
  gap:8px;
}
.media-library-head strong{font-size:12px}
.media-library-head span{font-size:8.8px}
.media-library-add{
  min-height:30px;
  padding:5px 9px;
  border-radius:9px;
  font-size:10px;
}
.media-library-scroll{
  gap:7px;
  padding:1px 10px 3px;
}
.media-library-empty{
  min-height:56px;
  padding:9px;
}
.media-card{
  flex-basis:92px;
  border-radius:11px;
}
.media-card-preview{height:42px}
.media-card-copy{padding:4px 5px 3px}
.media-card-name{font-size:8.8px}
.media-card-meta{display:none}
.media-card-use{
  width:calc(100% - 8px);
  min-height:24px;
  margin:0 4px 4px;
  border-radius:7px;
  font-size:8.5px;
}

.timeline-under-head{
  position:sticky;
  top:0;
  min-height:38px;
  padding:3px 8px;
  background:#12151c;
}
.timeline-collapse{gap:7px;padding:3px}
.timeline-collapse-icon{
  width:24px;
  height:24px;
  min-width:24px;
  border-radius:7px;
  font-size:16px;
}
.timeline-collapse strong{font-size:11.5px}
.timeline-collapse small{font-size:8.4px}
.timeline-under-head .btn-ghost.compact{
  min-height:30px;
  padding:5px 8px;
  font-size:9.5px;
}
.timeline-body{padding:4px 6px 6px}
.timeline-body .timeline-studio{
  padding:5px;
  border-radius:10px;
}
.timeline-body .timeline-studio-head{margin-bottom:1px}
.timeline-body .timeline-studio-head strong{font-size:10.5px}
.timeline-body .timeline-studio-head .btn-ghost.compact{
  min-height:28px;
  padding:4px 8px;
  font-size:9.5px;
}
.timeline-body .timeline-ruler{padding-top:12px}
.timeline-body .timeline-tracks{
  max-height:94px;
  gap:3px;
  margin-top:1px;
}
.timeline-body .timeline-track-row{min-height:27px;padding:1px}
.timeline-body .timeline-track-rail{height:25px}
.timeline-body .timeline-range-bar{top:5px;height:15px}
.timeline-body .timeline-range-handle{top:-4px;height:23px}
.timeline-body .timeline-key-marker{top:3px}

/* Feste Aktionsleiste ist niedriger, bleibt aber jederzeit erreichbar. */
.action-bar{
  min-height:70px;
  padding:8px 10px calc(8px + var(--safe-b));
}
.btn-make{
  min-height:50px;
  padding:11px 14px;
  border-radius:13px;
  font-size:15px;
}
.action-bar .btn-ghost{
  min-height:50px;
  padding:10px 14px;
}
.layers-bar{bottom:calc(70px + var(--safe-b))}

/* Echte Großansicht: nur Arbeitsfläche und Wiedergabe bleiben sichtbar.
   Mit demselben Button oder Escape kehrt man zur kompletten Studioansicht zurück. */
body.preview-focus .topbar,
body.preview-focus .under-stage-workspace,
body.preview-focus .action-bar,
body.preview-focus .layers-bar{
  display:none !important;
}
body.preview-focus .editor{
  padding-bottom:0;
}
body.preview-focus .stage{
  min-height:0;
  flex:1 1 auto;
  padding:calc(var(--safe-t) + 58px) 8px 70px;
  border-bottom:0;
}
body.preview-focus .playbar{
  flex:0 0 auto;
  padding-bottom:calc(6px + var(--safe-b));
  border-top:1px solid var(--line);
}
body.preview-focus .stage-quick-tools{top:calc(var(--safe-t) + 7px)}
body.preview-focus .stage-hint{top:calc(var(--safe-t) + 49px)}
body.preview-focus .panels-drawer{
  top:var(--safe-t);
  bottom:0;
}
body.preview-focus .sidebar-backdrop{
  inset:var(--safe-t) 0 0 0;
}

@media (max-width:540px){
  .stage{
    min-height:240px;
    padding:56px 6px 65px;
  }
  .stage-quick-tools{
    top:7px;
    left:50%;
    max-width:calc(100% - 12px);
  }
  .stage-quick{
    min-width:42px;
    width:42px;
    height:34px;
    padding:0;
  }
  .stage-quick span{display:none}
  .stage-quick svg{width:18px;height:18px}
  .stage-quick.focus-toggle{min-width:42px}
  .stage-hint{top:46px}
  .tool-dock{
    grid-template-columns:repeat(6,42px);
    gap:4px;
    padding:4px;
    bottom:8px;
  }
  .tool-dock .tab{
    width:42px;
    min-height:41px;
    padding:4px 1px 3px;
  }
  .tool-dock .tab svg{width:16px;height:16px}
  .tool-dock .tab span{font-size:7.3px}
  .under-stage-workspace{max-height:min(35dvh,252px)}
  .media-library-head>div span{display:none}
  .timeline-body .timeline-ruler{margin-left:72px}
  .timeline-body .timeline-track-row{grid-template-columns:65px minmax(0,1fr);gap:3px}
  .timeline-body .timeline-track-label strong{font-size:8.5px}
  .timeline-body .timeline-track-label small{font-size:7px}
}

@media (max-width:360px){
  .tool-dock{
    grid-template-columns:repeat(6,38px);
    gap:3px;
  }
  .tool-dock .tab{width:38px;min-height:39px}
  .media-card{flex-basis:86px}
}

@media (orientation:landscape) and (max-height:650px){
  .editor{padding-bottom:calc(60px + var(--safe-b))}
  .stage{
    min-height:0;
    padding:48px 8px 56px;
  }
  .stage-quick-tools{top:5px}
  .stage-hint{display:none}
  .tool-dock{
    grid-template-columns:repeat(6,38px);
    bottom:5px;
  }
  .tool-dock .tab{width:38px;min-height:37px}
  .tool-dock .tab span{font-size:6.8px}
  .playbar{min-height:42px;padding-top:3px;padding-bottom:3px}
  .playbar .round{width:34px;height:34px}
  .under-stage-workspace{max-height:min(37dvh,190px)}
  .media-library{padding-top:3px;padding-bottom:3px}
  .media-library-head{min-height:29px;padding-bottom:3px}
  .media-card-preview{height:35px}
  .timeline-body .timeline-tracks{max-height:66px}
  .action-bar{min-height:60px;padding-top:5px;padding-bottom:calc(5px + var(--safe-b))}
  .btn-make,.action-bar .btn-ghost{min-height:44px}
  .layers-bar{bottom:calc(60px + var(--safe-b))}
}

@media (min-width:760px){
  .stage{
    min-height:360px;
    padding:62px 18px 72px;
  }
  .tool-dock{grid-template-columns:repeat(6,52px)}
  .tool-dock .tab{width:52px;min-height:47px}
  .under-stage-workspace{max-height:min(31dvh,300px)}
  .media-library-scroll{padding-left:16px;padding-right:16px}
  .timeline-body{padding-left:16px;padding-right:16px}
}

/* =========================================================
   GifWerk 1.7 – Ein Upload, Medien-Inspector, maximale Vorschau
   ========================================================= */
.global-upload-btn{
  min-height:38px;padding:8px 12px;border:0;border-radius:12px;
  display:inline-flex;align-items:center;gap:7px;cursor:pointer;
  background:linear-gradient(135deg,var(--acc),#c62878);color:#fff;
  font-size:12px;font-weight:800;box-shadow:0 8px 24px -14px var(--acc)
}
.global-upload-btn svg{width:18px;height:18px;stroke-width:2.2}
.global-upload-btn:active{transform:scale(.97)}
.top-actions{align-items:center;gap:3px}
.loader-inner{max-width:390px}
.loader-upload-hint{
  display:flex;align-items:center;justify-content:center;gap:10px;
  margin:14px 0 8px;padding:13px 15px;border:1px solid rgba(255,61,127,.38);
  border-radius:14px;background:rgba(255,61,127,.08);color:#fff
}
.loader-upload-hint span{
  width:28px;height:28px;border-radius:50%;display:grid;place-items:center;
  background:var(--acc);font-weight:900
}
.loader-upload-hint b{font-size:14px}

/* Die Vorschau beansprucht den gesamten verbleibenden Raum. */
.editor{padding-bottom:0!important}
.stage{
  order:1;flex:1 1 auto;min-height:300px;
  padding:48px 8px 58px!important;border-bottom:0
}
.playbar{order:2;min-height:44px!important;padding:3px 9px!important}
.playbar .round{width:36px;height:36px}
.under-stage-workspace{
  order:3;flex:0 0 auto;max-height:128px!important;overflow:hidden!important;
  background:#0f1117
}
.timeline-under-stage:not(.collapsed) .timeline-body{display:block}
.timeline-under-stage:not(.collapsed){max-height:30dvh;overflow:auto}
.under-stage-workspace:has(.timeline-under-stage:not(.collapsed)){
  max-height:min(36dvh,310px)!important;overflow-y:auto!important
}
.media-library{padding:4px 0 4px!important}
.media-library-head{min-height:28px!important;padding:0 9px 3px!important}
.media-library-head strong{font-size:11px!important}
.media-library-head>div span{font-size:8px!important}
.media-library-tip{
  flex:0 0 auto;padding:4px 7px;border-radius:999px;
  background:#262a35;color:var(--mut);font-size:8px!important;font-weight:800
}
.media-library-scroll{gap:7px!important;padding:1px 9px 3px!important;scroll-snap-type:x proximity}
.media-card{
  appearance:none;-webkit-appearance:none;text-align:left;color:inherit;font:inherit;
  flex:0 0 88px!important;min-width:88px;border:1px solid var(--line2);
  padding:0;background:#171a22;cursor:pointer;scroll-snap-align:start;
  border-radius:11px!important;overflow:hidden
}
.media-card.selected{
  border-color:var(--acc)!important;box-shadow:0 0 0 2px rgba(255,61,127,.22)!important
}
.media-card:active{transform:scale(.97)}
.media-card-preview{height:38px!important}
.media-card-copy{padding:3px 5px 4px!important}
.media-card-name{font-size:8.4px!important}
.media-card-meta{display:block!important;font-size:6.8px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.media-card-current{width:17px!important;height:17px!important;font-size:10px!important}
.media-card-use{display:none!important}
.timeline-under-head{min-height:34px!important;padding:2px 7px!important}
.timeline-collapse-icon{width:22px!important;height:22px!important;min-width:22px!important}
.timeline-collapse strong{font-size:10.5px!important}
.timeline-collapse small{display:none}
.timeline-under-head .btn-ghost.compact{min-height:27px!important;padding:4px 7px!important;font-size:8.5px!important}
.action-bar{order:4;min-height:58px!important;padding:5px 8px calc(5px + var(--safe-b))!important}
.btn-make,.action-bar .btn-ghost{min-height:44px!important}
.layers-bar{bottom:calc(58px + var(--safe-b))!important}

/* Nur zwei Schnellaktionen oben und ein schmales Werkzeugdock unten. */
.stage-quick-tools{
  top:7px!important;left:auto!important;right:8px!important;transform:none!important;
  gap:5px!important;max-width:none!important
}
.stage-quick{height:34px!important;min-width:42px!important;padding:0 9px!important}
.stage-quick span{font-size:9px!important}
.tool-dock{
  position:absolute!important;left:50%!important;right:auto!important;top:auto!important;bottom:7px!important;
  transform:translateX(-50%)!important;display:grid!important;
  grid-template-columns:repeat(5,48px)!important;width:auto!important;max-height:none!important;
  gap:4px!important;padding:4px!important;border:1px solid rgba(255,255,255,.09)!important;
  border-radius:15px!important;background:rgba(15,17,23,.88)!important;backdrop-filter:blur(12px)
}
.tool-dock .tab{width:48px!important;min-height:42px!important;padding:4px 1px!important;border-radius:11px!important}
.tool-dock .tab svg{width:16px!important;height:16px!important}
.tool-dock .tab span{font-size:7px!important}
.editor.sidebar-open .tool-dock{opacity:1!important;pointer-events:auto!important;transform:translateX(-50%)!important}
.stage-hint{top:8px!important;left:8px!important;right:112px!important;transform:none!important;text-align:left;overflow:hidden;text-overflow:ellipsis}

/* Kontextbezogener Medien-Inspector. */
.media-inspector-empty{
  padding:22px 14px;text-align:center;border:1px dashed var(--line2);
  border-radius:16px;background:#12151c
}
.media-inspector-empty strong{display:block;margin:8px 0 4px;font-size:16px}
.media-inspector-empty p{margin:0;color:var(--mut);font-size:12px;line-height:1.5}
.media-inspector-step{
  width:36px;height:36px;margin:auto;border-radius:50%;display:grid;place-items:center;
  background:var(--acc);font-size:18px;font-weight:900
}
.media-inspector{display:flex;flex-direction:column;gap:12px}
.media-inspector-head{
  display:grid;grid-template-columns:76px minmax(0,1fr);gap:11px;align-items:center;
  padding:9px;border:1px solid var(--line2);border-radius:15px;background:#11141b
}
.media-inspector-preview{height:64px;border-radius:11px;overflow:hidden;background:#090b10}
.media-inspector-preview img,.media-inspector-preview video{width:100%;height:100%;object-fit:cover;display:block}
.media-inspector-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.media-inspector-copy>span{font-size:9px;font-weight:900;color:var(--acc);letter-spacing:.08em}
.media-inspector-copy strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.media-inspector-copy small{font-size:10px;color:var(--mut)}
.media-role-status{
  padding:8px 10px;border-radius:10px;background:#252832;color:var(--mut);
  font-size:10px;font-weight:700
}
.media-role-status.active{background:rgba(45,226,230,.1);color:var(--ok)}
.simple-section{display:flex;flex-direction:column;gap:8px}
.simple-section>strong{font-size:12px}
.media-role-grid,.media-setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.simple-action,.setting-jump{
  min-width:0;min-height:72px;padding:10px;border:1px solid var(--line2);border-radius:13px;
  background:#171a22;color:var(--ink);text-align:left;cursor:pointer
}
.simple-action{display:flex;align-items:center;gap:9px}
.simple-action-icon{
  flex:0 0 32px;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;
  background:#292d38;color:var(--acc);font-size:16px;font-weight:900
}
.simple-action>span:last-child,.setting-jump{display:flex;flex-direction:column;gap:2px}
.simple-action b,.setting-jump b{font-size:11.5px}
.simple-action small,.setting-jump small{font-size:8.5px;line-height:1.3;color:var(--mut)}
.simple-action.active{border-color:var(--ok);background:rgba(45,226,230,.08)}
.simple-action:disabled,.setting-jump:disabled{opacity:.38;cursor:not-allowed}
.setting-jump>span{font-size:18px;color:var(--acc);line-height:1}
.setting-jump:active,.simple-action:active:not(:disabled){transform:scale(.98)}
.simple-info-card{padding:12px!important}

/* Drawer liegt über der Vorschau und verändert deren Größe nicht. */
.panels-drawer{width:min(92vw,390px)!important}
.panels{max-height:none!important}

@media (max-width:540px){
  .topbar{padding:calc(var(--safe-t) + 5px) 9px 5px}
  .brand{font-size:17px}
  .global-upload-btn{min-height:35px;padding:7px 10px;font-size:11px}
  .global-upload-btn svg{width:16px;height:16px}
  .stage{min-height:285px;padding:43px 5px 54px!important}
  .stage-hint{right:102px!important;font-size:9px!important;padding:4px 7px!important}
  .stage-quick{width:auto!important;min-width:38px!important;height:31px!important;padding:0 7px!important}
  .stage-quick span{display:none!important}
  .tool-dock{grid-template-columns:repeat(5,43px)!important;gap:3px!important}
  .tool-dock .tab{width:43px!important;min-height:39px!important}
  .under-stage-workspace{max-height:118px!important}
  .media-library-head>div span{display:none!important}
  .media-card{flex-basis:82px!important;min-width:82px!important}
  .media-card-preview{height:35px!important}
  .media-role-grid,.media-setting-grid{grid-template-columns:1fr}
  .simple-action,.setting-jump{min-height:62px}
}

@media (orientation:landscape) and (max-height:650px){
  .stage{min-height:0!important;padding:39px 6px 49px!important}
  .under-stage-workspace{max-height:96px!important}
  .media-library-head{display:none!important}
  .media-card-preview{height:30px!important}
  .timeline-under-head{min-height:29px!important}
  .action-bar{min-height:50px!important}
  .btn-make,.action-bar .btn-ghost{min-height:39px!important}
  .layers-bar{bottom:calc(50px + var(--safe-b))!important}
}

@media (min-width:760px){
  .stage{min-height:430px;padding:52px 14px 62px!important}
  .under-stage-workspace{max-height:132px!important}
  .media-card{flex-basis:98px!important;min-width:98px!important}
  .panels-drawer{width:min(40vw,410px)!important}
}

.simple-action.selected-role{outline:2px solid var(--acc);outline-offset:1px}
.top-export-btn{
  min-height:36px;padding:7px 9px;border:1px solid var(--line2);border-radius:11px;
  display:inline-flex;align-items:center;gap:5px;background:#1b1e27;color:var(--ink);
  font-size:10px;font-weight:900;cursor:pointer
}
.top-export-btn svg{width:16px;height:16px;color:var(--ok)}
.top-export-btn:active{transform:scale(.97);background:#252a35}
.action-bar{display:none!important}
.layers-bar{bottom:calc(8px + var(--safe-b))!important}
@media (max-width:360px){
  .top-export-btn span{display:none}
  .top-export-btn{width:34px;padding:0;justify-content:center}
  .global-upload-btn{padding-left:8px;padding-right:8px}
}

/* =========================================================
   GifWerk 1.7.1 – integrierte Ebenenleiste unter der Vorschau
   Die Ebenenauswahl ist Teil des normalen Layoutflusses und
   kann Medienleiste oder Zeitleiste nicht mehr überdecken.
   ========================================================= */
.under-stage-workspace > .layers-bar{
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  z-index:4!important;
  width:100%!important;
  min-height:42px;
  margin:0!important;
  padding:4px 7px!important;
  gap:6px!important;
  border:0!important;
  border-top:1px solid var(--line)!important;
  border-bottom:1px solid var(--line)!important;
  border-radius:0!important;
  background:#11141b!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.under-stage-workspace > .layers-bar.hidden{display:none!important}
.layers-caption{
  flex:0 0 auto;
  padding:0 2px;
  color:var(--mut2);
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
}
.under-stage-workspace .layers-scroll{
  min-width:0;
  gap:5px;
  padding:0;
  scrollbar-width:none;
}
.under-stage-workspace .layers-scroll::-webkit-scrollbar{display:none}
.under-stage-workspace .layer-pill{
  min-height:32px;
  max-width:124px;
  gap:5px;
  padding:4px 8px;
  border-radius:9px;
  font-size:10px;
  line-height:1.05;
}
.under-stage-workspace .layer-pill .dot{width:7px;height:7px}
.under-stage-workspace .layer-pill small{
  max-width:72px;
  margin:0;
  font-size:7.5px;
  line-height:1.05;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.under-stage-workspace .layer-del{
  width:34px;
  height:34px;
  min-width:34px;
  border-radius:9px;
}
.under-stage-workspace .layer-del svg{width:17px;height:17px}
.under-stage-workspace .layer-del.disabled{
  opacity:.35;
  pointer-events:none;
}

/* Genug Platz für Medien, Ebenen und den Kopf der Zeitleiste,
   ohne die große Vorschau unnötig zu verkleinern. */
.under-stage-workspace{
  max-height:164px!important;
  overflow:hidden!important;
}
.under-stage-workspace:has(.timeline-under-stage:not(.collapsed)){
  max-height:min(42dvh,360px)!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain;
}
.timeline-under-stage{
  position:relative;
  z-index:1;
}

@media (max-width:540px){
  .under-stage-workspace{max-height:156px!important}
  .under-stage-workspace:has(.timeline-under-stage:not(.collapsed)){
    max-height:min(43dvh,350px)!important;
  }
  .under-stage-workspace .layer-pill{max-width:112px;padding-left:7px;padding-right:7px}
  .under-stage-workspace .layer-pill small{max-width:61px}
}

@media (max-width:360px){
  .layers-caption{display:none}
  .under-stage-workspace > .layers-bar{padding-left:5px!important;padding-right:5px!important}
  .under-stage-workspace .layer-pill{max-width:103px;font-size:9.5px}
}

@media (orientation:landscape) and (max-height:650px){
  .under-stage-workspace{max-height:132px!important}
  .under-stage-workspace:has(.timeline-under-stage:not(.collapsed)){
    max-height:min(48dvh,280px)!important;
  }
  .under-stage-workspace > .layers-bar{min-height:36px;padding-top:2px!important;padding-bottom:2px!important}
  .under-stage-workspace .layer-pill{min-height:30px}
  .under-stage-workspace .layer-del{width:30px;height:30px;min-width:30px}
}

/* Mobile Kompaktansicht: Medien-Überschrift wird als schmale Seitenmarke
   in dieselbe Leiste integriert. Dadurch bleibt auch der Zeitleistenkopf
   sichtbar, ohne dass die Vorschau kleiner werden muss. */
@media (max-width:540px) and (orientation:portrait){
  .media-library-head{display:none!important}
  .media-library{padding:4px 0!important}
  .media-library-scroll{align-items:stretch;padding-top:1px!important;padding-bottom:3px!important}
  .media-library-scroll::before{
    content:"Medien";
    flex:0 0 14px;
    align-self:stretch;
    display:grid;
    place-items:center;
    color:var(--mut2);
    font-size:7px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
    writing-mode:vertical-rl;
    transform:rotate(180deg);
  }
  .under-stage-workspace{max-height:160px!important}
}

@media (min-width:541px){
  .under-stage-workspace{max-height:192px!important}
}

/* =========================================================
   GifWerk 1.7.2 – sichtbare Ebenen-Reihenfolge
   Hintergrund bleibt fest unten; alle übrigen Ebenen lassen
   sich in Vorschau, Trefferlogik, Zeitleiste und Export ordnen.
   ========================================================= */
.under-stage-workspace .layer-pill{
  appearance:none;
  color:var(--ink);
  text-align:left;
}
.under-stage-workspace .layer-pill-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:1px;
  overflow:hidden;
}
.under-stage-workspace .layer-pill-copy b{
  max-width:70px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:10px;
  line-height:1.05;
}
.under-stage-workspace .layer-z{
  flex:0 0 auto;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border-radius:7px;
  display:grid;
  place-items:center;
  background:#303442;
  color:#d9deec;
  font-size:8px;
  font-weight:900;
  line-height:1;
}
.under-stage-workspace .layer-pill.active .layer-z{
  background:var(--acc);
  color:#fff;
}
.under-stage-workspace .layer-pill.background-layer .layer-z{
  min-width:26px;
  background:#20323a;
  color:#9fe8ff;
  font-size:7px;
}
.under-stage-workspace .layer-pill.backmost:not(.frontmost) .layer-z::after{
  content:"";
}
.layer-order-toggle{
  flex:0 0 auto;
  width:38px;
  height:34px;
  min-width:38px;
  padding:0;
  border:1px solid #36505c;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:#17242b;
  color:#8fe8ff;
  cursor:pointer;
}
.layer-order-toggle svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.layer-order-toggle span{display:none}
.layer-order-toggle.active{
  border-color:var(--acc);
  background:#2a1722;
  color:#fff;
}
.layer-order-toggle:disabled{opacity:.34;cursor:not-allowed}
.layer-order-panel{
  position:relative;
  z-index:3;
  padding:8px 9px 9px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#151923,#11141b);
}
.layer-order-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:7px;
}
.layer-order-head>div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:1px;
}
.layer-order-head strong{font-size:11px;color:var(--ink)}
.layer-order-head span{
  max-width:100%;
  color:#9fe8ff;
  font-size:9px;
  font-weight:750;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.layer-order-close{
  flex:0 0 auto;
  width:28px;
  height:28px;
  border:1px solid var(--line2);
  border-radius:8px;
  display:grid;
  place-items:center;
  background:#252934;
  color:var(--ink);
  font-size:19px;
  cursor:pointer;
}
.layer-order-actions{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:5px;
}
.layer-order-actions button{
  min-width:0;
  min-height:48px;
  padding:5px 3px;
  border:1px solid var(--line2);
  border-radius:10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1px;
  background:#20242e;
  color:var(--ink);
  cursor:pointer;
}
.layer-order-actions button>span{
  color:var(--acc);
  font-size:18px;
  font-weight:900;
  line-height:1;
}
.layer-order-actions button b{
  max-width:100%;
  font-size:8.5px;
  line-height:1.05;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.layer-order-actions button small{
  max-width:100%;
  color:var(--mut);
  font-size:6.5px;
  line-height:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.layer-order-actions button:active:not(:disabled){transform:scale(.97);background:#292e3a}
.layer-order-actions button:disabled{opacity:.28;cursor:not-allowed}
.layer-order-panel p{
  margin:6px 1px 0;
  color:var(--mut2);
  font-size:7.5px;
  line-height:1.25;
  text-align:center;
}
.under-stage-workspace:has(.layer-order-panel:not(.hidden)){
  max-height:min(36dvh,285px)!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain;
}
@media (min-width:541px){
  .layer-order-toggle{
    width:auto;
    min-width:104px;
    padding:0 10px;
    grid-template-columns:18px auto;
    gap:6px;
  }
  .layer-order-toggle span{display:block;font-size:9px;font-weight:850}
  .under-stage-workspace .layer-pill-copy b{max-width:86px}
  .layer-order-panel{padding-left:14px;padding-right:14px}
  .layer-order-actions button b{font-size:9.5px}
  .layer-order-actions button small{font-size:7.5px}
}
@media (max-width:380px){
  .under-stage-workspace > .layers-bar{gap:4px!important}
  .layer-order-toggle{width:32px;min-width:32px;height:32px}
  .under-stage-workspace .layer-del{width:32px;height:32px;min-width:32px}
  .under-stage-workspace .layer-pill-copy b{max-width:54px}
  .under-stage-workspace .layer-pill{max-width:104px!important}
  .layer-order-actions button{min-height:45px}
  .layer-order-actions button small{display:none}
}
@media (orientation:landscape) and (max-height:650px){
  .layer-order-panel{padding-top:5px;padding-bottom:6px}
  .layer-order-actions button{min-height:39px}
  .layer-order-panel p{display:none}
  .under-stage-workspace:has(.layer-order-panel:not(.hidden)){
    max-height:min(50dvh,240px)!important;
  }
}


/* =========================================================
   GifWerk 2.1.0 – Smartphone Easy Mode
   Klare 3-Schritt-Führung, große Touch-Ziele und vollflächige
   Bearbeitungspanels. Bestehende Editor-Funktionen bleiben erhalten.
   ========================================================= */
button,a,label,summary,input{touch-action:manipulation}
button:focus-visible,a:focus-visible,label:focus-visible,summary:focus-visible,input:focus-visible{
  outline:3px solid rgba(45,226,230,.72);outline-offset:2px
}
.loader-lead{max-width:350px;margin-left:auto!important;margin-right:auto!important}
.loader-steps{display:grid;gap:9px;margin:16px 0}
.loader-step{
  display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;align-items:center;
  padding:11px 12px;border:1px solid var(--line2);border-radius:15px;
  background:#171a22;text-align:left
}
.loader-step>b,.help-steps>div>b{
  width:42px;height:42px;border-radius:13px;display:grid;place-items:center;
  background:#292d38;color:#fff;font-size:18px;font-weight:900
}
.loader-step.active{border-color:var(--acc);background:rgba(255,61,127,.08)}
.loader-step.active>b{background:var(--acc)}
.loader-step>span,.help-steps>div>span{min-width:0;display:flex;flex-direction:column;gap:2px}
.loader-step strong,.help-steps strong{font-size:14px;color:var(--ink)}
.loader-step small,.help-steps small{font-size:11px;line-height:1.35;color:var(--mut)}
.start-upload-btn{
  width:100%;min-height:58px;padding:14px 18px;border-radius:16px;
  display:flex;align-items:center;justify-content:center;gap:10px;
  background:linear-gradient(135deg,var(--acc),#c62878);color:#fff;
  font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 16px 38px -24px var(--acc)
}
.start-upload-btn svg{width:23px;height:23px}
.loader-privacy{margin:13px 6px 0!important}
.simple-progress{display:none}
.media-empty-upload{
  min-height:44px;margin-top:8px;padding:10px 16px;border-radius:12px;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--acc);color:#fff;font-size:13px;font-weight:850;cursor:pointer
}
.advanced-tools,.timeline-project-settings{
  margin:12px 0;border:1px solid var(--line2);border-radius:14px;background:#14171e;overflow:hidden
}
.advanced-tools>summary,.timeline-project-settings>summary{
  min-height:50px;padding:13px 14px;display:flex;align-items:center;justify-content:space-between;
  color:var(--ink);font-size:13px;font-weight:800;cursor:pointer;list-style:none
}
.advanced-tools>summary::-webkit-details-marker,.timeline-project-settings>summary::-webkit-details-marker{display:none}
.advanced-tools>summary::after,.timeline-project-settings>summary::after{
  content:"＋";width:28px;height:28px;border-radius:9px;display:grid;place-items:center;
  background:#272b36;color:var(--ok);font-size:18px;line-height:1
}
.advanced-tools[open]>summary::after,.timeline-project-settings[open]>summary::after{content:"−"}
.advanced-tools[open]>summary,.timeline-project-settings[open]>summary{border-bottom:1px solid var(--line)}
.advanced-tools>.image-subctrls,.advanced-tools>.ctrl,.advanced-tools>.time-card,
.advanced-tools>.motion-card,.timeline-project-settings>*:not(summary){margin-left:12px;margin-right:12px}
.help-steps{display:grid;gap:9px;margin:12px 0 16px}
.help-steps>div{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;padding:10px;border-radius:14px;background:#171a22}
.help-steps>div>b{background:var(--acc)}
.help-details .help-list{padding:10px 18px 12px 31px}

@media (max-width:760px){
  body.editor-page{--easy-nav-h:calc(66px + var(--safe-b))}
  .topbar{
    min-height:56px;padding:calc(var(--safe-t) + 6px) 8px 6px!important;
    background:rgba(14,15,19,.98);backdrop-filter:blur(16px)
  }
  .brand{font-size:17px!important;white-space:nowrap}
  .top-actions{gap:4px!important}
  .global-upload-btn,.top-export-btn,.topbar .icon-btn{min-height:42px!important;border-radius:12px!important}
  .global-upload-btn{padding:8px 11px!important;font-size:12px!important}
  .top-export-btn{padding:8px 10px!important;font-size:11px!important;background:#17272b!important;border-color:#28515b!important}
  .top-export-btn svg{color:var(--ok)!important}
  .topbar .icon-btn{width:42px;height:42px;padding:8px;color:#d8dbe4;background:#1a1d25;border:1px solid var(--line)}

  .editor{padding-bottom:var(--easy-nav-h)!important}
  .simple-progress{
    order:0;flex:0 0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:5px;padding:6px 8px 7px;border-bottom:1px solid var(--line);background:#11141a
  }
  .simple-step{
    min-width:0;min-height:34px;padding:5px 4px;border:1px solid var(--line2);border-radius:11px;
    display:flex;align-items:center;justify-content:center;gap:5px;background:#1a1d25;color:var(--mut)
  }
  .simple-step b{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;background:#303441;color:#fff;font-size:11px}
  .simple-step span{min-width:0;font-size:10px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .simple-step.active{border-color:var(--acc);background:rgba(255,61,127,.11);color:#fff}
  .simple-step.active b{background:var(--acc)}
  .simple-step.done{border-color:#24535a;color:#a8f2f4}
  .simple-step.done b{background:#1d555b}
  .simple-progress p{grid-column:1/-1;margin:1px 2px 0;color:#c4c8d2;font-size:10.5px;line-height:1.3;text-align:center}

  .stage{
    order:1;min-height:220px!important;padding:42px 6px 7px!important;
    border-bottom:0!important
  }
  .stage-quick-tools{top:6px!important;right:7px!important;left:auto!important;transform:none!important}
  .stage-quick{min-width:42px!important;height:34px!important;padding:0 9px!important;background:rgba(20,23,30,.92)!important;border:1px solid var(--line2)!important}
  .stage-quick span{display:none!important}
  .stage-hint{top:7px!important;left:7px!important;right:108px!important;padding:5px 8px!important;font-size:9px!important;line-height:1.25!important;white-space:normal!important;max-height:34px}
  #preview{max-width:100%!important;max-height:100%!important}

  .playbar{order:2;min-height:50px!important;padding:5px 10px!important;background:#151820!important}
  .playbar .round{width:40px!important;height:40px!important}
  .playbar .frame-count{font-size:12px!important}

  .under-stage-workspace{
    order:3;max-height:clamp(164px,25dvh,215px)!important;overflow-y:auto!important;overflow-x:hidden!important;
    background:#10131a!important;scrollbar-width:none
  }
  .under-stage-workspace::-webkit-scrollbar{display:none}
  .media-library{padding:7px 0 6px!important}
  .media-library-head{display:flex!important;min-height:46px!important;padding:0 9px 7px!important;gap:8px!important}
  .media-library-head>div{display:flex!important}
  .media-library-head strong{font-size:13px!important}
  .media-library-head>div span{display:block!important;font-size:9.5px!important;line-height:1.25!important;max-width:none!important}
  .media-library-add{min-height:40px!important;padding:8px 11px!important;font-size:11px!important;border-color:#4a5365!important}
  .media-library-scroll{gap:9px!important;padding:1px 9px 5px!important}
  .media-library-scroll::before{display:none!important;content:none!important}
  .media-card{flex:0 0 108px!important;min-width:108px!important;border-radius:14px!important}
  .media-card-preview{height:58px!important}
  .media-card-copy{padding:6px 7px 7px!important}
  .media-card-name{font-size:10.5px!important;line-height:1.2!important}
  .media-card-meta{font-size:8px!important;line-height:1.25!important;margin-top:2px}
  .media-library-empty{min-height:104px!important;padding:13px!important}
  .media-library-empty strong{font-size:14px!important}
  .media-library-empty span{font-size:10.5px!important;max-width:270px}

  .under-stage-workspace>.layers-bar{min-height:50px!important;padding:5px 7px!important}
  .layers-caption{display:block!important;font-size:8px!important}
  .under-stage-workspace .layer-pill{min-height:39px!important;max-width:142px!important;padding:6px 8px!important;border-radius:11px!important}
  .under-stage-workspace .layer-pill-copy b{font-size:11px!important;max-width:84px!important}
  .under-stage-workspace .layer-pill small{font-size:8px!important;max-width:78px!important}
  .layer-order-toggle,.under-stage-workspace .layer-del{width:40px!important;min-width:40px!important;height:40px!important;border-radius:11px!important}
  .timeline-under-head{min-height:48px!important;padding:5px 8px!important}
  .timeline-collapse-icon{width:32px!important;height:32px!important;min-width:32px!important}
  .timeline-collapse strong{font-size:12px!important}
  .timeline-collapse small{display:block!important;font-size:8.5px!important;line-height:1.2!important}
  .timeline-under-head .btn-ghost.compact{min-height:38px!important;padding:8px 10px!important;font-size:10px!important}
  .under-stage-workspace:has(.timeline-under-stage:not(.collapsed)){
    max-height:min(50dvh,430px)!important;overflow-y:auto!important
  }
  .under-stage-workspace:has(.layer-order-panel:not(.hidden)){max-height:min(44dvh,360px)!important}

  .tool-dock{
    position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;
    z-index:50!important;width:100%!important;max-width:none!important;transform:none!important;
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important;
    padding:6px 8px calc(6px + var(--safe-b))!important;border:0!important;border-top:1px solid var(--line)!important;
    border-radius:0!important;background:rgba(14,16,22,.98)!important;backdrop-filter:blur(18px)!important;
    box-shadow:0 -12px 32px -24px #000!important
  }
  .tool-dock .tab{
    width:auto!important;min-width:0!important;min-height:52px!important;padding:6px 2px 5px!important;
    border:1px solid transparent!important;border-radius:13px!important;background:transparent!important;
    color:#9da3b0!important;box-shadow:none!important
  }
  .tool-dock .tab svg{width:21px!important;height:21px!important}
  .tool-dock .tab span{display:block!important;font-size:9.5px!important;line-height:1.1!important}
  .tool-dock .tab.active{background:rgba(255,61,127,.14)!important;border-color:rgba(255,61,127,.45)!important;color:#fff!important}
  .editor.sidebar-open .tool-dock{opacity:1!important;pointer-events:auto!important;transform:none!important}

  .sidebar-backdrop{
    inset:calc(var(--safe-t) + 56px) 0 var(--easy-nav-h) 0!important;z-index:44!important;
    background:rgba(0,0,0,.55)!important;backdrop-filter:blur(3px)!important;pointer-events:auto!important
  }
  .panels-drawer{
    top:calc(var(--safe-t) + 56px)!important;right:0!important;bottom:var(--easy-nav-h)!important;left:0!important;
    width:100%!important;max-width:none!important;border:0!important;border-top:1px solid var(--line2)!important;
    border-radius:20px 20px 0 0!important;transform:translateY(105%)!important;transition:transform .22s ease!important;
    background:#151820!important;box-shadow:0 -18px 48px -30px #000!important;z-index:45!important
  }
  .editor.sidebar-open .panels-drawer{transform:translateY(0)!important}
  .drawer-head{
    position:sticky;top:0;z-index:5;min-height:68px;padding:10px 12px 9px 15px!important;
    background:rgba(15,17,23,.98)!important;backdrop-filter:blur(16px)!important
  }
  .drawer-copy strong{font-size:18px!important}
  .drawer-copy span{font-size:11.5px!important;line-height:1.3!important}
  .drawer-close{width:48px!important;height:48px!important;border-radius:14px!important}
  .panels{padding-bottom:34px!important;background:#151820!important}
  .panel{padding:15px 14px 18px!important}

  .media-inspector-empty{padding:28px 18px!important}
  .media-inspector-empty strong{font-size:19px!important}
  .media-inspector-empty p{font-size:13px!important}
  .media-inspector-step{width:46px!important;height:46px!important;font-size:20px!important}
  .media-inspector{gap:15px!important}
  .media-inspector-head{grid-template-columns:92px minmax(0,1fr)!important;padding:11px!important}
  .media-inspector-preview{height:78px!important}
  .media-inspector-copy>span{font-size:10px!important}
  .media-inspector-copy strong{font-size:16px!important}
  .media-inspector-copy small{font-size:11px!important}
  .media-role-status{padding:11px 12px!important;font-size:12px!important}
  .simple-section{gap:10px!important}
  .simple-section>strong{font-size:15px!important}
  .media-role-grid,.media-setting-grid{grid-template-columns:1fr!important;gap:9px!important}
  .simple-action,.setting-jump{min-height:74px!important;padding:12px!important;border-radius:15px!important}
  .simple-action-icon{width:42px!important;height:42px!important;flex-basis:42px!important;font-size:19px!important}
  .simple-action b,.setting-jump b{font-size:14px!important;line-height:1.2!important}
  .simple-action small,.setting-jump small{font-size:11px!important;line-height:1.35!important}
  .setting-jump{
    display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;
    grid-template-areas:"icon title" "icon desc"!important;column-gap:11px!important;row-gap:2px!important;
    align-items:center!important
  }
  .setting-jump>span{grid-area:icon;font-size:24px!important;text-align:center}
  .setting-jump>b{grid-area:title}
  .setting-jump>small{grid-area:desc}

  .scene-intro-card strong,.timeline-guide strong,.timeline-panel-note strong{font-size:15px!important}
  .scene-intro-card span,.timeline-guide span,.timeline-panel-note span{font-size:12px!important;line-height:1.45!important}
  .scene-layer-switch{grid-template-columns:1fr!important}
  .scene-layer-choice{min-height:64px!important;padding:12px!important}
  .scene-layer-choice strong{font-size:14px!important}
  .scene-layer-choice small{font-size:11px!important}
  .scene-status{align-items:stretch!important}
  .scene-status .btn-ghost.compact{min-height:46px!important}
  .image-size-card{padding:13px!important}
  .image-size-row{gap:8px!important}
  .image-scale-step{width:48px!important;height:48px!important;min-width:48px!important;font-size:25px!important}
  .image-subctrls{grid-template-columns:1fr!important;gap:10px!important;padding:10px 0}
  .image-size-actions,.media-fit-actions,.image-size-actions-3{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .image-size-actions .btn-ghost,.media-fit-actions .btn-ghost{min-height:48px!important;padding:10px!important;font-size:12px!important}

  .ctrl{margin-bottom:17px!important}
  .ctrl-head label{font-size:14px!important}
  .val{font-size:13px!important}
  input[type=range]{height:42px!important}
  input[type=range]::-webkit-slider-thumb{width:28px!important;height:28px!important;margin-top:-11px!important}
  input[type=range]::-moz-range-thumb{width:28px!important;height:28px!important}
  .chips{gap:8px!important}
  .chip{min-height:45px!important;padding:10px 14px!important;font-size:13px!important;border-radius:13px!important}
  .timeline-action-grid{grid-template-columns:1fr!important;gap:8px!important}
  .timeline-action-grid .chip{width:100%!important}
  .timeline-fades{grid-template-columns:1fr!important}
  .motion-actions{grid-template-columns:1fr!important}
  .motion-actions button{width:100%!important;min-height:48px!important}
  .filter-row{gap:11px!important;padding-bottom:14px!important}
  .filter-item canvas{width:68px!important;height:68px!important}
  .filter-item span{font-size:11px!important}
  .text-add{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  .text-add input,.sheet-card input,.cmt-add input,.cmt-name{min-height:50px!important;font-size:16px!important}
  .text-add .btn-acc{width:100%!important;min-height:50px!important}
  .swatch{width:38px!important;height:38px!important}
  .sticker-cats{gap:8px!important}
  .sticker-cat{min-height:44px!important;padding:9px 13px!important;font-size:12px!important}
  .sticker-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
  .sticker{font-size:30px!important;border-radius:14px!important}

  .modal,.sheet,.cutout-modal{padding:0!important;align-items:flex-end!important}
  .modal-card,.sheet-card,.cutout-card{
    width:100%!important;max-width:none!important;max-height:calc(100dvh - var(--safe-t))!important;
    border-radius:22px 22px 0 0!important;border-bottom:0!important;padding:16px!important
  }
  .modal-head,.cutout-head{position:sticky;top:0;z-index:2;background:var(--panel)}
  .sheet-actions{display:grid!important;grid-template-columns:1fr!important}
  .sheet-actions button,.result .btn-acc,.result .btn-ghost{width:100%!important;min-height:50px!important}
  .help-list{font-size:13px!important;line-height:1.5!important}

  body.preview-focus .simple-progress,body.preview-focus .tool-dock{display:none!important}
  body.preview-focus .editor{padding-bottom:0!important}
  body.preview-focus .stage{padding:calc(var(--safe-t) + 48px) 6px 6px!important}
}

@media (max-width:390px){
  .brand{font-size:15px!important}
  .global-upload-btn{padding-left:9px!important;padding-right:9px!important}
  .top-export-btn span{display:inline!important}
  .topbar .icon-btn{width:38px!important;height:42px!important}
  .simple-step span{font-size:9px!important}
  .tool-dock{padding-left:5px!important;padding-right:5px!important;gap:3px!important}
  .tool-dock .tab span{font-size:8.7px!important}
  .media-card{flex-basis:102px!important;min-width:102px!important}
  .layers-caption{display:none!important}
}

@media (orientation:landscape) and (max-height:650px) and (max-width:950px){
  body.editor-page{--easy-nav-h:calc(56px + var(--safe-b))}
  .simple-progress{display:none!important}
  .editor{padding-bottom:var(--easy-nav-h)!important}
  .stage{min-height:0!important;padding:38px 5px 5px!important}
  .under-stage-workspace{max-height:120px!important}
  .media-library-head{display:none!important}
  .media-card-preview{height:40px!important}
  .tool-dock{padding-top:3px!important;padding-bottom:calc(3px + var(--safe-b))!important}
  .tool-dock .tab{min-height:47px!important}
  .panels-drawer{bottom:var(--easy-nav-h)!important}
  .sidebar-backdrop{bottom:var(--easy-nav-h)!important}
}


/* =========================================================
   GifWerk 2.1.0 – echter 3-Tasten-Einfach-Modus
   ========================================================= */
.easy-return-btn{
  display:none;min-height:42px;padding:8px 11px;border:1px solid var(--line2);border-radius:12px;
  background:#1a1d25;color:var(--ink);align-items:center;gap:5px;font:800 12px/1 system-ui;cursor:pointer
}
.easy-return-btn svg{width:18px;height:18px}
.easy-mode-panel{display:none}
.easy-sheet{position:fixed;inset:0;z-index:90;background:rgba(5,6,9,.86);backdrop-filter:blur(10px);padding:0;align-items:flex-end;justify-content:center}
.easy-sheet:not(.hidden){display:flex}
.easy-sheet-card{
  width:100%;max-width:560px;max-height:calc(100dvh - env(safe-area-inset-top));overflow:auto;
  padding:18px 18px calc(22px + env(safe-area-inset-bottom));border:1px solid var(--line2);border-bottom:0;
  border-radius:24px 24px 0 0;background:#181b23;box-shadow:0 -24px 70px rgba(0,0,0,.48)
}
.easy-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:18px}
.easy-sheet-head small{display:block;margin-bottom:2px;color:var(--ok);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.easy-sheet-head h3{margin:0;color:var(--ink);font-size:23px;line-height:1.18}
.easy-sheet-head>button{width:48px;height:48px;min-width:48px;border:1px solid var(--line2);border-radius:14px;background:#242833;color:#fff;font-size:28px;cursor:pointer}
.easy-field-label,.easy-choice-group legend{display:block;margin:0 0 8px;color:#dfe2e9;font-size:14px;font-weight:850}
.easy-sheet textarea{
  width:100%;min-height:132px;resize:none;padding:15px;border:2px solid #353a48;border-radius:16px;background:#0f1117;
  color:#fff;font:700 19px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif
}
.easy-sheet textarea:focus{outline:0;border-color:var(--acc);box-shadow:0 0 0 4px rgba(255,61,127,.14)}
.easy-choice-group{min-width:0;margin:18px 0 0;padding:0;border:0}
.easy-choice-group.compact{margin-top:4px}
.easy-color-row{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.easy-color-row button{height:52px;border:3px solid transparent;border-radius:15px;background:var(--choice);cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.easy-color-row button.active{border-color:var(--acc);box-shadow:0 0 0 3px rgba(255,61,127,.18),inset 0 0 0 1px rgba(255,255,255,.35)}
.easy-size-row{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.easy-size-row button{min-height:52px;padding:10px;border:1px solid #3b4050;border-radius:14px;background:#242833;color:#fff;font-size:14px;font-weight:850;cursor:pointer}
.easy-size-row button.active{border-color:var(--acc);background:rgba(255,61,127,.16);box-shadow:inset 0 0 0 1px rgba(255,61,127,.28)}
.easy-sheet-primary{width:100%;min-height:58px;margin-top:20px;border:0;border-radius:16px;background:linear-gradient(135deg,var(--acc),#b81d8f);color:#fff;font-size:17px;font-weight:950;cursor:pointer}
.easy-sheet-help{margin:11px 3px 0;color:var(--mut);font-size:12px;line-height:1.45;text-align:center}
.easy-sticker-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:18px}
.easy-sticker-list button{aspect-ratio:1;min-height:54px;border:1px solid #363b48;border-radius:15px;background:#232731;font-size:31px;cursor:pointer}
.easy-sticker-list button:active{transform:scale(.94);background:#303541}

body.easy-mode .top-export-btn,body.easy-mode .easy-return-btn{display:none!important}
body.easy-mode .simple-progress,body.easy-mode .stage-quick-tools,body.easy-mode .tool-dock,
body.easy-mode .playbar,body.easy-mode .under-stage-workspace,body.easy-mode .action-bar,
body.easy-mode .panels-drawer,body.easy-mode .sidebar-backdrop{display:none!important}
body.easy-mode .editor{display:flex!important;min-height:calc(var(--app-vh, 100dvh) - var(--top-h));padding:0!important;overflow:auto!important;background:var(--bg)}
body.easy-mode .stage{
  order:1;flex:1 1 auto;min-height:clamp(300px,58dvh,690px)!important;height:auto!important;
  padding:14px 8px 8px!important;border-bottom:0!important;background:#08090d!important
}
body.easy-mode .stage-hint{top:9px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;max-width:calc(100% - 24px)!important;padding:6px 10px!important;font-size:11px!important;white-space:nowrap!important}
body.easy-mode #preview{max-width:100%!important;max-height:100%!important;border-radius:10px}
body.easy-mode .easy-mode-panel{
  order:2;display:block;flex:0 0 auto;padding:12px 12px calc(14px + env(safe-area-inset-bottom));
  border-top:1px solid var(--line);background:#11141a
}
.easy-mode-copy{margin:0 2px 10px;text-align:center}
.easy-mode-copy strong{display:block;color:#fff;font-size:17px}
.easy-mode-copy span{display:block;max-width:580px;margin:3px auto 0;color:var(--mut);font-size:11.5px;line-height:1.35}
.easy-main-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-width:820px;margin:0 auto}
.easy-main-btn{
  min-width:0;min-height:94px;padding:11px 8px;border:1px solid #333846;border-radius:17px;background:#20242d;color:#fff;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;cursor:pointer
}
.easy-main-btn:active{transform:scale(.98);background:#292e39}
.easy-main-btn.save{border-color:#2f6870;background:linear-gradient(145deg,#18343a,#15282d)}
.easy-main-icon{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;background:#343947;color:#fff;font-size:21px;font-weight:950}
.easy-main-btn.save .easy-main-icon{background:#21616a;color:#d7ffff}
.easy-main-btn b{display:block;font-size:13px;line-height:1.15}
.easy-main-btn small{display:block;margin-top:2px;color:#aeb4c0;font-size:9.5px;line-height:1.2}
.easy-more-btn{display:block;min-height:42px;margin:10px auto 0;padding:8px 18px;border:1px solid #353a47;border-radius:13px;background:transparent;color:#bfc4cf;font-size:12px;font-weight:800;cursor:pointer}
.easy-selected-bar{
  max-width:820px;margin:10px auto 0;padding:8px 9px;border:1px solid rgba(255,61,127,.42);border-radius:14px;
  background:rgba(255,61,127,.08);display:flex;align-items:center;justify-content:space-between;gap:9px
}
.easy-selected-bar.hidden{display:none!important}
.easy-selected-bar>span{min-width:0;color:#fff;font-size:12px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.easy-selected-bar>div{display:flex;gap:6px}
.easy-selected-bar button{min-width:40px;height:40px;padding:0 10px;border:1px solid #434958;border-radius:11px;background:#262a34;color:#fff;font-size:17px;font-weight:900;cursor:pointer}
.easy-selected-bar button.danger{font-size:11px;color:#ff96b5;border-color:#673047;background:#2d1821}
body:not(.easy-mode) .easy-mode-panel{display:none!important}
body:not(.easy-mode) .easy-return-btn{display:flex}

@media (max-width:520px){
  body.easy-mode .topbar{min-height:54px!important;padding:calc(var(--safe-t) + 6px) 8px 6px!important}
  body.easy-mode .global-upload-btn{min-height:40px!important;padding:8px 10px!important}
  body.easy-mode .global-upload-btn span{font-size:11px}
  body.easy-mode .topbar .icon-btn{width:40px!important;height:40px!important}
  body.easy-mode .stage{min-height:clamp(270px,52dvh,520px)!important;padding-top:12px!important}
  body.easy-mode .easy-mode-panel{padding:10px 8px calc(10px + env(safe-area-inset-bottom))}
  .easy-mode-copy{margin-bottom:8px}
  .easy-mode-copy strong{font-size:15px}
  .easy-mode-copy span{font-size:10px}
  .easy-main-actions{gap:6px}
  .easy-main-btn{min-height:88px;padding:9px 5px;border-radius:15px}
  .easy-main-icon{width:36px;height:36px;font-size:19px}
  .easy-main-btn b{font-size:11.5px}
  .easy-main-btn small{display:none}
  .easy-more-btn{min-height:38px;margin-top:8px}
  .easy-selected-bar{margin-top:8px;padding:6px 7px}
  .easy-selected-bar>span{font-size:10.5px}
  .easy-selected-bar button{height:36px;min-width:36px}
  .easy-sheet-card{padding:15px 14px calc(18px + env(safe-area-inset-bottom))}
  .easy-sheet-head h3{font-size:20px}
  .easy-sheet-head>button{width:44px;height:44px;min-width:44px}
  .easy-sheet textarea{min-height:118px;font-size:18px}
  .easy-sticker-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .easy-sticker-list button{font-size:29px}
}
@media (orientation:landscape) and (max-height:650px){
  body.easy-mode .editor{flex-direction:row!important;align-items:stretch}
  body.easy-mode .stage{min-height:0!important;height:calc(100dvh - var(--top-h))!important;flex:1 1 auto!important}
  body.easy-mode .easy-mode-panel{width:310px;max-width:38vw;overflow:auto;padding:10px}
  .easy-main-actions{grid-template-columns:1fr}
  .easy-main-btn{min-height:68px;flex-direction:row;justify-content:flex-start;text-align:left;padding:9px 11px}
  .easy-main-btn small{display:block}
  .easy-mode-copy span{display:none}
}


/* =========================================================
   GifWerk 2.1.0 – sofortige Canvas-Verarbeitung
   ========================================================= */
.media-process-overlay{
  position:absolute;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;
  padding:18px;background:rgba(6,8,12,.82);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);
  pointer-events:auto;touch-action:none
}
.media-process-overlay.hidden{display:none!important}
.media-process-card{
  width:min(430px,100%);padding:22px;border:1px solid rgba(255,255,255,.13);border-radius:24px;
  background:linear-gradient(155deg,rgba(30,34,44,.98),rgba(16,19,26,.98));
  box-shadow:0 26px 80px rgba(0,0,0,.52);text-align:center
}
.media-process-icon{
  width:68px;height:68px;margin:0 auto 13px;border-radius:21px;display:grid;place-items:center;
  background:linear-gradient(145deg,var(--acc),#8d2bd1);color:#fff;font:950 20px/1 system-ui;
  box-shadow:0 14px 36px rgba(255,61,127,.28)
}
.media-process-card>small{display:block;color:#9ea6b6;font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.media-process-card h2{margin:5px 0 7px;color:#fff;font-size:22px;line-height:1.18}
.media-process-card p{margin:0;color:#c5cad4;font-size:13px;line-height:1.45}
.media-process-progress{height:13px;margin:20px 0 9px;border:1px solid rgba(255,255,255,.1);border-radius:999px;background:#0b0d12;overflow:hidden}
.media-process-bar{width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--acc),#8f6bff,#2de2e6);transition:width .22s ease}
.media-process-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left}
.media-process-meta strong{flex:0 0 auto;color:#fff;font-size:18px;font-variant-numeric:tabular-nums}
.media-process-meta span{min-width:0;color:#8f97a8;font-size:10.5px;line-height:1.35;text-align:right;overflow-wrap:anywhere}
.media-process-retry{display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin-top:18px;padding:10px 18px;border:1px solid #4b5262;border-radius:14px;background:#292e38;color:#fff;font-size:13px;font-weight:900;cursor:pointer}
.media-process-overlay.done .media-process-icon{background:linear-gradient(145deg,#1d8e75,#2de2a6)}
.media-process-overlay.error .media-process-icon{background:linear-gradient(145deg,#a52b50,#ff3d7f)}
.media-process-overlay.error .media-process-bar{background:#ff3d7f}
body.media-processing .easy-mode-panel,body.media-processing .global-upload-btn{opacity:.42;pointer-events:none}
body.media-processing .stage-hint{opacity:0!important}

@media (max-width:520px){
  .media-process-overlay{padding:12px}
  .media-process-card{padding:19px 16px;border-radius:21px}
  .media-process-icon{width:60px;height:60px;border-radius:18px;margin-bottom:11px}
  .media-process-card h2{font-size:19px}
  .media-process-card p{font-size:12px}
  .media-process-progress{margin-top:17px}
  .media-process-meta strong{font-size:17px}
  .media-process-meta span{font-size:9.5px}
}
@media (orientation:landscape) and (max-height:650px){
  .media-process-overlay{padding:8px}
  .media-process-card{max-width:480px;padding:13px 17px;border-radius:18px}
  .media-process-icon{width:45px;height:45px;border-radius:14px;margin-bottom:7px}
  .media-process-card h2{font-size:17px;margin:3px 0}
  .media-process-progress{height:10px;margin:10px 0 6px}
  .media-process-retry{min-height:40px;margin-top:10px}
}

/* =========================================================
   GifWerk 2.2.0 – Modern Studio UI
   Hochwertige, ruhige App-Oberfläche für Einfach- und Profi-Modus.
   ========================================================= */
:root{
  --bg:#090b12;
  --bg2:#0f1420;
  --panel:#151b28;
  --panel2:#1c2434;
  --line:rgba(255,255,255,.075);
  --line2:rgba(255,255,255,.13);
  --ink:#f7f8fc;
  --mut:#a9b1c2;
  --mut2:#727c91;
  --acc:#8b5cf6;
  --acc-d:#7447e8;
  --ok:#2dd4bf;
  --warn:#f59e0b;
  --danger:#fb7185;
  --r:22px;
  --r-sm:14px;
  --shadow-sm:0 10px 28px rgba(0,0,0,.18);
  --shadow-md:0 22px 60px rgba(0,0,0,.34);
  --shadow-lg:0 36px 100px rgba(0,0,0,.50);
  --glass:rgba(18,23,35,.82);
}
html{
  background:
    radial-gradient(circle at 12% -8%,rgba(139,92,246,.18),transparent 34%),
    radial-gradient(circle at 90% 6%,rgba(45,212,191,.10),transparent 28%),
    var(--bg);
}
body{
  background:
    radial-gradient(circle at 10% -12%,rgba(139,92,246,.12),transparent 35%),
    linear-gradient(180deg,#090b12 0%,#0b0e16 100%);
  color:var(--ink);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  letter-spacing:-.005em;
}
button,input,textarea,select{font:inherit}
button,a,label,input,textarea,.chip,.tab,.media-card,.layer-pill{
  transition:background-color .18s ease,border-color .18s ease,color .18s ease,
    box-shadow .18s ease,transform .18s ease,opacity .18s ease;
}
::selection{background:rgba(139,92,246,.38);color:#fff}
*{scrollbar-color:rgba(255,255,255,.17) transparent;scrollbar-width:thin}
*::-webkit-scrollbar{width:7px;height:7px}
*::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:999px}
*::-webkit-scrollbar-track{background:transparent}

/* Globale Bedienelemente */
.btn-acc,.start-upload-btn,.easy-sheet-primary,.btn-make{
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(135deg,#9b72ff 0%,#7c4dff 56%,#6541d8 100%);
  box-shadow:0 14px 34px rgba(105,65,216,.26),inset 0 1px 0 rgba(255,255,255,.20);
  color:#fff;
}
.btn-acc:hover,.start-upload-btn:hover,.easy-sheet-primary:hover,.btn-make:hover{
  transform:translateY(-1px);box-shadow:0 18px 40px rgba(105,65,216,.34),inset 0 1px 0 rgba(255,255,255,.24)
}
.btn-acc:active,.start-upload-btn:active,.easy-sheet-primary:active,.btn-make:active{
  transform:translateY(0) scale(.985);background:linear-gradient(135deg,#865cf1,#6740d9)
}
.btn-ghost{
  background:rgba(255,255,255,.035);border-color:var(--line2);color:#e8ebf2;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)
}
.btn-ghost:hover{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.19)}
.icon-btn{color:#c5cada}
.icon-btn:hover{background:rgba(255,255,255,.07);color:#fff}
button:focus-visible,a:focus-visible,label:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:3px solid rgba(139,92,246,.45)!important;outline-offset:3px!important
}

/* Kopfzeile */
.topbar{
  min-height:64px;
  padding:calc(var(--safe-t) + 9px) 14px 9px;
  background:rgba(9,11,18,.78)!important;
  border-bottom:1px solid rgba(255,255,255,.07);
  box-shadow:0 10px 36px rgba(0,0,0,.22);
  backdrop-filter:blur(22px) saturate(145%);
  -webkit-backdrop-filter:blur(22px) saturate(145%);
}
.brand{font-size:20px!important;font-weight:900;letter-spacing:-.055em;color:#fff}
.brand span,.setup-note h1 span{
  color:transparent!important;background:linear-gradient(135deg,#b89aff 10%,#8b5cf6 55%,#2dd4bf 125%);
  -webkit-background-clip:text;background-clip:text
}
.top-actions{gap:7px!important;align-items:center}
.global-upload-btn,.top-export-btn,.easy-return-btn,.gal-back{
  min-height:42px;border:1px solid var(--line2)!important;border-radius:14px!important;
  background:rgba(255,255,255,.055)!important;color:#eef0f5!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 8px 22px rgba(0,0,0,.15)
}
.global-upload-btn:hover,.top-export-btn:hover,.easy-return-btn:hover,.gal-back:hover{
  background:rgba(255,255,255,.10)!important;border-color:rgba(255,255,255,.20)!important
}
.global-upload-btn svg{color:#bca6ff}
.top-export-btn{
  background:linear-gradient(135deg,rgba(45,212,191,.18),rgba(45,212,191,.08))!important;
  border-color:rgba(45,212,191,.30)!important
}
.top-export-btn svg{color:#70eadb!important}
.topbar .icon-btn{
  width:42px;height:42px;border:1px solid var(--line)!important;border-radius:14px!important;
  background:rgba(255,255,255,.035)!important
}

/* Startseite / Upload */
.loader{
  position:relative;isolation:isolate;padding:26px 18px 38px;
  background:
    radial-gradient(circle at 50% 14%,rgba(139,92,246,.16),transparent 35%),
    radial-gradient(circle at 86% 76%,rgba(45,212,191,.08),transparent 25%)
}
.loader::before,.loader::after{
  content:"";position:absolute;z-index:-1;border-radius:50%;filter:blur(2px);pointer-events:none
}
.loader::before{width:220px;height:220px;left:-120px;bottom:-60px;background:rgba(139,92,246,.08)}
.loader::after{width:150px;height:150px;right:-70px;top:12%;background:rgba(45,212,191,.07)}
.loader-inner{
  width:min(100%,480px);max-width:480px;padding:30px 26px 24px;border:1px solid rgba(255,255,255,.10);
  border-radius:30px;background:linear-gradient(160deg,rgba(25,31,46,.88),rgba(14,18,28,.90));
  box-shadow:var(--shadow-lg),inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)
}
.loader-badge{
  width:82px;height:82px;margin-bottom:20px;border-radius:26px;
  background:linear-gradient(145deg,#a883ff,#7c4dff 58%,#4930a8);
  box-shadow:0 22px 48px rgba(109,67,224,.34),inset 0 1px 0 rgba(255,255,255,.28);
  transform:rotate(-3deg)
}
.loader-badge svg{transform:rotate(3deg)}
.loader h2{font-size:clamp(24px,6vw,31px);line-height:1.08;letter-spacing:-.045em;margin-bottom:10px}
.loader-lead{font-size:14px!important;line-height:1.55;color:#bcc3d1!important}
.loader-steps{gap:10px;margin:21px 0}
.loader-step{
  grid-template-columns:44px minmax(0,1fr);padding:12px 13px;border-color:rgba(255,255,255,.08);
  border-radius:17px;background:rgba(255,255,255,.035);box-shadow:inset 0 1px 0 rgba(255,255,255,.025)
}
.loader-step>b,.help-steps>div>b{
  width:44px;height:44px;border-radius:14px;background:rgba(255,255,255,.075);color:#dfe3ec
}
.loader-step.active{
  border-color:rgba(139,92,246,.38);background:linear-gradient(135deg,rgba(139,92,246,.16),rgba(139,92,246,.06))
}
.loader-step.active>b,.help-steps>div>b{background:linear-gradient(145deg,#9b72ff,#7447e8);box-shadow:0 8px 20px rgba(116,71,232,.25)}
.loader-step strong{font-size:14px;letter-spacing:-.01em}
.loader-step small{color:#9fa8ba}
.start-upload-btn{min-height:62px;border-radius:18px;font-size:16px;letter-spacing:-.01em}
.loader-privacy{color:#788297!important}

/* Canvas und Arbeitsfläche */
.stage{
  background-color:#080b11!important;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.026) 1px,transparent 1px),
    radial-gradient(circle at 50% 35%,rgba(139,92,246,.08),transparent 44%)!important;
  background-size:24px 24px,24px 24px,100% 100%!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035)
}
#preview{
  border-radius:14px!important;box-shadow:0 0 0 1px rgba(255,255,255,.10),0 26px 80px rgba(0,0,0,.48)!important;
  position:relative;z-index:1
}
.stage-hint{
  border:1px solid rgba(255,255,255,.08);background:rgba(13,17,26,.74)!important;
  color:#bbc2d1!important;box-shadow:0 8px 24px rgba(0,0,0,.18);backdrop-filter:blur(12px)
}
.stage-quick{
  border-color:rgba(255,255,255,.11)!important;background:rgba(16,21,31,.74)!important;
  box-shadow:0 10px 26px rgba(0,0,0,.18)!important;backdrop-filter:blur(14px)
}
.playbar{
  border-color:rgba(255,255,255,.09)!important;background:rgba(16,21,31,.88)!important;
  box-shadow:0 16px 42px rgba(0,0,0,.28)!important;backdrop-filter:blur(20px)!important
}
.round{background:linear-gradient(145deg,#9b72ff,#7447e8);box-shadow:0 8px 22px rgba(116,71,232,.30)}

/* Einfach-Modus */
body.easy-mode .editor{
  background:
    radial-gradient(circle at 50% 0,rgba(139,92,246,.09),transparent 35%),
    var(--bg)!important
}
body.easy-mode .stage{
  margin:14px 14px 0!important;width:calc(100% - 28px)!important;
  min-height:clamp(300px,57dvh,720px)!important;
  padding:18px 12px 12px!important;border:1px solid rgba(255,255,255,.085)!important;
  border-radius:28px!important;box-shadow:var(--shadow-md),inset 0 1px 0 rgba(255,255,255,.04)!important;
  overflow:hidden
}
body.easy-mode .stage::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),inset 0 -40px 80px rgba(0,0,0,.12)
}
body.easy-mode #preview{border-radius:16px!important}
body.easy-mode .easy-mode-panel{
  padding:18px 14px calc(18px + env(safe-area-inset-bottom))!important;
  border-top:0!important;background:transparent!important
}
.easy-mode-copy{margin-bottom:14px}
.easy-mode-copy strong{font-size:20px;letter-spacing:-.035em}
.easy-mode-copy span{margin-top:5px;font-size:12px;line-height:1.45;color:#939db0}
.easy-main-actions{gap:11px;max-width:940px}
.easy-main-btn{
  min-height:112px;padding:15px 10px;border-color:rgba(255,255,255,.095);border-radius:22px;
  background:linear-gradient(155deg,rgba(31,39,56,.96),rgba(20,26,39,.96));
  box-shadow:0 14px 34px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.055)
}
.easy-main-btn:hover{
  transform:translateY(-2px);border-color:rgba(139,92,246,.38);box-shadow:0 20px 42px rgba(0,0,0,.28),0 0 0 1px rgba(139,92,246,.08)
}
.easy-main-btn:active{transform:translateY(0) scale(.985);background:#242c3d}
.easy-main-btn:nth-child(2):hover{border-color:rgba(244,114,182,.38)}
.easy-main-btn.save{
  border-color:rgba(45,212,191,.28);background:linear-gradient(155deg,rgba(25,61,60,.94),rgba(14,35,39,.96));
  box-shadow:0 14px 34px rgba(0,0,0,.20),inset 0 1px 0 rgba(108,255,231,.08)
}
.easy-main-btn.save:hover{border-color:rgba(45,212,191,.50);box-shadow:0 20px 44px rgba(0,0,0,.28),0 0 28px rgba(45,212,191,.08)}
.easy-main-icon{
  width:48px;height:48px;border-radius:16px;background:linear-gradient(145deg,#9b72ff,#6e43dc);
  box-shadow:0 10px 24px rgba(105,65,216,.28),inset 0 1px 0 rgba(255,255,255,.20);font-size:22px
}
.easy-main-btn:nth-child(2) .easy-main-icon{background:linear-gradient(145deg,#f472b6,#db4b91);box-shadow:0 10px 24px rgba(219,75,145,.23)}
.easy-main-btn.save .easy-main-icon{background:linear-gradient(145deg,#46e0cd,#199d91);color:#062724;box-shadow:0 10px 24px rgba(45,212,191,.22)}
.easy-main-btn b{font-size:14px;letter-spacing:-.015em}
.easy-main-btn small{color:#9ca5b7;font-size:10px}
.easy-more-btn{
  min-height:46px;margin-top:13px;padding:9px 20px;border-color:rgba(255,255,255,.10);
  border-radius:15px;background:rgba(255,255,255,.035);color:#b8c0cf
}
.easy-more-btn:hover{background:rgba(255,255,255,.075);color:#fff}
.easy-selected-bar{
  padding:10px 11px;border-color:rgba(139,92,246,.34);border-radius:17px;
  background:linear-gradient(135deg,rgba(139,92,246,.13),rgba(139,92,246,.05));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045)
}
.easy-selected-bar button{border-color:rgba(255,255,255,.12);border-radius:13px;background:rgba(255,255,255,.07)}
.easy-selected-bar button.danger{color:#ff9daf;border-color:rgba(251,113,133,.28);background:rgba(251,113,133,.09)}

/* Einfach-Dialoge */
.easy-sheet,.sheet,.modal{
  background:rgba(4,6,10,.72)!important;backdrop-filter:blur(18px) saturate(125%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(125%)!important
}
.easy-sheet-card,.sheet-card,.modal-card{
  border-color:rgba(255,255,255,.11)!important;
  background:linear-gradient(165deg,rgba(27,34,49,.98),rgba(14,18,27,.99))!important;
  box-shadow:var(--shadow-lg),inset 0 1px 0 rgba(255,255,255,.065)!important
}
.easy-sheet-card{border-radius:30px 30px 0 0!important}
.easy-sheet-head{padding-bottom:15px;border-bottom:1px solid rgba(255,255,255,.07)}
.easy-sheet-head small{color:#a88cff!important;letter-spacing:.12em}
.easy-sheet-head h3{letter-spacing:-.04em}
.easy-sheet-head>button{
  background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.10)!important;
  color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)
}
.easy-field-label,.easy-choice-group legend{color:#bdc5d3!important}
.easy-sheet textarea,.sheet-card input,.text-add input,.cmt-add input,.cmt-name{
  background:rgba(5,8,14,.66)!important;border-color:rgba(255,255,255,.12)!important;
  color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)
}
.easy-sheet textarea:focus,.sheet-card input:focus,.text-add input:focus,.cmt-add input:focus,.cmt-name:focus{
  border-color:rgba(139,92,246,.72)!important;box-shadow:0 0 0 4px rgba(139,92,246,.11)!important;outline:0!important
}
.easy-choice-group{
  border-color:rgba(255,255,255,.08)!important;background:rgba(255,255,255,.025)!important;border-radius:18px!important
}
.easy-color-row button{box-shadow:0 4px 14px rgba(0,0,0,.20)}
.easy-color-row button.active{box-shadow:0 0 0 3px #182030,0 0 0 6px var(--acc)!important}
.easy-size-row button{
  border-color:rgba(255,255,255,.10);background:rgba(255,255,255,.055);border-radius:15px
}
.easy-size-row button.active{
  border-color:rgba(139,92,246,.55);background:linear-gradient(135deg,rgba(139,92,246,.22),rgba(139,92,246,.09));
  box-shadow:inset 0 0 0 1px rgba(139,92,246,.13)
}
.easy-sticker-list button{
  border-color:rgba(255,255,255,.08);border-radius:18px;background:rgba(255,255,255,.055);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)
}
.easy-sticker-list button:hover{transform:translateY(-2px);background:rgba(255,255,255,.10);border-color:rgba(244,114,182,.35)}
.sheet-grip{background:rgba(255,255,255,.18)}
.modal-card{border-radius:28px!important}
.result img{border-radius:18px!important;border-color:rgba(255,255,255,.10)!important}
.progress{height:12px;background:rgba(255,255,255,.075)}
.progress-bar{background:linear-gradient(90deg,#8b5cf6,#c084fc,#2dd4bf)}

/* Medien-Verarbeitung */
.media-process-overlay{
  background:rgba(5,7,12,.76);backdrop-filter:blur(18px) saturate(120%);-webkit-backdrop-filter:blur(18px) saturate(120%)
}
.media-process-card{
  padding:27px;border-color:rgba(255,255,255,.12);border-radius:30px;
  background:linear-gradient(160deg,rgba(31,39,57,.98),rgba(13,17,26,.99));
  box-shadow:var(--shadow-lg),inset 0 1px 0 rgba(255,255,255,.07)
}
.media-process-icon{
  width:74px;height:74px;border-radius:24px;background:linear-gradient(145deg,#a883ff,#7347e7 65%,#4b2aa7);
  box-shadow:0 20px 46px rgba(116,71,232,.32),inset 0 1px 0 rgba(255,255,255,.24)
}
.media-process-card>small{color:#a99af0}
.media-process-card h2{font-size:24px;letter-spacing:-.04em}
.media-process-card p{color:#b5bdcc}
.media-process-progress{height:14px;border-color:rgba(255,255,255,.08);background:#080b12}
.media-process-bar{background:linear-gradient(90deg,#8b5cf6 0%,#c084fc 52%,#2dd4bf 100%);box-shadow:0 0 24px rgba(139,92,246,.30)}
.media-process-meta span{color:#858fa3}
.media-process-retry{border-color:rgba(255,255,255,.13);border-radius:15px;background:rgba(255,255,255,.07)}
.media-process-overlay.done .media-process-icon{background:linear-gradient(145deg,#53e5d2,#169e91)}
.media-process-overlay.error .media-process-icon{background:linear-gradient(145deg,#ff8aa0,#e44f6b)}

/* Profiwerkzeuge */
.tool-dock .tab{
  border-color:rgba(255,255,255,.09)!important;background:rgba(14,19,29,.74)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.20)!important;backdrop-filter:blur(16px)
}
.tool-dock .tab:hover{background:rgba(30,38,54,.92)!important;color:#fff}
.tool-dock .tab.active{
  color:#fff!important;border-color:rgba(174,145,255,.42)!important;
  background:linear-gradient(145deg,rgba(157,116,255,.96),rgba(104,62,218,.96))!important;
  box-shadow:0 13px 30px rgba(105,65,216,.27)!important
}
.panels-drawer{
  background:rgba(15,20,31,.94)!important;border-left-color:rgba(255,255,255,.09)!important;
  box-shadow:-30px 0 70px rgba(0,0,0,.42)!important;backdrop-filter:blur(22px) saturate(130%)!important
}
.panels-drawer .panel{padding:18px 16px 10px}
.panel h3,.panel h4{letter-spacing:-.025em}
.ctrl-head label{color:#dce0e9}
.val{color:#63e7d7}
.chip{
  border-color:rgba(255,255,255,.09);background:rgba(255,255,255,.055);color:#dfe3eb
}
.chip:hover{border-color:rgba(139,92,246,.38);background:rgba(139,92,246,.10)}
.chip.toggle.active,.sticker-cat.active{
  border-color:rgba(139,92,246,.55);background:linear-gradient(135deg,#8b5cf6,#7145de);box-shadow:0 8px 20px rgba(105,65,216,.20)
}
input[type=range]::-webkit-slider-runnable-track{background:rgba(255,255,255,.12)}
input[type=range]::-moz-range-track{background:rgba(255,255,255,.12)}
input[type=range]::-webkit-slider-thumb{border-color:var(--acc);box-shadow:0 4px 14px rgba(0,0,0,.45),0 0 0 4px rgba(139,92,246,.11)}
input[type=range]::-moz-range-thumb{border-color:var(--acc);box-shadow:0 4px 14px rgba(0,0,0,.45),0 0 0 4px rgba(139,92,246,.11)}
.advanced-tools,.timeline-project-settings,.time-card,.image-size-card,.custom-image-card{
  border-color:rgba(255,255,255,.08)!important;border-radius:18px!important;
  background:linear-gradient(155deg,rgba(255,255,255,.045),rgba(255,255,255,.022))!important
}
.advanced-tools>summary::after,.timeline-project-settings>summary::after{background:rgba(139,92,246,.14);color:#bca5ff}
.sticker,.filter-item canvas{
  border-color:rgba(255,255,255,.06);background:rgba(255,255,255,.045);border-radius:15px
}
.sticker:hover{background:rgba(255,255,255,.09);transform:translateY(-1px)}
.media-library,.timeline-under-stage,.under-stage-workspace>.layers-bar{
  background:rgba(13,18,28,.96)!important;border-color:rgba(255,255,255,.065)!important
}
.media-card{
  border-color:rgba(255,255,255,.08)!important;background:linear-gradient(155deg,#1a2231,#131923)!important;
  box-shadow:0 8px 22px rgba(0,0,0,.16)!important
}
.media-card:hover{transform:translateY(-2px);border-color:rgba(139,92,246,.34)!important}
.media-card.active,.media-card.selected{border-color:rgba(139,92,246,.60)!important;box-shadow:0 0 0 2px rgba(139,92,246,.14),0 12px 30px rgba(0,0,0,.20)!important}
.layer-pill,.timeline-item{
  border-color:rgba(255,255,255,.08)!important;background:rgba(255,255,255,.045)!important
}
.layer-pill.active,.timeline-item.active{
  border-color:rgba(139,92,246,.52)!important;background:rgba(139,92,246,.13)!important;
  box-shadow:inset 0 0 0 1px rgba(139,92,246,.10)!important
}
.layer-del,.timeline-item-del{
  border-color:rgba(251,113,133,.20)!important;background:rgba(251,113,133,.08)!important;color:#ff94a7!important
}
.media-library-add,.media-empty-upload,.setting-jump,.simple-action{
  border-color:rgba(255,255,255,.10)!important;background:rgba(255,255,255,.045)!important;border-radius:15px!important
}
.simple-action-icon{background:rgba(139,92,246,.13);color:#b99fff}
.simple-action.active{border-color:rgba(45,212,191,.35)!important;background:rgba(45,212,191,.08)!important}
.setting-jump>span{color:#b89eff}
.timeline-under-head,.media-library-head{border-color:rgba(255,255,255,.06)!important}

/* Freistellen */
.cutout-modal{background:#070910}
.cutout-card{background:#090c13}
.cutout-head{background:rgba(10,13,21,.92);border-bottom-color:rgba(255,255,255,.08);backdrop-filter:blur(18px)}
.cutout-head .icon-btn{background:rgba(255,255,255,.065);border-color:rgba(255,255,255,.10)}
.cutout-stage{
  background-color:#0b0f18;
  background-image:linear-gradient(45deg,#151b27 25%,transparent 25%),linear-gradient(-45deg,#151b27 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#151b27 75%),linear-gradient(-45deg,transparent 75%,#151b27 75%)
}
.cutout-status,.cutout-tools{background:#0e131e;border-color:rgba(255,255,255,.08)}

/* Rückmeldungen */
.toast{
  border-color:rgba(255,255,255,.10);background:rgba(23,30,43,.94);color:#fff;
  box-shadow:0 18px 50px rgba(0,0,0,.35);backdrop-filter:blur(18px)
}
.toast.err{border-color:rgba(251,113,133,.30);background:rgba(66,25,37,.95);color:#ffc0cb}

/* Setup-Hinweis ohne Konfiguration */
.setup-note{
  width:min(100% - 32px,430px);padding:34px 26px;border:1px solid rgba(255,255,255,.10);
  border-radius:30px;background:linear-gradient(160deg,rgba(26,33,48,.92),rgba(14,18,27,.96));
  box-shadow:var(--shadow-lg)
}
.setup-note h1{font-size:39px;letter-spacing:-.06em}

@media (max-width:760px){
  .topbar{min-height:60px!important;padding:calc(var(--safe-t) + 7px) 9px 7px!important}
  .simple-progress{background:rgba(13,17,26,.96);border-color:rgba(255,255,255,.06)}
  .simple-step{border-color:rgba(255,255,255,.08);background:rgba(255,255,255,.04)}
  .simple-step.active{border-color:rgba(139,92,246,.40);background:rgba(139,92,246,.12)}
  .simple-step.active b{background:linear-gradient(145deg,#9b72ff,#7447e8)}
  .simple-step.done{border-color:rgba(45,212,191,.30);color:#9bf4e9}
  .simple-step.done b{background:#167b72}
  .under-stage-workspace{background:#0d121c!important}
}
@media (max-width:520px){
  .loader{padding:16px 12px 24px}
  .loader-inner{padding:24px 16px 18px;border-radius:25px}
  .loader-badge{width:72px;height:72px;border-radius:23px}
  .loader h2{font-size:26px}
  body.easy-mode .stage{
    margin:9px 9px 0!important;width:calc(100% - 18px)!important;
    min-height:clamp(265px,51dvh,540px)!important;border-radius:22px!important;padding:12px 7px 7px!important
  }
  body.easy-mode .easy-mode-panel{padding:14px 9px calc(13px + env(safe-area-inset-bottom))!important}
  .easy-mode-copy strong{font-size:17px}
  .easy-mode-copy span{font-size:10.5px}
  .easy-main-actions{gap:7px}
  .easy-main-btn{min-height:94px;padding:10px 5px;border-radius:18px}
  .easy-main-icon{width:40px;height:40px;border-radius:13px;font-size:19px}
  .easy-main-btn b{font-size:11.5px}
  .easy-more-btn{border-radius:14px}
  .media-process-card{padding:21px 16px;border-radius:25px}
  .media-process-icon{width:62px;height:62px;border-radius:20px}
  .media-process-card h2{font-size:20px}
  .easy-sheet-card{border-radius:26px 26px 0 0!important}
}
@media (orientation:landscape) and (max-height:650px){
  body.easy-mode .stage{margin:8px 0 8px 8px!important;width:auto!important;border-radius:22px!important}
  body.easy-mode .easy-mode-panel{margin:8px 8px 8px 0;border:1px solid rgba(255,255,255,.08)!important;border-left:0!important;border-radius:0 22px 22px 0;background:rgba(16,21,31,.82)!important}
}
@media (min-width:900px){
  .topbar{padding-left:22px;padding-right:22px}
  body.easy-mode .stage{margin-left:22px!important;margin-right:22px!important;width:calc(100% - 44px)!important}
  body.easy-mode .easy-mode-panel{padding-left:22px!important;padding-right:22px!important}
  .easy-sheet{align-items:center!important;padding:24px}
  .easy-sheet-card{max-width:600px!important;border-radius:30px!important;border-bottom:1px solid rgba(255,255,255,.11)!important}
}

/* Der initiale Upload-Einstieg muss den Editor trotz Easy-Mode-Regeln vollständig ausblenden. */
body.easy-mode .editor.hidden,body .editor.hidden{display:none!important}

/* Im mobilen Profi-Modus bleiben alle Kopfaktionen erreichbar, ohne horizontal zu überlaufen. */
@media (max-width:520px){
  body:not(.easy-mode) .global-upload-btn span,
  body:not(.easy-mode) .easy-return-btn span,
  body:not(.easy-mode) .top-export-btn span{display:none!important}
  body:not(.easy-mode) .global-upload-btn,
  body:not(.easy-mode) .easy-return-btn,
  body:not(.easy-mode) .top-export-btn{
    width:42px!important;min-width:42px!important;padding:0!important;justify-content:center!important
  }
  body:not(.easy-mode) .brand{font-size:16px!important}
  body:not(.easy-mode) .top-actions{gap:4px!important}
}

/* =========================================================
   GifWerk 2.3.0 – Geführter Seitenmenü-Editor
   Medien links, Funktionen darunter, Optionen unter Canvas
   ========================================================= */
body:not(.easy-mode){overflow-x:hidden;background:#080b12}
body:not(.easy-mode) .editor.guided-editor{
  display:block!important;
  width:100%;
  min-height:calc(100dvh - 62px);
  padding:0!important;
  overflow:visible!important;
  background:
    radial-gradient(circle at 77% 4%,rgba(139,92,246,.08),transparent 28%),
    radial-gradient(circle at 20% 90%,rgba(45,212,191,.045),transparent 25%),
    #080b12;
}
body:not(.easy-mode) .editor.guided-editor>.simple-progress,
body:not(.easy-mode) .editor.guided-editor>.easy-mode-panel,
body:not(.easy-mode) .editor.guided-editor>.sidebar-backdrop,
body:not(.easy-mode) .easy-return-btn{display:none!important}

.guided-workspace{
  width:min(1500px,100%);
  margin:0 auto;
  padding:14px 16px 34px;
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  align-items:start;
  gap:16px;
}
.guided-side{
  position:sticky;
  top:76px;
  z-index:20;
  min-width:0;
  max-height:calc(100dvh - 92px);
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  overflow-y:auto;
  overscroll-behavior:contain;
  border:1px solid rgba(255,255,255,.085);
  border-radius:22px;
  background:linear-gradient(165deg,rgba(24,31,45,.97),rgba(12,16,25,.98));
  box-shadow:0 22px 60px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.045);
  scrollbar-width:thin;
}
.guided-side::-webkit-scrollbar{width:5px}
.guided-side::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:9px}
.guided-section-title,.guided-options-kicker{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:9px;
}
.guided-section-title>span,.guided-options-kicker>span{
  width:28px;height:28px;min-width:28px;
  display:grid;place-items:center;
  border-radius:9px;
  color:#fff;
  font-size:12px;font-weight:900;
  background:linear-gradient(145deg,#9b72ff,#6d42dc);
  box-shadow:0 8px 20px rgba(108,65,220,.25);
}
.guided-section-title div,.guided-options-kicker div{display:flex;flex-direction:column;min-width:0}
.guided-section-title strong,.guided-options-kicker strong{font-size:13px;line-height:1.1;color:#f5f6fa}
.guided-section-title small,.guided-options-kicker small{margin-top:2px;font-size:9px;color:#858fa3;line-height:1.2}
.guided-section-title.tools-title{margin-top:2px;padding-top:10px;border-top:1px solid rgba(255,255,255,.065)}
.guided-section-title.tools-title>span{background:linear-gradient(145deg,#3cdac7,#178f84);color:#052a26;box-shadow:0 8px 20px rgba(45,212,191,.17)}

/* Medien dauerhaft im Seitenmenü */
.guided-side .media-library{
  display:flex!important;
  flex-direction:column;
  min-height:132px;
  max-height:38dvh!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.025)!important;
}
.guided-side .media-library-head{
  min-height:40px!important;
  padding:6px 7px!important;
  display:flex!important;
  align-items:center;
  border-bottom:1px solid rgba(255,255,255,.055)!important;
}
.guided-side .media-library-head>div{display:none!important}
.guided-side .media-library-add{
  width:100%;min-height:34px!important;
  padding:7px 9px!important;
  justify-content:center;
  font-size:10px!important;
  border-radius:11px!important;
  color:#e7e9ef!important;
  background:rgba(139,92,246,.10)!important;
  border-color:rgba(139,92,246,.30)!important;
}
.guided-side .media-library-scroll{
  min-height:88px;
  padding:7px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:7px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scroll-snap-type:y proximity!important;
}
.guided-side .media-library-scroll::before{display:none!important;content:none!important}
.guided-side .media-library-empty{
  width:100%!important;min-height:92px!important;
  padding:10px!important;
  display:flex!important;
  flex-direction:column;
  justify-content:center;
  border-radius:13px!important;
  text-align:center;
}
.guided-side .media-library-empty strong{font-size:11px!important}
.guided-side .media-library-empty span{font-size:8.5px!important;line-height:1.3!important}
.guided-side .media-empty-upload{min-height:33px!important;margin-top:7px!important;font-size:9px!important}
.guided-side .media-card{
  width:100%!important;
  min-width:0!important;
  min-height:65px!important;
  padding:5px!important;
  display:grid!important;
  grid-template-columns:55px minmax(0,1fr)!important;
  align-items:center!important;
  gap:7px!important;
  scroll-snap-align:start;
  border-radius:13px!important;
  text-align:left;
}
.guided-side .media-card-preview{
  width:55px!important;height:55px!important;
  min-width:55px!important;
  border-radius:10px!important;
  overflow:hidden;
}
.guided-side .media-card-preview img,.guided-side .media-card-preview video{width:100%;height:100%;object-fit:cover}
.guided-side .media-card-kind{font-size:6.5px!important;padding:2px 4px!important}
.guided-side .media-card-current{width:18px!important;height:18px!important;font-size:9px!important}
.guided-side .media-card-copy{min-width:0!important;padding:0!important}
.guided-side .media-card-name{display:block;max-width:100%;font-size:9.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.guided-side .media-card-meta{display:block;margin-top:3px;font-size:7px!important;line-height:1.2;color:#8d96a8;white-space:normal}

/* Funktionen als klare vertikale Auswahl */
.guided-side .tool-dock{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  width:100%!important;
  max-width:none!important;
  max-height:none!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  overflow:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.guided-side .tool-dock .tab{
  width:auto!important;
  min-width:0!important;
  min-height:62px!important;
  padding:8px 4px!important;
  display:flex!important;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  border-radius:14px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  background:rgba(255,255,255,.035)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.guided-side .tool-dock .tab svg{width:21px!important;height:21px!important}
.guided-side .tool-dock .tab span{display:block!important;font-size:8.5px!important;line-height:1.08!important;white-space:normal!important}
.guided-side .tool-dock .tab:hover{transform:none!important;background:rgba(255,255,255,.07)!important}
.guided-side .tool-dock .tab.active{
  color:#fff!important;
  border-color:rgba(160,125,255,.52)!important;
  background:linear-gradient(145deg,rgba(139,92,246,.28),rgba(96,58,195,.20))!important;
  box-shadow:inset 0 0 0 1px rgba(160,125,255,.10),0 10px 22px rgba(76,45,158,.15)!important;
}

.guided-main{min-width:0;display:flex;flex-direction:column;gap:10px}
.guided-canvas-title{
  min-height:42px;
  padding:0 4px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.guided-canvas-title>div{display:flex;align-items:baseline;gap:8px;min-width:0}
.guided-canvas-title span{font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#9c83ee}
.guided-canvas-title strong{font-size:14px;color:#f4f5f8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.guided-canvas-title small{font-size:10px;color:#7f899c;text-align:right}

body:not(.easy-mode) .guided-main>.stage{
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  max-width:none!important;
  min-height:clamp(360px,58dvh,760px)!important;
  margin:0!important;
  padding:14px!important;
  display:flex!important;
  align-items:center;
  justify-content:center;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.09)!important;
  border-radius:24px!important;
  background:
    linear-gradient(45deg,rgba(255,255,255,.018) 25%,transparent 25%,transparent 75%,rgba(255,255,255,.018) 75%),
    linear-gradient(45deg,rgba(255,255,255,.018) 25%,transparent 25%,transparent 75%,rgba(255,255,255,.018) 75%),
    #0c111a!important;
  background-position:0 0,12px 12px!important;
  background-size:24px 24px!important;
  box-shadow:0 24px 70px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.04)!important;
}
.guided-main>.stage .tool-dock{display:none!important}
.guided-main>.stage canvas{max-width:100%!important;max-height:calc(58dvh - 28px)!important;border-radius:12px}
.guided-main>.stage .stage-hint{bottom:12px!important;left:50%!important;transform:translateX(-50%)!important;max-width:calc(100% - 24px)!important}
.guided-main>.playbar{
  position:static!important;
  width:100%!important;
  min-height:48px!important;
  margin:0!important;
  padding:6px 10px!important;
  border:1px solid rgba(255,255,255,.07)!important;
  border-radius:16px!important;
  background:rgba(15,20,30,.92)!important;
}

/* Optionen immer direkt unter der Canvas */
.guided-options{
  width:100%;
  min-width:0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  overflow:hidden;
  background:linear-gradient(165deg,rgba(22,29,42,.98),rgba(12,16,25,.99));
  box-shadow:0 18px 55px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.035);
}
.guided-options-kicker{
  min-height:54px;
  padding:8px 15px;
  border-bottom:1px solid rgba(255,255,255,.065);
  background:rgba(255,255,255,.018);
}
.guided-options-kicker>span{background:linear-gradient(145deg,#f48abd,#d94d91);box-shadow:0 8px 20px rgba(219,75,145,.18)}
.guided-options .panels-drawer{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  width:100%!important;
  max-width:none!important;
  min-height:0!important;
  max-height:none!important;
  display:block!important;
  overflow:visible!important;
  visibility:visible!important;
  opacity:1!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.guided-options .drawer-head{
  position:static!important;
  min-height:62px!important;
  padding:11px 15px!important;
  border-bottom:1px solid rgba(255,255,255,.055)!important;
  background:rgba(0,0,0,.08)!important;
}
.guided-options .drawer-copy strong{font-size:16px!important;color:#fff}
.guided-options .drawer-copy span{font-size:10px!important;color:#8e98aa!important}
.guided-options .drawer-close{display:none!important}
.guided-options .panels{overflow:visible!important;max-height:none!important}
.guided-options .panel{
  display:none!important;
  width:100%!important;
  max-width:none!important;
  padding:16px!important;
  overflow:visible!important;
}
.guided-options .panel.active{display:block!important}
.guided-options .panel>.ctrl,
.guided-options .panel>.time-card,
.guided-options .panel>.advanced-tools,
.guided-options .panel>.image-size-card,
.guided-options .panel>.custom-image-card{max-width:none!important}
.guided-options .media-role-grid,
.guided-options .media-setting-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.guided-options .filter-row{grid-template-columns:repeat(auto-fill,minmax(86px,1fr))!important}
.guided-options .sticker-grid{grid-template-columns:repeat(auto-fill,minmax(58px,1fr))!important}

/* Ebenen und Zeit bleiben nach den aktiven Optionen */
.guided-main>.under-stage-workspace{
  position:static!important;
  width:100%!important;
  max-height:none!important;
  margin:0!important;
  overflow:visible!important;
  border:0!important;
  background:transparent!important;
}
.guided-main>.under-stage-workspace>.media-library{display:none!important}
.guided-main>.under-stage-workspace>.layers-bar,
.guided-main>.under-stage-workspace>.timeline-under-stage,
.guided-main>.under-stage-workspace>.layer-order-panel{border-radius:18px!important;overflow:hidden}
.editor.guided-editor.sidebar-open .panels-drawer{transform:none!important}
.editor.guided-editor .sidebar-backdrop{display:none!important}

/* Vorschau-Fokus blendet Seitenmenü und Optionen gezielt aus. */
body.preview-focus .guided-workspace{display:block!important;max-width:1200px}
body.preview-focus .guided-side,body.preview-focus .guided-options,body.preview-focus .guided-main>.under-stage-workspace,
body.preview-focus .guided-canvas-title{display:none!important}
body.preview-focus .guided-main>.stage{min-height:calc(100dvh - 145px)!important}
body.preview-focus .guided-main>.stage canvas{max-height:calc(100dvh - 175px)!important}

@media (max-width:900px){
  .guided-workspace{grid-template-columns:156px minmax(0,1fr);gap:11px;padding:10px 10px 28px}
  .guided-side{top:70px;padding:9px;border-radius:18px}
  .guided-side .tool-dock{grid-template-columns:1fr!important}
  .guided-side .tool-dock .tab{min-height:50px!important;flex-direction:row;justify-content:flex-start;padding:7px 9px!important;gap:8px}
  .guided-side .tool-dock .tab svg{width:19px!important;height:19px!important;min-width:19px}
  .guided-side .tool-dock .tab span{font-size:9px!important;text-align:left}
  .guided-side .media-card{grid-template-columns:46px minmax(0,1fr)!important;min-height:56px!important}
  .guided-side .media-card-preview{width:46px!important;height:46px!important;min-width:46px!important}
  body:not(.easy-mode) .guided-main>.stage{min-height:clamp(330px,53dvh,650px)!important}
  .guided-main>.stage canvas{max-height:calc(53dvh - 28px)!important}
}

@media (max-width:620px){
  body:not(.easy-mode) .topbar{min-height:58px!important;padding:calc(var(--safe-t) + 6px) 7px 6px!important}
  .guided-workspace{
    grid-template-columns:88px minmax(0,1fr);
    gap:7px;
    padding:7px 7px calc(20px + var(--safe-b));
  }
  .guided-side{
    top:66px;
    max-height:calc(100dvh - 73px);
    padding:6px;
    gap:7px;
    border-radius:16px;
  }
  .guided-section-title{min-height:34px;gap:5px}
  .guided-section-title>span{width:22px;height:22px;min-width:22px;border-radius:7px;font-size:9px}
  .guided-section-title div{min-width:0}
  .guided-section-title strong{font-size:9px}
  .guided-section-title small{display:none}
  .guided-section-title.tools-title{padding-top:7px}
  .guided-side .media-library{min-height:104px;max-height:31dvh!important;border-radius:12px!important}
  .guided-side .media-library-head{min-height:34px!important;padding:4px!important}
  .guided-side .media-library-add{min-height:29px!important;padding:5px!important;font-size:8px!important}
  .guided-side .media-library-scroll{padding:5px!important;gap:5px!important}
  .guided-side .media-card{
    min-height:65px!important;
    display:flex!important;
    flex-direction:column!important;
    gap:3px!important;
    padding:4px!important;
    text-align:center!important;
  }
  .guided-side .media-card-preview{width:51px!important;height:51px!important;min-width:51px!important}
  .guided-side .media-card-copy{width:100%!important}
  .guided-side .media-card-name{font-size:7px!important;text-align:center}
  .guided-side .media-card-meta{display:none!important}
  .guided-side .media-library-empty{min-height:82px!important;padding:6px!important}
  .guided-side .media-library-empty strong{font-size:8px!important}
  .guided-side .media-library-empty span{display:none!important}
  .guided-side .media-empty-upload{font-size:7.5px!important;padding:5px!important}
  .guided-side .tool-dock{grid-template-columns:1fr!important;gap:5px!important}
  .guided-side .tool-dock .tab{
    min-height:46px!important;
    padding:5px 3px!important;
    flex-direction:column!important;
    justify-content:center!important;
    gap:3px!important;
    border-radius:11px!important;
  }
  .guided-side .tool-dock .tab svg{width:18px!important;height:18px!important;min-width:18px}
  .guided-side .tool-dock .tab span{font-size:7.2px!important;text-align:center!important;line-height:1!important}
  .guided-main{gap:7px}
  .guided-canvas-title{min-height:34px;padding:0 2px;display:block}
  .guided-canvas-title>div{gap:5px}
  .guided-canvas-title span{font-size:7px}
  .guided-canvas-title strong{font-size:10px}
  .guided-canvas-title small{display:none}
  body:not(.easy-mode) .guided-main>.stage{
    min-height:clamp(280px,48dvh,530px)!important;
    padding:7px!important;
    border-radius:18px!important;
  }
  .guided-main>.stage canvas{max-height:calc(48dvh - 14px)!important;border-radius:8px}
  .guided-main>.stage .stage-quick-tools{top:7px!important;right:7px!important}
  .guided-main>.stage .stage-quick{min-width:37px!important;height:37px!important;padding:0!important}
  .guided-main>.stage .stage-quick span{display:none!important}
  .guided-main>.stage .stage-hint{display:none!important}
  .guided-main>.playbar{min-height:43px!important;padding:4px 6px!important;border-radius:13px!important}
  .guided-options{border-radius:17px}
  .guided-options-kicker{min-height:43px;padding:6px 10px;gap:7px}
  .guided-options-kicker>span{width:24px;height:24px;min-width:24px;font-size:10px}
  .guided-options-kicker strong{font-size:11px}
  .guided-options-kicker small{font-size:8px}
  .guided-options .drawer-head{min-height:54px!important;padding:9px 11px!important}
  .guided-options .drawer-copy strong{font-size:14px!important}
  .guided-options .drawer-copy span{font-size:9px!important}
  .guided-options .panel{padding:11px!important}
  .guided-options .media-role-grid,
  .guided-options .media-setting-grid{grid-template-columns:1fr!important}
  .guided-options .simple-action,.guided-options .setting-jump{min-height:60px!important}
  .guided-options .filter-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .guided-options .sticker-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

@media (max-width:380px){
  .guided-workspace{grid-template-columns:80px minmax(0,1fr);gap:5px;padding-left:5px;padding-right:5px}
  .guided-side{padding:5px}
  .guided-side .media-card-preview{width:45px!important;height:45px!important;min-width:45px!important}
  .guided-side .tool-dock .tab{min-height:43px!important}
  body:not(.easy-mode) .guided-main>.stage{min-height:270px!important}
  .guided-options .filter-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
/* Feste Arbeitsreihenfolge trotz älterer Editor-order-Regeln. */
.guided-main>.guided-canvas-title{order:0!important}
.guided-main>.stage{order:1!important}
.guided-main>.playbar{order:2!important}
.guided-main>.guided-options{order:3!important}
.guided-main>.under-stage-workspace{order:4!important}
.editor.guided-editor.sidebar-open .guided-side .tool-dock,
.editor.guided-editor .guided-side .tool-dock{transform:none!important}

/* =========================================================
   GifWerk 2.4.5 – Vollständig smartphone-optimierter Editor
   Mobile: Medien oben, Canvas volle Breite, Werkzeuge fest unten
   ========================================================= */
@media (max-width:760px){
  body:not(.easy-mode){
    overscroll-behavior-x:none;
    -webkit-text-size-adjust:100%;
  }
  body:not(.easy-mode) .editor.guided-editor{
    min-height:calc(100dvh - 58px);
    padding-bottom:calc(82px + var(--safe-b))!important;
  }

  /* Eine echte einspaltige Smartphone-Arbeitsfläche statt gequetschter Seitenleiste. */
  .guided-workspace{
    width:100%!important;
    max-width:760px!important;
    margin:0 auto!important;
    padding:8px 8px 18px!important;
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
  }
  .guided-side{
    position:static!important;
    top:auto!important;
    width:100%!important;
    max-height:none!important;
    padding:7px!important;
    display:block!important;
    overflow:visible!important;
    border-radius:18px!important;
    background:linear-gradient(155deg,rgba(22,29,42,.96),rgba(13,18,28,.97))!important;
    border:1px solid rgba(255,255,255,.075)!important;
    box-shadow:0 12px 34px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.035)!important;
  }
  .guided-section-title{display:none!important}

  /* Medien als kompakte horizontale Galerie. */
  .guided-side .media-library{
    width:100%!important;
    min-height:116px!important;
    max-height:none!important;
    border-radius:14px!important;
    background:transparent!important;
  }
  .guided-side .media-library-head{
    min-height:42px!important;
    padding:3px 4px 7px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    border-bottom:1px solid rgba(255,255,255,.055)!important;
  }
  .guided-side .media-library-head>div{
    display:block!important;
    min-width:0!important;
    padding-left:3px!important;
  }
  .guided-side .media-library-head strong{
    display:block!important;
    font-size:12px!important;
    line-height:1.15!important;
    color:#f2f4f8!important;
  }
  .guided-side .media-library-head span{
    display:block!important;
    margin-top:2px!important;
    font-size:8px!important;
    line-height:1.2!important;
    color:#7f899c!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .guided-side .media-library-add{
    width:auto!important;
    min-width:82px!important;
    min-height:34px!important;
    padding:7px 10px!important;
    flex:0 0 auto!important;
    font-size:10px!important;
    border-radius:11px!important;
  }
  .guided-side .media-library-scroll{
    width:100%!important;
    min-height:70px!important;
    padding:7px 3px 2px!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:stretch!important;
    gap:7px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x proximity!important;
    scroll-padding-inline:3px!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .guided-side .media-library-scroll::-webkit-scrollbar{height:3px}
  .guided-side .media-library-empty{
    width:100%!important;
    min-width:100%!important;
    min-height:66px!important;
    padding:9px!important;
    display:grid!important;
    place-content:center!important;
    border-radius:12px!important;
  }
  .guided-side .media-library-empty strong{font-size:11px!important}
  .guided-side .media-library-empty span{display:block!important;font-size:8px!important}
  .guided-side .media-empty-upload{min-height:34px!important;font-size:9px!important}
  .guided-side .media-card{
    width:78px!important;
    min-width:78px!important;
    min-height:90px!important;
    padding:5px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:4px!important;
    border-radius:13px!important;
    scroll-snap-align:start!important;
    text-align:center!important;
  }
  .guided-side .media-card-preview{
    width:64px!important;
    height:60px!important;
    min-width:64px!important;
    flex:0 0 60px!important;
    border-radius:10px!important;
  }
  .guided-side .media-card-copy{width:100%!important;min-width:0!important;padding:0!important}
  .guided-side .media-card-name{
    width:100%!important;
    font-size:7.5px!important;
    line-height:1.1!important;
    text-align:center!important;
  }
  .guided-side .media-card-meta{display:none!important}
  .guided-side .media-card-kind{font-size:6px!important}

  /* Die tatsächlichen Werkzeug-Tabs bleiben immer erreichbar wie eine native App-Leiste. */
  .guided-side .tool-dock{
    position:fixed!important;
    left:8px!important;
    right:8px!important;
    bottom:calc(7px + var(--safe-b))!important;
    z-index:46!important;
    width:auto!important;
    max-width:744px!important;
    min-height:64px!important;
    margin:0 auto!important;
    padding:5px!important;
    display:grid!important;
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    gap:3px!important;
    overflow:visible!important;
    border:1px solid rgba(255,255,255,.11)!important;
    border-radius:20px!important;
    background:rgba(13,18,28,.94)!important;
    box-shadow:0 18px 55px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.055)!important;
    backdrop-filter:blur(22px) saturate(145%)!important;
    -webkit-backdrop-filter:blur(22px) saturate(145%)!important;
  }
  .guided-side .tool-dock .tab{
    width:100%!important;
    min-width:0!important;
    min-height:52px!important;
    padding:5px 1px 4px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    gap:3px!important;
    border:0!important;
    border-radius:14px!important;
    background:transparent!important;
    box-shadow:none!important;
    touch-action:manipulation!important;
  }
  .guided-side .tool-dock .tab svg{
    width:20px!important;
    height:20px!important;
    min-width:20px!important;
  }
  .guided-side .tool-dock .tab span{
    display:block!important;
    max-width:100%!important;
    font-size:7px!important;
    line-height:1!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .guided-side .tool-dock .tab.active{
    color:#fff!important;
    background:linear-gradient(145deg,rgba(139,92,246,.95),rgba(100,61,211,.95))!important;
    box-shadow:0 7px 18px rgba(91,51,190,.30),inset 0 1px 0 rgba(255,255,255,.17)!important;
  }

  .guided-main{width:100%!important;min-width:0!important;gap:8px!important}
  .guided-canvas-title{
    min-height:34px!important;
    padding:0 5px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
  }
  .guided-canvas-title>div{gap:6px!important}
  .guided-canvas-title span{font-size:7px!important}
  .guided-canvas-title strong{font-size:11px!important}
  .guided-canvas-title small{display:none!important}

  /* Volle Displaybreite für die eigentliche Arbeit. */
  body:not(.easy-mode) .guided-main>.stage{
    width:100%!important;
    min-height:min(69dvh,590px)!important;
    max-height:none!important;
    padding:8px!important;
    border-radius:20px!important;
  }
  .guided-main>.stage canvas{
    max-width:100%!important;
    max-height:min(67dvh,574px)!important;
    border-radius:10px!important;
  }
  .guided-main>.stage .stage-quick-tools{top:8px!important;right:8px!important;gap:5px!important}
  .guided-main>.stage .stage-quick{
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    padding:0!important;
    border-radius:13px!important;
  }
  .guided-main>.stage .stage-quick span{display:none!important}
  .guided-main>.stage .stage-hint{display:none!important}

  .guided-main>.playbar{
    min-height:52px!important;
    padding:6px 9px!important;
    border-radius:16px!important;
  }
  .guided-main>.playbar .round{width:42px!important;height:42px!important;min-width:42px!important}
  .guided-main>.playbar .frame-count{min-width:48px!important;font-size:12px!important}

  /* Optionen vollständig lesbar, touchfreundlich und ohne iOS-Zoom. */
  .guided-options{border-radius:19px!important}
  .guided-options-kicker{min-height:48px!important;padding:7px 11px!important}
  .guided-options-kicker>span{width:28px!important;height:28px!important;min-width:28px!important;font-size:11px!important}
  .guided-options-kicker strong{font-size:13px!important}
  .guided-options-kicker small{font-size:8.5px!important}
  .guided-options .drawer-head{min-height:56px!important;padding:9px 12px!important}
  .guided-options .drawer-copy strong{font-size:15px!important}
  .guided-options .drawer-copy span{font-size:9px!important;line-height:1.3!important}
  .guided-options .panel{padding:12px!important}
  .guided-options input[type="text"],
  .guided-options input[type="number"],
  .guided-options input[type="url"],
  .guided-options select,
  .guided-options textarea{
    min-height:50px!important;
    font-size:16px!important;
    border-radius:14px!important;
  }
  .guided-options textarea{min-height:92px!important}
  .guided-options button,
  .guided-options label.simple-action,
  .guided-options .setting-jump{
    touch-action:manipulation!important;
  }
  .guided-options .simple-action,.guided-options .setting-jump{min-height:58px!important}
  .guided-options .media-role-grid,.guided-options .media-setting-grid{grid-template-columns:1fr!important}
  .guided-options .filter-row{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
  .guided-options .sticker-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important}
  .guided-options .ctrl{margin-bottom:15px!important}
  .guided-options .ctrl-head label{font-size:12px!important}
  .guided-options .val{font-size:12px!important}
  .guided-options input[type=range]{min-height:34px!important}
  .guided-options .chip{min-height:42px!important;padding:8px 10px!important}
  .guided-main>.under-stage-workspace{padding-bottom:4px!important}
  .guided-main>.under-stage-workspace>.layers-bar,
  .guided-main>.under-stage-workspace>.timeline-under-stage,
  .guided-main>.under-stage-workspace>.layer-order-panel{border-radius:16px!important}

  /* Kopfzeile kompakt, aber alle Kernaktionen bleiben erreichbar. */
  body:not(.easy-mode) .topbar{
    min-height:56px!important;
    padding:calc(var(--safe-t) + 6px) 8px 6px!important;
  }
  body:not(.easy-mode) .brand{font-size:17px!important;flex:0 0 auto!important}
  body:not(.easy-mode) .top-actions{gap:4px!important;min-width:0!important}
  body:not(.easy-mode) .global-upload-btn,
  body:not(.easy-mode) .top-export-btn,
  body:not(.easy-mode) .topbar .icon-btn{
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    padding:0!important;
    justify-content:center!important;
    border-radius:13px!important;
  }
  body:not(.easy-mode) .global-upload-btn span,
  body:not(.easy-mode) .top-export-btn span{display:none!important}
}

@media (max-width:390px){
  .guided-workspace{padding-left:6px!important;padding-right:6px!important}
  .guided-side{padding:6px!important}
  .guided-side .media-library-add{min-width:72px!important;padding-left:7px!important;padding-right:7px!important}
  .guided-side .tool-dock{left:5px!important;right:5px!important;bottom:calc(5px + var(--safe-b))!important;padding:4px!important;gap:2px!important}
  .guided-side .tool-dock .tab{min-height:50px!important;border-radius:12px!important}
  .guided-side .tool-dock .tab svg{width:19px!important;height:19px!important}
  .guided-side .tool-dock .tab span{font-size:6.5px!important}
  body:not(.easy-mode) .guided-main>.stage{min-height:min(66dvh,540px)!important}
  .guided-main>.stage canvas{max-height:min(64dvh,524px)!important}
}

@media (max-width:340px){
  body:not(.easy-mode) .brand{font-size:15px!important}
  body:not(.easy-mode) .global-upload-btn,
  body:not(.easy-mode) .top-export-btn,
  body:not(.easy-mode) .topbar .icon-btn{width:36px!important;min-width:36px!important;height:38px!important;min-height:38px!important}
  .guided-side .media-library-head span{display:none!important}
  .guided-side .media-library-add{min-width:66px!important;font-size:9px!important}
  .guided-side .tool-dock .tab span{font-size:5.8px!important}
  .guided-options .filter-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media (orientation:landscape) and (max-height:600px) and (max-width:950px){
  body:not(.easy-mode) .editor.guided-editor{padding-bottom:calc(68px + var(--safe-b))!important}
  .guided-workspace{max-width:none!important;padding:6px!important}
  .guided-side .media-library{min-height:92px!important}
  .guided-side .media-library-head{min-height:34px!important;padding-bottom:4px!important}
  .guided-side .media-library-scroll{min-height:52px!important;padding-top:4px!important}
  .guided-side .media-card{width:66px!important;min-width:66px!important;min-height:58px!important;flex-direction:row!important}
  .guided-side .media-card-preview{width:48px!important;height:48px!important;min-width:48px!important;flex-basis:48px!important}
  .guided-side .media-card-copy{display:none!important}
  .guided-side .tool-dock{min-height:56px!important}
  .guided-side .tool-dock .tab{min-height:44px!important}
  body:not(.easy-mode) .guided-main>.stage{min-height:calc(100dvh - 136px)!important}
  .guided-main>.stage canvas{max-height:calc(100dvh - 152px)!important}
}

/* Die erste Smartphone-Ansicht zeigt Canvas und Werkzeugleiste ohne Überdeckung. */
@media (max-width:760px) and (orientation:portrait){
  body:not(.easy-mode) .guided-main>.stage{
    min-height:min(58dvh,520px)!important;
  }
  .guided-main>.stage canvas{
    max-height:min(56dvh,504px)!important;
  }
}
@media (max-width:390px) and (orientation:portrait){
  body:not(.easy-mode) .guided-main>.stage{min-height:min(56dvh,490px)!important}
  .guided-main>.stage canvas{max-height:min(54dvh,474px)!important}
}

@media (max-width:760px) and (orientation:portrait){
  body:not(.easy-mode) .guided-main>.stage #preview{
    width:auto!important;
    height:auto!important;
    max-width:100%!important;
    max-height:min(56dvh,504px)!important;
  }
}
@media (max-width:390px) and (orientation:portrait){
  body:not(.easy-mode) .guided-main>.stage #preview{max-height:min(54dvh,474px)!important}
}

@media (max-width:760px){
  .guided-side{
    position:relative!important;
    z-index:60!important;
  }
  .guided-main{position:relative!important;z-index:1!important}
}

@media (max-width:760px){
  body:not(.easy-mode) .editor.guided-editor{
    height:auto!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch!important;
    scroll-padding-top:8px!important;
    scroll-padding-bottom:calc(82px + var(--safe-b))!important;
  }
  .guided-options-kicker{
    position:sticky!important;
    top:0!important;
    z-index:14!important;
    background:rgba(18,24,35,.96)!important;
    backdrop-filter:blur(16px)!important;
    -webkit-backdrop-filter:blur(16px)!important;
  }
}

/* Der geführte Editor kann in jeder Displaygröße seine vollständigen Optionen erreichen. */
body:not(.easy-mode) .editor.guided-editor{
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
}
@media (orientation:landscape) and (max-height:600px) and (max-width:950px){
  body:not(.easy-mode) .editor.guided-editor{
    scroll-padding-top:6px!important;
    scroll-padding-bottom:16px!important;
  }
  .guided-side{
    top:6px!important;
    max-height:calc(100dvh - 68px)!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
}


/* =========================================================
   GifWerk 2.4.5 – Neues Projekt sicher von vorn beginnen
   ========================================================= */
.new-project-btn{
  min-height:42px;padding:8px 12px;border:1px solid rgba(251,113,133,.24);border-radius:14px;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;
  background:linear-gradient(135deg,rgba(251,113,133,.13),rgba(251,113,133,.055));
  color:#ffd3dc;font-size:12px;font-weight:850;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 8px 22px rgba(0,0,0,.14)
}
.new-project-btn:hover{background:rgba(251,113,133,.16);border-color:rgba(251,113,133,.42);color:#fff}
.new-project-btn:active{transform:scale(.97)}
.new-project-btn svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.new-project-dialog{z-index:110!important}
.new-project-card{max-width:420px!important;text-align:center;padding:25px!important}
.new-project-symbol{
  width:62px;height:62px;margin:0 auto 16px;border-radius:20px;display:grid;place-items:center;
  color:#ff9aae;background:linear-gradient(145deg,rgba(251,113,133,.22),rgba(251,113,133,.08));
  border:1px solid rgba(251,113,133,.28);box-shadow:0 16px 34px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.08)
}
.new-project-symbol svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.new-project-card h3{margin:0 0 10px;font-size:23px;letter-spacing:-.035em}
.new-project-card p{margin:0;color:#aeb6c6;font-size:14px;line-height:1.55}
.new-project-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:10px;margin-top:23px}
.new-project-actions button{min-height:50px;border-radius:15px;font-size:13px;font-weight:850;cursor:pointer}
.btn-danger-primary{
  border:1px solid rgba(251,113,133,.42);background:linear-gradient(135deg,#ef526f,#c93658);color:#fff;
  box-shadow:0 12px 28px rgba(201,54,88,.22),inset 0 1px 0 rgba(255,255,255,.16)
}
.btn-danger-primary:hover{filter:brightness(1.08)}
body.new-project-dialog-open{overflow:hidden}

@media (max-width:760px), (orientation:landscape) and (max-height:600px) and (max-width:950px){
  .new-project-btn{
    width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;
    padding:0!important;border-radius:13px!important
  }
  .new-project-btn span{display:none!important}
}
@media (max-width:390px){
  .new-project-card{padding:22px 16px calc(18px + var(--safe-b))!important;border-radius:26px 26px 0 0!important}
  .new-project-actions{grid-template-columns:1fr;gap:8px}
  .new-project-actions button{min-height:52px}
}
@media (max-width:340px){
  .new-project-btn{width:36px!important;min-width:36px!important;height:38px!important;min-height:38px!important}
}

/* =========================================================
   GifWerk 2.4.5 – Aktive Medienauswahl + sichtbarer Prozessstatus
   ========================================================= */
.media-selection-status{
  display:grid;
  grid-template-columns:82px 1fr;
  gap:12px;
  align-items:center;
  padding:12px;
  margin:12px 0 14px;
  border-radius:20px;
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg,rgba(13,18,30,.96),rgba(10,14,24,.92));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 14px 32px rgba(0,0,0,.22)
}
.media-selection-status.empty{opacity:.95}
.media-selection-status.processing{border-color:rgba(45,212,191,.34);box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 16px 34px rgba(16,185,129,.12)}
.media-selection-status.error{border-color:rgba(251,113,133,.36)}
.media-selection-preview{
  width:82px;height:82px;border-radius:18px;overflow:hidden;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);
  display:grid;place-items:center;color:#cbd5e1;font-weight:900;font-size:26px
}
.media-selection-preview img,.media-selection-preview video{width:100%;height:100%;object-fit:cover;display:block}
.media-selection-copy{min-width:0;display:grid;gap:6px}
.media-selection-kicker{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#9f8cff;font-weight:900}
.media-selection-copy strong{font-size:16px;line-height:1.2;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.media-selection-copy > span{font-size:13px;line-height:1.45;color:#a9b4c8}
.media-selection-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.media-selection-role,.media-selection-activity{
  display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;
  font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase
}
.media-selection-role{background:rgba(139,92,246,.16);border:1px solid rgba(139,92,246,.28);color:#d8c7ff}
.media-selection-activity{background:rgba(45,212,191,.12);border:1px solid rgba(45,212,191,.24);color:#b5fff3}
.media-selection-status.error .media-selection-activity{background:rgba(251,113,133,.12);border-color:rgba(251,113,133,.26);color:#ffd2da}
.media-selection-progress{height:8px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.05)}
.media-selection-progress i{display:block;height:100%;width:0%;border-radius:999px;background:linear-gradient(90deg,#8b5cf6,#2dd4bf);transition:width .2s ease}
.media-card.selected{border-color:rgba(139,92,246,.56)!important;box-shadow:0 0 0 2px rgba(139,92,246,.18), inset 0 1px 0 rgba(255,255,255,.04)}
.media-card.selected .media-card-name{color:#fff}
.media-card[aria-current="true"] .media-card-current{background:#8b5cf6;color:#fff}
.media-setting-grid .setting-jump:disabled,
.simple-action:disabled{opacity:.48;filter:saturate(.55);cursor:not-allowed}

@media (max-width:760px), (orientation:landscape) and (max-height:600px) and (max-width:950px){
  .media-selection-status{grid-template-columns:68px 1fr;padding:11px 12px;border-radius:18px;margin:10px 0 12px}
  .media-selection-preview{width:68px;height:68px;border-radius:16px}
  .media-selection-copy strong{font-size:15px}
  .media-selection-copy > span{font-size:12px}
  .media-selection-role,.media-selection-activity{font-size:10px;padding:0 9px;min-height:26px}
}

/* =========================================================
   GifWerk 2.4.5 – Automatisches Hauptmedium + lückenloser Status
   ========================================================= */
.media-selection-status.processing .media-selection-activity{animation:gifwerkStatusPulse 1.15s ease-in-out infinite}
.media-selection-status.processing .media-selection-progress i{position:relative;overflow:hidden}
.media-selection-status.processing .media-selection-progress i::after{
  content:"";position:absolute;inset:0;transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.38),transparent);
  animation:gifwerkProgressSweep 1.2s linear infinite
}
.media-card{position:relative}
.media-card.processing{pointer-events:none;border-color:rgba(45,212,191,.62)!important;box-shadow:0 0 0 2px rgba(45,212,191,.18),0 14px 28px rgba(8,145,130,.14)!important}
.media-card-process{
  position:absolute;right:8px;bottom:8px;z-index:4;min-width:42px;height:25px;padding:0 8px;
  border-radius:999px;display:inline-flex;align-items:center;justify-content:center;
  color:#07130f;background:#62f3d8;border:1px solid rgba(255,255,255,.38);
  font-size:11px;font-weight:950;box-shadow:0 8px 18px rgba(0,0,0,.28)
}
body.media-processing .tool-dock,
body.media-processing .playbar,
body.media-processing .guided-options,
body.media-processing .layers-bar,
body.media-processing .timeline-under-stage{
  opacity:.42;pointer-events:none;user-select:none
}
body.media-processing .media-library-add{opacity:.42;pointer-events:none}
@keyframes gifwerkStatusPulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.25)}}
@keyframes gifwerkProgressSweep{to{transform:translateX(100%)}}
@media (prefers-reduced-motion:reduce){
  .media-selection-status.processing .media-selection-activity,
  .media-selection-status.processing .media-selection-progress i::after{animation:none}
}

/* =========================================================
   GifWerk 2.4.5 – Zuverlässige Live-Ebenenreihenfolge
   ========================================================= */
.layer-order-live{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:20px;padding:0 8px;margin-left:7px;border-radius:999px;
  font-style:normal;font-size:9px;font-weight:950;letter-spacing:.12em;
  color:#b7fff4;background:rgba(45,212,191,.13);border:1px solid rgba(45,212,191,.28);
  vertical-align:middle
}
.layer-order-live::before{
  content:"";width:6px;height:6px;margin-right:5px;border-radius:50%;background:#2dd4bf;
  box-shadow:0 0 0 0 rgba(45,212,191,.45);animation:gifwerkLayerLive 1.8s infinite
}
@keyframes gifwerkLayerLive{0%{box-shadow:0 0 0 0 rgba(45,212,191,.42)}70%{box-shadow:0 0 0 7px rgba(45,212,191,0)}100%{box-shadow:0 0 0 0 rgba(45,212,191,0)}}
.layer-pill.active{
  outline:2px solid rgba(139,92,246,.24);outline-offset:1px
}
.layer-pill.frontmost .layer-z{color:#b7fff4;border-color:rgba(45,212,191,.3);background:rgba(45,212,191,.12)}
.layer-pill.backmost:not(.frontmost) .layer-z{color:#d8c7ff;border-color:rgba(139,92,246,.3);background:rgba(139,92,246,.12)}
.layer-order-actions button:not(:disabled){transition:transform .12s ease,background .12s ease,border-color .12s ease,box-shadow .12s ease}
.layer-order-actions button:not(:disabled):active{box-shadow:0 0 0 3px rgba(139,92,246,.18)}
@media (prefers-reduced-motion:reduce){.layer-order-live::before{animation:none}}

/* =========================================================
   GifWerk 2.4.11 – Medien direkt als frei sortierbare Ebenen
   ========================================================= */
.media-direct-order{
  margin-top:14px;
  padding:14px;
  border:1px solid rgba(139,92,246,.24);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(139,92,246,.09),rgba(45,212,191,.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)
}
.media-direct-order-head{display:grid;gap:4px;margin-bottom:12px}
.media-direct-order-head strong{font-size:15px;color:#fff}
.media-direct-order-head span{font-size:12px;line-height:1.45;color:#aab4c7}
.media-direct-order-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.media-direct-order-actions button{
  min-height:58px;padding:9px 8px;border-radius:15px;
  border:1px solid rgba(148,163,184,.18);background:rgba(12,16,27,.84);color:#eef2ff;
  display:grid;grid-template-columns:28px 1fr;align-items:center;text-align:left;gap:7px;
  font:inherit;cursor:pointer;transition:transform .14s ease,border-color .14s ease,background .14s ease
}
.media-direct-order-actions button span{font-size:22px;line-height:1;color:#a78bfa;text-align:center}
.media-direct-order-actions button b{font-size:12px;line-height:1.2}
.media-direct-order-actions button:not(:disabled):active{transform:scale(.975)}
.media-direct-order-actions button:not(:disabled):hover{border-color:rgba(139,92,246,.42);background:rgba(139,92,246,.12)}
.media-direct-order-actions button:disabled{opacity:.38;cursor:not-allowed}
.media-role-grid{grid-template-columns:1fr!important}
.layer-pill.background-layer .layer-z{color:#a78bfa}
.layer-pill.background-layer .dot{background:#a78bfa!important;box-shadow:0 0 0 4px rgba(167,139,250,.12)}
.layer-order-actions button:not(:disabled),.media-direct-order-actions button:not(:disabled){touch-action:manipulation}

@media (max-width:760px), (orientation:landscape) and (max-height:600px) and (max-width:950px){
  .media-direct-order{margin-top:12px;padding:12px;border-radius:16px}
  .media-direct-order-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .media-direct-order-actions button{min-height:56px;border-radius:14px}
}
@media (max-width:350px){
  .media-direct-order-actions{grid-template-columns:1fr}
}

/* =========================================================
   GifWerk 2.4.11 – Professioneller Startzustand
   ========================================================= */
body.project-empty .new-project-btn,
body.project-empty .easy-return-btn,
body.project-empty .top-export-btn{display:none!important}
body.project-empty .loader{overflow-y:auto;-webkit-overflow-scrolling:touch;align-items:flex-start}
.start-landing{padding:clamp(20px,4vw,48px) 16px calc(30px + var(--safe-b))!important}
.start-shell{
  width:min(100%,1040px);margin:auto;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr);
  gap:22px;align-items:stretch
}
.start-hero,.start-guide,.start-process-card{
  border:1px solid rgba(255,255,255,.09);border-radius:30px;
  background:linear-gradient(155deg,rgba(24,30,45,.94),rgba(12,16,26,.94));
  box-shadow:0 28px 72px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.06)
}
.start-hero{padding:clamp(26px,5vw,48px);position:relative;overflow:hidden}
.start-hero::after{
  content:"";position:absolute;width:240px;height:240px;border-radius:50%;right:-120px;top:-100px;
  background:radial-gradient(circle,rgba(139,92,246,.28),transparent 68%);pointer-events:none
}
.start-eyebrow{display:flex;align-items:center;gap:9px;margin-bottom:22px;color:#b9a3ff;font-size:12px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.start-eyebrow span{width:9px;height:9px;border-radius:50%;background:#2dd4bf;box-shadow:0 0 0 6px rgba(45,212,191,.10)}
.start-logo-mark{margin:0 0 24px!important;width:76px!important;height:76px!important;border-radius:23px!important}
.start-hero h1{max-width:600px;margin:0 0 16px;font-size:clamp(35px,7vw,64px);line-height:.98;letter-spacing:-.065em;color:#fff}
.start-hero .loader-lead{max-width:620px!important;margin:0 0 28px!important;font-size:clamp(15px,2vw,18px)!important;line-height:1.58!important;color:#b8c0cf!important}
.start-primary-upload{width:100%;max-width:410px;min-height:64px!important;margin:0;border-radius:19px!important;font-size:16px!important}
.start-format-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:17px}
.start-format-row span,.start-capabilities span{
  display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border-radius:999px;
  border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#aeb8ca;font-size:11px;font-weight:800
}
.start-hero .loader-privacy{margin:18px 0 0!important;max-width:520px;color:#778197!important}
.start-guide{padding:28px;display:flex;flex-direction:column;justify-content:center}
.start-guide-head{display:grid;gap:4px;margin-bottom:6px}
.start-guide-head small{color:#2dd4bf;font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.start-guide-head strong{font-size:22px;letter-spacing:-.035em;color:#fff}
.start-guide .loader-steps{margin:20px 0}
.start-guide .loader-step{grid-template-columns:46px minmax(0,1fr)}
.start-capabilities{display:flex;gap:7px;flex-wrap:wrap}
.start-process-card{grid-column:1/-1;padding:22px 24px;border-color:rgba(45,212,191,.28);background:linear-gradient(145deg,rgba(13,27,34,.97),rgba(12,16,27,.97))}
.start-process-card.error{border-color:rgba(251,113,133,.36)}
.start-process-top{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:14px;align-items:center}
.start-process-icon{width:54px;height:54px;border-radius:17px;display:grid;place-items:center;background:rgba(139,92,246,.17);border:1px solid rgba(139,92,246,.25);font-size:20px;font-weight:900;color:#d6c8ff}
.start-process-top div:nth-child(2){display:grid;gap:2px;min-width:0}
.start-process-top small{font-size:10px;letter-spacing:.15em;text-transform:uppercase;color:#76eada;font-weight:900}
.start-process-top strong{font-size:18px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.start-process-top>b{font-size:20px;color:#75eadb}
.start-process-card>p{margin:16px 0 10px!important;color:#c1c8d5!important;font-size:14px}
.start-process-progress{height:11px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.05)}
.start-process-progress i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8b5cf6,#5d8cf3,#2dd4bf);transition:width .18s ease}
.start-process-card>span{display:block;margin-top:9px;color:#8994a8;font-size:12px}
.start-process-retry{display:flex;justify-content:center;align-items:center;min-height:48px;margin-top:16px;border-radius:15px;border:1px solid rgba(251,113,133,.35);background:rgba(251,113,133,.12);color:#ffd5dc;font-weight:850;cursor:pointer}
body.project-empty.media-processing .start-guide{opacity:.62}
body.project-empty.media-processing .start-primary-upload{pointer-events:none;opacity:.55}

@media (max-width:760px){
  .start-landing{padding:14px 12px calc(24px + var(--safe-b))!important}
  .start-shell{grid-template-columns:1fr;gap:12px}
  .start-hero,.start-guide,.start-process-card{border-radius:24px}
  .start-hero{padding:25px 20px 22px}
  .start-logo-mark{width:64px!important;height:64px!important;border-radius:20px!important;margin-bottom:20px!important}
  .start-hero h1{font-size:clamp(34px,11vw,48px)}
  .start-hero .loader-lead{font-size:15px!important;margin-bottom:22px!important}
  .start-primary-upload{max-width:none;min-height:60px!important}
  .start-guide{padding:22px 18px}
  .start-guide-head strong{font-size:20px}
  .start-guide .loader-step{grid-template-columns:42px minmax(0,1fr);padding:11px}
  .start-guide .loader-step>b{width:42px;height:42px}
  .start-process-card{padding:18px 16px}
  .start-process-top{grid-template-columns:46px minmax(0,1fr) auto;gap:10px}
  .start-process-icon{width:46px;height:46px;border-radius:14px}
  .start-process-top strong{font-size:15px}
  .start-process-top>b{font-size:16px}
}

@media (max-width:360px){
  .start-hero{padding:22px 16px 20px}
  .start-guide{padding:19px 14px}
  .start-format-row span,.start-capabilities span{font-size:10px;padding:0 9px}
}


/* =========================================================
   GifWerk 2.4.11 – Löschbutton für ausgewähltes Medium
   ========================================================= */
.delete-media-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 14px;border-radius:16px;
  border:1px solid rgba(251,113,133,.28);background:linear-gradient(145deg,rgba(251,113,133,.14),rgba(251,113,133,.06));
  color:#ffd3dc;font-size:12px;font-weight:850;cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 8px 22px rgba(0,0,0,.14)
}
.delete-media-btn:hover{background:rgba(251,113,133,.16);border-color:rgba(251,113,133,.42);color:#fff}
.delete-media-btn:active{transform:scale(.97)}
.delete-media-btn svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.delete-media-btn.disabled,.delete-media-btn:disabled{opacity:.42;cursor:not-allowed;transform:none;box-shadow:none}
body.project-empty .delete-media-btn{display:none!important}
@media (max-width:760px), (orientation:landscape) and (max-height:600px) and (max-width:950px){
  .delete-media-btn{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;border-radius:13px!important}
  .delete-media-btn span{display:none!important}
}
@media (max-width:340px){
  .delete-media-btn{width:36px!important;min-width:36px!important;height:38px!important;min-height:38px!important}
}

/* =========================================================
   GifWerk 2.5.0 – Minimal Clean Studio Layout
   Kompakter Header, horizontale Medienleiste, große Canvas,
   ein zentrales Werkzeugmenü ohne Funktionsverlust.
   ========================================================= */
:root{
  --studio-bg:#090b0f;
  --studio-surface:#11151b;
  --studio-surface-2:#171c24;
  --studio-surface-3:#1d232d;
  --studio-line:rgba(255,255,255,.09);
  --studio-line-strong:rgba(255,255,255,.16);
  --studio-text:#f6f7f9;
  --studio-muted:#929baa;
  --studio-accent:#7c6cff;
  --studio-accent-soft:rgba(124,108,255,.14);
  --studio-danger:#ff718a;
  --studio-radius:16px;
  --studio-radius-sm:11px;
  --studio-shadow:0 18px 54px rgba(0,0,0,.28);
}

body:not(.easy-mode){background:var(--studio-bg)!important}
body:not(.easy-mode) .topbar{
  min-height:58px!important;
  padding:calc(var(--safe-t) + 7px) 12px 7px!important;
  background:rgba(9,11,15,.94)!important;
  border-bottom:1px solid var(--studio-line)!important;
  box-shadow:none!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}
body:not(.easy-mode) .brand{
  font-size:18px!important;
  font-weight:850!important;
  letter-spacing:-.045em!important;
}
body:not(.easy-mode) .top-actions{gap:5px!important;min-width:0}

.tool-menu-btn,
.new-project-btn,
.delete-media-btn,
body:not(.easy-mode) .global-upload-btn,
body:not(.easy-mode) .top-export-btn,
body:not(.easy-mode) .topbar .icon-btn{
  min-height:40px!important;
  height:40px!important;
  padding:0 12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  border:1px solid var(--studio-line)!important;
  border-radius:11px!important;
  background:rgba(255,255,255,.035)!important;
  color:#dfe3e9!important;
  box-shadow:none!important;
  font-size:11px!important;
  font-weight:760!important;
  cursor:pointer;
}
.tool-menu-btn:hover,
.new-project-btn:hover,
body:not(.easy-mode) .global-upload-btn:hover,
body:not(.easy-mode) .topbar .icon-btn:hover{
  background:rgba(255,255,255,.075)!important;
  border-color:var(--studio-line-strong)!important;
  color:#fff!important;
}
.tool-menu-btn svg,
.new-project-btn svg,
.delete-media-btn svg,
body:not(.easy-mode) .global-upload-btn svg,
body:not(.easy-mode) .top-export-btn svg{
  width:18px!important;height:18px!important;stroke-width:1.9!important
}
body:not(.easy-mode) .top-export-btn{
  background:#f3f4f6!important;
  border-color:#f3f4f6!important;
  color:#101217!important;
}
body:not(.easy-mode) .top-export-btn svg{color:#101217!important}
body:not(.easy-mode) .top-export-btn:hover{background:#fff!important;border-color:#fff!important}
.delete-media-btn{
  border-color:rgba(255,113,138,.22)!important;
  background:rgba(255,113,138,.07)!important;
  color:#ffafbd!important;
}
.delete-media-btn:hover{background:rgba(255,113,138,.13)!important;border-color:rgba(255,113,138,.38)!important}
.tool-menu-btn[aria-expanded="true"]{
  background:var(--studio-accent-soft)!important;
  border-color:rgba(124,108,255,.42)!important;
  color:#dcd7ff!important;
}

/* Haupteditor scrollt kontrolliert innerhalb des festen App-Viewports. */
body:not(.easy-mode) .editor.minimal-editor{
  position:relative!important;
  display:block!important;
  flex:1 1 auto!important;
  min-height:0!important;
  width:100%!important;
  padding:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  background:var(--studio-bg)!important;
}
body:not(.easy-mode) .editor.minimal-editor>.simple-progress,
body:not(.easy-mode) .editor.minimal-editor>.easy-mode-panel{display:none!important}

.minimal-studio{
  width:min(1480px,100%);
  margin:0 auto;
  padding:10px 14px calc(24px + var(--safe-b));
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Medienleiste */
.minimal-media-strip{
  position:relative;
  z-index:12;
  width:100%;
  border:1px solid var(--studio-line);
  border-radius:var(--studio-radius);
  background:var(--studio-surface);
  overflow:hidden;
}
.minimal-media-title{
  min-height:43px;
  padding:8px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,.065);
}
.minimal-media-title>div{display:flex;align-items:baseline;gap:9px;min-width:0}
.minimal-media-title strong{font-size:13px;color:var(--studio-text)}
.minimal-media-title span{font-size:10px;color:var(--studio-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.minimal-media-strip .media-library{
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  min-height:0!important;
  max-height:none!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  overflow:hidden!important;
}
.minimal-media-strip .media-library-head{
  min-height:42px!important;
  padding:6px 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  border-bottom:1px solid rgba(255,255,255,.055)!important;
  background:rgba(255,255,255,.012)!important;
}
.minimal-media-strip .media-library-head>div{display:none!important}
.minimal-media-strip .media-library-add{
  width:auto!important;
  min-height:31px!important;
  padding:6px 11px!important;
  border:1px solid rgba(124,108,255,.30)!important;
  border-radius:9px!important;
  background:var(--studio-accent-soft)!important;
  color:#d9d4ff!important;
  font-size:10px!important;
  font-weight:800!important;
}
.minimal-media-strip .media-library-scroll{
  width:100%!important;
  min-height:82px!important;
  padding:8px 10px 10px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:stretch!important;
  gap:8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x proximity!important;
  -webkit-overflow-scrolling:touch!important;
}
.minimal-media-strip .media-library-scroll::before{display:none!important;content:none!important}
.minimal-media-strip .media-library-empty{
  width:100%!important;
  min-width:100%!important;
  min-height:66px!important;
  padding:10px!important;
  display:grid!important;
  place-content:center!important;
  border:1px dashed rgba(255,255,255,.10)!important;
  border-radius:11px!important;
  background:rgba(255,255,255,.018)!important;
}
.minimal-media-strip .media-library-empty strong{font-size:11px!important}
.minimal-media-strip .media-library-empty span{font-size:9px!important;color:var(--studio-muted)!important}
.minimal-media-strip .media-card{
  width:112px!important;
  min-width:112px!important;
  min-height:104px!important;
  padding:5px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.025)!important;
  box-shadow:none!important;
  scroll-snap-align:start!important;
  text-align:left!important;
}
.minimal-media-strip .media-card:hover{border-color:rgba(255,255,255,.16)!important;background:rgba(255,255,255,.045)!important}
.minimal-media-strip .media-card.active{
  border-color:rgba(124,108,255,.58)!important;
  background:rgba(124,108,255,.10)!important;
  box-shadow:inset 0 0 0 1px rgba(124,108,255,.13)!important;
}
.minimal-media-strip .media-card-preview{
  width:100%!important;height:64px!important;min-width:0!important;flex:0 0 64px!important;
  border-radius:8px!important;overflow:hidden!important;background:#080a0d!important
}
.minimal-media-strip .media-card-copy{width:100%!important;min-width:0!important;padding:0 2px!important}
.minimal-media-strip .media-card-name{font-size:9px!important;line-height:1.2!important;color:#e9ebef!important}
.minimal-media-strip .media-card-meta{display:none!important}
.minimal-media-strip .media-card-use{display:none!important}
.minimal-media-strip .media-selection-status{display:none!important}

/* Canvas */
.minimal-canvas-column{width:100%;min-width:0;display:flex;flex-direction:column;gap:8px}
.minimal-canvas-head{
  min-height:44px;
  padding:0 4px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.minimal-canvas-head>div{display:flex;align-items:baseline;gap:9px;min-width:0}
.minimal-canvas-head strong{font-size:14px;color:var(--studio-text)}
.minimal-canvas-head span{font-size:10px;color:var(--studio-muted)}
.minimal-open-tools{
  min-height:36px;padding:0 11px;border:1px solid var(--studio-line);border-radius:10px;
  display:inline-flex;align-items:center;gap:7px;background:var(--studio-surface);color:#dfe3e9;
  font-size:10px;font-weight:800;cursor:pointer
}
.minimal-open-tools:hover{background:var(--studio-surface-2);border-color:var(--studio-line-strong)}
.minimal-open-tools svg{width:17px;height:17px}
body:not(.easy-mode) .minimal-canvas-column>.stage{
  position:relative!important;
  inset:auto!important;
  order:initial!important;
  width:100%!important;
  min-height:clamp(360px,60dvh,780px)!important;
  max-height:none!important;
  margin:0!important;
  padding:14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  border:1px solid var(--studio-line)!important;
  border-radius:var(--studio-radius)!important;
  background:
    linear-gradient(45deg,rgba(255,255,255,.015) 25%,transparent 25%,transparent 75%,rgba(255,255,255,.015) 75%),
    linear-gradient(45deg,rgba(255,255,255,.015) 25%,transparent 25%,transparent 75%,rgba(255,255,255,.015) 75%),
    #0d1015!important;
  background-position:0 0,12px 12px!important;
  background-size:24px 24px!important;
  box-shadow:none!important;
}
.minimal-canvas-column>.stage canvas{
  max-width:100%!important;
  max-height:calc(60dvh - 28px)!important;
  border-radius:8px!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.10),0 20px 56px rgba(0,0,0,.42)!important
}
.minimal-canvas-column>.stage>.tool-dock{display:none!important}
.minimal-canvas-column>.stage .stage-quick-tools{top:10px!important;right:10px!important;left:auto!important;transform:none!important;gap:5px!important;padding:0!important;background:transparent!important;box-shadow:none!important}
.minimal-canvas-column>.stage .stage-quick{
  min-width:38px!important;height:38px!important;padding:0 10px!important;border:1px solid var(--studio-line)!important;
  border-radius:10px!important;background:rgba(12,15,20,.82)!important;color:#dfe3e9!important;box-shadow:none!important
}
.minimal-canvas-column>.stage .stage-hint{
  top:auto!important;bottom:10px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;
  max-width:calc(100% - 24px)!important;padding:5px 9px!important;border:1px solid var(--studio-line)!important;
  border-radius:999px!important;background:rgba(10,12,16,.78)!important;color:#aeb5c0!important;font-size:9px!important
}
.minimal-canvas-column>.playbar{
  position:static!important;order:initial!important;width:100%!important;min-height:48px!important;margin:0!important;
  padding:5px 9px!important;border:1px solid var(--studio-line)!important;border-radius:12px!important;
  background:var(--studio-surface)!important;box-shadow:none!important
}
.minimal-canvas-column>.playbar .round{width:38px!important;height:38px!important;min-width:38px!important;background:var(--studio-accent)!important;box-shadow:none!important}

/* Ebenen, Zeitleiste und Abschlussaktionen bleiben vollständig erhalten. */
.minimal-canvas-column>.under-stage-workspace{
  position:static!important;order:initial!important;width:100%!important;max-height:none!important;margin:0!important;
  padding:0!important;overflow:visible!important;border:0!important;background:transparent!important
}
.minimal-canvas-column>.under-stage-workspace>.media-library{display:none!important}
.minimal-canvas-column>.under-stage-workspace>.layers-bar,
.minimal-canvas-column>.under-stage-workspace>.layer-order-panel,
.minimal-canvas-column>.under-stage-workspace>.timeline-under-stage{
  position:static!important;inset:auto!important;width:100%!important;margin:0 0 8px!important;
  border:1px solid var(--studio-line)!important;border-radius:12px!important;
  background:var(--studio-surface)!important;box-shadow:none!important;overflow:hidden!important
}
.minimal-canvas-column>.action-bar{
  position:static!important;order:initial!important;width:100%!important;min-height:0!important;margin:0!important;
  padding:4px 0 0!important;display:grid!important;grid-template-columns:minmax(100px,.28fr) minmax(180px,.72fr)!important;
  gap:8px!important;background:transparent!important;border:0!important;box-shadow:none!important
}
.minimal-canvas-column>.action-bar .btn-ghost,
.minimal-canvas-column>.action-bar .btn-make{
  width:100%!important;max-width:none!important;min-height:46px!important;margin:0!important;padding:9px 12px!important;
  border-radius:11px!important;box-shadow:none!important
}
.minimal-canvas-column>.action-bar .btn-make{background:#f3f4f6!important;color:#101217!important;border:1px solid #f3f4f6!important}

/* Werkzeugdrawer */
.editor.minimal-editor .sidebar-backdrop{
  position:fixed!important;inset:0!important;z-index:72!important;background:rgba(0,0,0,.56)!important;
  backdrop-filter:blur(2px)!important;-webkit-backdrop-filter:blur(2px)!important
}
.editor.minimal-editor .panels-drawer{
  position:fixed!important;
  top:0!important;bottom:0!important;left:0!important;right:auto!important;
  z-index:80!important;
  width:min(390px,calc(100vw - 24px))!important;
  max-width:none!important;max-height:none!important;
  display:flex!important;flex-direction:column!important;
  overflow:hidden!important;
  transform:translateX(-103%)!important;
  visibility:visible!important;opacity:1!important;
  border:0!important;border-right:1px solid var(--studio-line)!important;border-radius:0 16px 16px 0!important;
  background:#0e1117!important;
  box-shadow:24px 0 70px rgba(0,0,0,.48)!important;
  transition:transform .22s ease!important;
  backdrop-filter:none!important;
}
.editor.minimal-editor.sidebar-open .panels-drawer{transform:translateX(0)!important}
.editor.minimal-editor .drawer-head{
  position:relative!important;order:0!important;flex:0 0 auto!important;min-height:68px!important;
  padding:calc(var(--safe-t) + 11px) 13px 10px!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
  border-bottom:1px solid var(--studio-line)!important;background:#0e1117!important
}
.editor.minimal-editor .drawer-copy strong{font-size:15px!important;color:#fff!important}
.editor.minimal-editor .drawer-copy span{font-size:9px!important;color:var(--studio-muted)!important}
.editor.minimal-editor .drawer-close{
  display:grid!important;width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;
  border:1px solid var(--studio-line)!important;border-radius:10px!important;background:rgba(255,255,255,.03)!important
}
.editor.minimal-editor .minimal-tool-menu{
  position:static!important;inset:auto!important;order:1!important;transform:none!important;
  flex:0 0 auto!important;width:100%!important;max-width:none!important;max-height:none!important;
  padding:10px!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;overflow:visible!important;opacity:1!important;pointer-events:auto!important;
  border:0!important;border-bottom:1px solid var(--studio-line)!important;border-radius:0!important;
  background:#0e1117!important;box-shadow:none!important;backdrop-filter:none!important
}
.editor.minimal-editor .minimal-tool-menu .tab{
  width:100%!important;min-width:0!important;min-height:48px!important;padding:7px 9px!important;
  display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;
  border:1px solid rgba(255,255,255,.07)!important;border-radius:10px!important;
  background:rgba(255,255,255,.025)!important;color:#aeb5c0!important;box-shadow:none!important
}
.editor.minimal-editor .minimal-tool-menu .tab::after{display:none!important}
.editor.minimal-editor .minimal-tool-menu .tab svg{width:19px!important;height:19px!important;min-width:19px!important}
.editor.minimal-editor .minimal-tool-menu .tab span{display:block!important;font-size:10px!important;line-height:1.1!important;white-space:normal!important;text-align:left!important}
.editor.minimal-editor .minimal-tool-menu .tab:hover{background:rgba(255,255,255,.055)!important;color:#fff!important}
.editor.minimal-editor .minimal-tool-menu .tab.active{
  border-color:rgba(124,108,255,.42)!important;background:var(--studio-accent-soft)!important;color:#dedaff!important
}
.editor.minimal-editor .panels{
  order:2!important;flex:1 1 auto!important;min-height:0!important;max-height:none!important;
  padding:0!important;overflow-y:auto!important;overflow-x:hidden!important;
  background:#0e1117!important;overscroll-behavior:contain!important
}
.editor.minimal-editor .panel{display:none!important;padding:15px 13px calc(20px + var(--safe-b))!important;background:transparent!important}
.editor.minimal-editor .panel.active{display:block!important;animation:none!important}
.editor.minimal-editor .panel h3,.editor.minimal-editor .panel h4{letter-spacing:-.025em!important}
.editor.minimal-editor .panel .simple-section,
.editor.minimal-editor .panel .ctrl,
.editor.minimal-editor .panel .time-card,
.editor.minimal-editor .panel .advanced-tools,
.editor.minimal-editor .panel .custom-image-card,
.editor.minimal-editor .panel .image-size-card,
.editor.minimal-editor .panel .media-direct-order{
  border-radius:12px!important;box-shadow:none!important
}
.editor.minimal-editor .panel input[type="text"],
.editor.minimal-editor .panel input[type="number"],
.editor.minimal-editor .panel input[type="url"],
.editor.minimal-editor .panel select,
.editor.minimal-editor .panel textarea{font-size:16px!important}

/* Fokusansicht */
body.preview-focus .minimal-media-strip,
body.preview-focus .minimal-canvas-head,
body.preview-focus .minimal-canvas-column>.under-stage-workspace,
body.preview-focus .minimal-canvas-column>.action-bar{display:none!important}
body.preview-focus .minimal-studio{height:100%;padding:8px!important}
body.preview-focus .minimal-canvas-column{height:100%}
body.preview-focus .minimal-canvas-column>.stage{flex:1 1 auto!important;min-height:calc(100dvh - 120px)!important}
body.preview-focus .minimal-canvas-column>.stage canvas{max-height:calc(100dvh - 150px)!important}

/* Startbereich ebenfalls ruhiger und klarer. */
body.project-empty .tool-menu-btn{display:none!important}
.start-landing{
  background:var(--studio-bg)!important;
  padding:clamp(18px,4vw,38px) 14px calc(24px + var(--safe-b))!important
}
.start-shell{width:min(100%,980px)!important;gap:12px!important}
.start-hero,.start-guide,.start-process-card{
  border:1px solid var(--studio-line)!important;border-radius:18px!important;
  background:var(--studio-surface)!important;box-shadow:none!important
}
.start-hero::after{display:none!important}
.start-eyebrow{margin-bottom:18px!important;color:#a9a1ff!important;font-size:10px!important}
.start-logo-mark{transform:none!important;box-shadow:none!important;border-radius:16px!important}
.start-hero h1{font-size:clamp(34px,6vw,58px)!important;line-height:1.02!important}
.start-primary-upload{border-radius:12px!important;box-shadow:none!important}
.start-format-row span,.start-capabilities span{border-radius:8px!important;background:rgba(255,255,255,.025)!important}
.start-guide{padding:22px!important}
.start-guide .loader-step{border-radius:12px!important;background:rgba(255,255,255,.02)!important}

@media (min-width:1100px){
  .minimal-studio{padding-left:18px;padding-right:18px}
  .minimal-media-strip .media-library-scroll{padding-left:12px!important;padding-right:12px!important}
}

@media (max-width:760px){
  body:not(.easy-mode) .topbar{min-height:54px!important;padding:calc(var(--safe-t) + 5px) 7px 5px!important}
  body:not(.easy-mode) .brand{font-size:16px!important}
  body:not(.easy-mode) .top-actions{gap:3px!important}
  .tool-menu-btn,
  .new-project-btn,
  .delete-media-btn,
  body:not(.easy-mode) .global-upload-btn,
  body:not(.easy-mode) .top-export-btn,
  body:not(.easy-mode) .topbar .icon-btn{
    width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;border-radius:10px!important
  }
  .tool-menu-btn span,
  .new-project-btn span,
  .delete-media-btn span,
  body:not(.easy-mode) .global-upload-btn span,
  body:not(.easy-mode) .top-export-btn span{display:none!important}
  .minimal-studio{padding:7px 7px calc(18px + var(--safe-b));gap:7px}
  .minimal-media-strip{border-radius:13px}
  .minimal-media-title{min-height:37px;padding:6px 9px}
  .minimal-media-title strong{font-size:12px}
  .minimal-media-title span{font-size:8px}
  .minimal-media-strip .media-library-head{min-height:37px!important;padding:5px 8px!important}
  .minimal-media-strip .media-library-scroll{min-height:75px!important;padding:6px 7px 8px!important;gap:6px!important}
  .minimal-media-strip .media-card{width:84px!important;min-width:84px!important;min-height:90px!important;padding:4px!important;border-radius:10px!important}
  .minimal-media-strip .media-card-preview{height:57px!important;flex-basis:57px!important;border-radius:7px!important}
  .minimal-media-strip .media-card-name{font-size:7.5px!important;text-align:center!important}
  .minimal-canvas-head{min-height:37px;padding:0 2px}
  .minimal-canvas-head strong{font-size:12px}
  .minimal-canvas-head>div span{display:none}
  .minimal-open-tools{width:36px;min-width:36px;height:36px;min-height:36px;padding:0;justify-content:center}
  .minimal-open-tools span{display:none}
  body:not(.easy-mode) .minimal-canvas-column>.stage{
    min-height:min(64dvh,580px)!important;padding:7px!important;border-radius:13px!important
  }
  .minimal-canvas-column>.stage canvas{max-height:calc(64dvh - 14px)!important;border-radius:7px!important}
  .minimal-canvas-column>.stage .stage-quick-tools{top:7px!important;right:7px!important}
  .minimal-canvas-column>.stage .stage-quick{width:36px!important;min-width:36px!important;height:36px!important;padding:0!important}
  .minimal-canvas-column>.stage .stage-quick span{display:none!important}
  .minimal-canvas-column>.stage .stage-hint{display:none!important}
  .minimal-canvas-column>.playbar{min-height:45px!important;padding:4px 7px!important;border-radius:11px!important}
  .minimal-canvas-column>.action-bar{grid-template-columns:104px minmax(0,1fr)!important;gap:6px!important}
  .minimal-canvas-column>.action-bar .btn-ghost,.minimal-canvas-column>.action-bar .btn-make{min-height:44px!important;font-size:13px!important}
  .editor.minimal-editor .panels-drawer{width:min(360px,calc(100vw - 18px))!important;border-radius:0 14px 14px 0!important}
  .editor.minimal-editor .minimal-tool-menu{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:8px!important;gap:6px!important}
  .editor.minimal-editor .minimal-tool-menu .tab{min-height:46px!important;padding:6px 8px!important}
  .editor.minimal-editor .panel{padding:12px 11px calc(18px + var(--safe-b))!important}
  .start-shell{grid-template-columns:1fr!important}
}

@media (max-width:370px){
  body:not(.easy-mode) .brand{font-size:15px!important}
  .tool-menu-btn,.new-project-btn,.delete-media-btn,body:not(.easy-mode) .global-upload-btn,body:not(.easy-mode) .top-export-btn,body:not(.easy-mode) .topbar .icon-btn{
    width:35px!important;min-width:35px!important;height:36px!important;min-height:36px!important
  }
  .minimal-media-title span{display:none}
  .minimal-media-strip .media-card{width:78px!important;min-width:78px!important}
}

@media (orientation:landscape) and (max-height:650px) and (max-width:950px){
  .minimal-studio{padding-top:5px}
  .minimal-media-title{display:none}
  .minimal-media-strip .media-library-head{display:none!important}
  .minimal-media-strip .media-library-scroll{min-height:66px!important;padding:5px!important}
  .minimal-media-strip .media-card{width:72px!important;min-width:72px!important;min-height:61px!important;display:block!important}
  .minimal-media-strip .media-card-preview{height:51px!important;flex-basis:51px!important}
  .minimal-media-strip .media-card-copy{display:none!important}
  .minimal-canvas-head{display:none}
  body:not(.easy-mode) .minimal-canvas-column>.stage{min-height:calc(100dvh - 190px)!important;padding:5px!important}
  .minimal-canvas-column>.stage canvas{max-height:calc(100dvh - 200px)!important}
}

@media (prefers-reduced-motion:reduce){
  .editor.minimal-editor .panels-drawer{transition:none!important}
}

/* Startzustand muss trotz der Editor-Layoutregeln vollständig erhalten bleiben. */
body .editor.minimal-editor.hidden{display:none!important}
body.project-empty:not(.easy-mode) .tool-menu-btn,
body.project-empty:not(.easy-mode) .new-project-btn,
body.project-empty:not(.easy-mode) .delete-media-btn,
body.project-empty:not(.easy-mode) .easy-return-btn,
body.project-empty:not(.easy-mode) .top-export-btn{display:none!important}


/* =========================================================
   GifWerk 2.5.1 – Medien getrennt aus der Szene entfernen
   ========================================================= */
.scene-remove-action{
  border-color:rgba(255,113,138,.24)!important;
  background:rgba(255,113,138,.055)!important;
}
.scene-remove-action .simple-action-icon{
  background:rgba(255,113,138,.12)!important;
  color:#ff9daf!important;
}
.scene-remove-action.active{
  border-color:rgba(255,113,138,.42)!important;
  background:rgba(255,113,138,.09)!important;
}
.scene-remove-action.active:hover{
  background:rgba(255,113,138,.14)!important;
}
.scene-remove-action:disabled{
  border-color:var(--studio-line)!important;
  background:rgba(255,255,255,.02)!important;
}
.scene-remove-action:disabled .simple-action-icon{
  background:rgba(255,255,255,.055)!important;
  color:var(--studio-muted)!important;
}


/* =========================================================
   GifWerk 2.6.0 – Echtzeit-Zeichnen auf Video-Frames
   ========================================================= */
.stage.draw-mode,
.stage.draw-mode canvas{
  cursor:crosshair;
}
.draw-tool-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:0 0 12px;
}
.draw-tool-grid > button{
  min-height:44px;
}
.draw-status{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:12px 14px;
  margin:0 0 12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.86);
}
.draw-status strong{
  font-size:.96rem;
}
.draw-status span{
  font-size:.84rem;
  color:rgba(255,255,255,.72);
}
.draw-action-chips{
  flex-wrap:wrap;
}
.layer-pill .dot{
  background:linear-gradient(180deg,#ff3d7f,#7a5dff);
}
@media (max-width: 640px){
  .draw-tool-grid{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   GifWerk 2.6.1 – Professional responsive start page
   ========================================================= */
html,
body,
body.editor-page,
body.project-empty,
body.project-empty .loader,
body.project-empty .start-landing{
  max-width:100%;
  overflow-x:hidden!important;
}
@supports (overflow:clip){
  html,
  body,
  body.editor-page,
  body.project-empty,
  body.project-empty .loader,
  body.project-empty .start-landing{overflow-x:clip!important}
}
body.project-empty .topbar{
  background:rgba(8,10,15,.96)!important;
  border-bottom:1px solid rgba(255,255,255,.075)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}
body.project-empty .brand{
  letter-spacing:-.045em!important;
}
body.project-empty .loader{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  padding:0!important;
  align-items:initial!important;
  justify-content:initial!important;
  background:
    radial-gradient(circle at 10% 8%,rgba(124,92,246,.10),transparent 29%),
    radial-gradient(circle at 92% 28%,rgba(45,212,191,.07),transparent 25%),
    #090c12!important;
}
.start-landing{
  width:100%!important;
  min-width:0!important;
  padding:clamp(22px,4.5vw,58px) clamp(14px,3vw,30px) calc(34px + var(--safe-b))!important;
}
.start-shell{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:min(100%,1120px)!important;
  max-width:1120px!important;
  min-width:0!important;
  margin:0 auto!important;
  gap:16px!important;
}
.start-shell>*{min-width:0!important;max-width:100%!important}
.start-hero{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(310px,.92fr)!important;
  align-items:center!important;
  gap:clamp(24px,5vw,72px)!important;
  width:100%!important;
  min-width:0!important;
  padding:clamp(30px,5.5vw,66px)!important;
  overflow:hidden!important;
  isolation:isolate!important;
  border:1px solid rgba(255,255,255,.085)!important;
  border-radius:28px!important;
  background:
    linear-gradient(145deg,rgba(20,25,36,.98),rgba(10,13,20,.99))!important;
  box-shadow:0 30px 90px rgba(0,0,0,.28)!important;
}
.start-hero::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:-2!important;
  background:
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px)!important;
  background-size:42px 42px!important;
  mask-image:linear-gradient(to right,rgba(0,0,0,.75),transparent 75%)!important;
  pointer-events:none!important;
}
.start-hero::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  z-index:-1!important;
  width:420px!important;
  height:420px!important;
  top:-220px!important;
  right:-140px!important;
  border-radius:50%!important;
  background:radial-gradient(circle,rgba(124,92,246,.19),transparent 68%)!important;
  pointer-events:none!important;
}
.start-hero-copy,
.start-visual{position:relative;z-index:1;min-width:0!important}
.start-eyebrow{
  display:inline-flex!important;
  width:max-content!important;
  max-width:100%!important;
  margin:0 0 21px!important;
  padding:7px 10px!important;
  gap:8px!important;
  border:1px solid rgba(167,139,250,.19)!important;
  border-radius:999px!important;
  background:rgba(124,92,246,.07)!important;
  color:#c4b5fd!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.14em!important;
  white-space:nowrap!important;
}
.start-eyebrow span{
  width:7px!important;
  height:7px!important;
  background:#2dd4bf!important;
  box-shadow:0 0 0 5px rgba(45,212,191,.10)!important;
}
.start-title-lockup{max-width:610px!important}
.start-hero h1{
  max-width:610px!important;
  margin:0 0 19px!important;
  color:#f8fafc!important;
  font-size:clamp(43px,6.4vw,72px)!important;
  line-height:.94!important;
  letter-spacing:-.067em!important;
  text-wrap:balance!important;
}
.start-hero h1 em{
  display:block!important;
  color:transparent!important;
  font-style:normal!important;
  background:linear-gradient(100deg,#a78bfa 5%,#7c5cff 48%,#2dd4bf 105%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
}
.start-hero .loader-lead{
  max-width:590px!important;
  margin:0 0 28px!important;
  color:#aeb7c8!important;
  font-size:clamp(15px,1.7vw,18px)!important;
  line-height:1.65!important;
  letter-spacing:-.012em!important;
}
.start-primary-upload{
  display:grid!important;
  grid-template-columns:46px minmax(0,1fr) auto!important;
  align-items:center!important;
  width:min(100%,460px)!important;
  max-width:460px!important;
  min-width:0!important;
  min-height:72px!important;
  margin:0!important;
  padding:9px 13px 9px 9px!important;
  gap:12px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:17px!important;
  color:#fff!important;
  background:linear-gradient(120deg,#895bff,#6947e8 58%,#5b3bd2)!important;
  box-shadow:0 18px 42px rgba(91,59,210,.24),inset 0 1px 0 rgba(255,255,255,.16)!important;
  text-align:left!important;
  cursor:pointer!important;
  transition:transform .18s ease,filter .18s ease,border-color .18s ease!important;
}
.start-primary-upload:hover{filter:brightness(1.055)!important;border-color:rgba(255,255,255,.22)!important}
.start-primary-upload:active{transform:scale(.985)!important}
.start-upload-icon{
  display:grid!important;
  place-items:center!important;
  width:46px!important;
  height:46px!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.14)!important;
  border:1px solid rgba(255,255,255,.12)!important;
}
.start-upload-icon svg{width:23px!important;height:23px!important;stroke-width:2!important}
.start-upload-copy{display:grid!important;gap:1px!important;min-width:0!important}
.start-upload-copy strong{font-size:16px!important;line-height:1.25!important;letter-spacing:-.015em!important}
.start-upload-copy small{color:rgba(255,255,255,.70)!important;font-size:11px!important;font-weight:650!important}
.start-upload-arrow{font-size:23px!important;line-height:1!important;color:rgba(255,255,255,.85)!important}
.start-trust-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:min(100%,520px)!important;
  margin-top:17px!important;
}
.start-format-row{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin:0!important}
.start-format-row span,
.start-capabilities span{
  min-height:27px!important;
  padding:0 9px!important;
  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.025)!important;
  color:#8490a4!important;
  font-size:9px!important;
  font-weight:900!important;
  letter-spacing:.09em!important;
}
.start-local-note{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  flex:0 0 auto!important;
  color:#8792a4!important;
  font-size:10px!important;
  font-weight:750!important;
}
.start-local-note svg{width:15px!important;height:15px!important;color:#2dd4bf!important}
.start-hero .loader-privacy{
  max-width:560px!important;
  margin:12px 0 0!important;
  color:#657086!important;
  font-size:10.5px!important;
  line-height:1.45!important;
}
.start-visual{
  display:grid!important;
  gap:13px!important;
  align-content:center!important;
  width:100%!important;
}
.visual-glow{
  position:absolute!important;
  border-radius:50%!important;
  filter:blur(25px)!important;
  opacity:.32!important;
  pointer-events:none!important;
}
.visual-glow-one{width:170px!important;height:170px!important;right:-35px!important;top:-30px!important;background:#7c5cff!important}
.visual-glow-two{width:120px!important;height:120px!important;left:-25px!important;bottom:15px!important;background:#2dd4bf!important;opacity:.17!important}
.visual-window{
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  padding:10px!important;
  border:1px solid rgba(255,255,255,.11)!important;
  border-radius:22px!important;
  background:rgba(7,10,16,.82)!important;
  box-shadow:0 24px 60px rgba(0,0,0,.36),inset 0 1px 0 rgba(255,255,255,.045)!important;
  transform:rotate(1.35deg)!important;
}
.visual-window-head{
  display:grid!important;
  grid-template-columns:1fr auto 1fr!important;
  align-items:center!important;
  height:30px!important;
  padding:0 4px 7px!important;
  color:#838da0!important;
  font-size:8.5px!important;
  letter-spacing:.04em!important;
}
.visual-window-head>b{justify-self:center!important;color:#d8deea!important;font-size:9px!important}
.visual-window-dots{display:flex!important;gap:4px!important}
.visual-window-dots i{display:block!important;width:5px!important;height:5px!important;border-radius:50%!important;background:#41495a!important}
.visual-window-dots i:first-child{background:#8b5cf6!important}.visual-window-dots i:nth-child(2){background:#2dd4bf!important}
.visual-live{justify-self:end!important;display:flex!important;align-items:center!important;gap:4px!important;color:#a7f3d0!important;font-size:7px!important;font-weight:900!important;letter-spacing:.12em!important}
.visual-live i{width:5px!important;height:5px!important;border-radius:50%!important;background:#2dd4bf!important;box-shadow:0 0 0 4px rgba(45,212,191,.09)!important}
.visual-canvas{
  position:relative!important;
  width:100%!important;
  aspect-ratio:1.36!important;
  min-height:210px!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:15px!important;
  background:
    linear-gradient(45deg,#121722 25%,transparent 25%),
    linear-gradient(-45deg,#121722 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#121722 75%),
    linear-gradient(-45deg,transparent 75%,#121722 75%),#0d1119!important;
  background-size:18px 18px!important;
  background-position:0 0,0 9px,9px -9px,-9px 0!important;
}
.visual-media{position:absolute!important;border-radius:16px!important;border:1px solid rgba(255,255,255,.13)!important}
.visual-media-back{width:49%!important;height:57%!important;left:10%!important;top:19%!important;background:linear-gradient(145deg,rgba(124,92,246,.58),rgba(23,29,44,.90))!important;transform:rotate(-7deg)!important;opacity:.62!important}
.visual-media-main{width:58%!important;left:23%!important;top:15%!important;overflow:hidden!important;box-shadow:0 20px 42px rgba(0,0,0,.37)!important;transform:rotate(2.8deg)!important}
.visual-media-main>svg{display:block!important;width:100%!important;height:auto!important;stroke:none!important}
.visual-play{position:absolute!important;inset:50% auto auto 50%!important;display:grid!important;place-items:center!important;width:38px!important;height:38px!important;margin:-19px!important;border-radius:50%!important;background:rgba(8,10,16,.68)!important;color:#fff!important;border:1px solid rgba(255,255,255,.18)!important;backdrop-filter:blur(8px)!important}
.visual-play svg{width:17px!important;height:17px!important}
.visual-drawing{position:absolute!important;inset:8% 7% auto!important;width:86%!important;height:82%!important;overflow:visible!important;pointer-events:none!important}
.visual-drawing path{fill:none!important;stroke:#ff5a95!important;stroke-width:5!important;stroke-linecap:round!important;stroke-linejoin:round!important;filter:drop-shadow(0 3px 7px rgba(255,61,127,.35))!important}
.visual-text-chip{position:absolute!important;left:7%!important;bottom:10%!important;padding:7px 9px!important;border-radius:8px!important;background:#fff!important;color:#111827!important;font-size:7px!important;font-weight:1000!important;letter-spacing:.11em!important;box-shadow:0 8px 24px rgba(0,0,0,.24)!important}
.visual-layer-card{position:absolute!important;right:5%!important;bottom:7%!important;display:flex!important;align-items:center!important;gap:7px!important;padding:8px 9px!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:10px!important;background:rgba(9,12,19,.84)!important;backdrop-filter:blur(12px)!important;color:#fff!important;box-shadow:0 10px 28px rgba(0,0,0,.28)!important}
.visual-layer-card>span{width:20px!important;height:20px!important;border-radius:6px!important;background:linear-gradient(145deg,#8b5cf6,#2dd4bf)!important}
.visual-layer-card>div{display:grid!important;gap:0!important}.visual-layer-card b{font-size:8px!important}.visual-layer-card small{font-size:6px!important;color:#8994a8!important}
.visual-timeline{display:grid!important;grid-template-columns:24px minmax(0,1fr) 35px!important;align-items:center!important;gap:7px!important;height:36px!important;padding:7px 3px 0!important}
.visual-play-mini{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;border-radius:50%!important;background:#7c5cff!important;color:#fff!important;font-size:7px!important}
.visual-track{position:relative!important;height:7px!important;border-radius:999px!important;background:#202634!important;overflow:visible!important}.visual-track i{display:block!important;width:61%!important;height:100%!important;border-radius:inherit!important;background:linear-gradient(90deg,#8b5cf6,#2dd4bf)!important}.visual-track b{position:absolute!important;left:61%!important;top:-4px!important;width:2px!important;height:15px!important;border-radius:2px!important;background:#fff!important;box-shadow:0 0 0 3px rgba(255,255,255,.09)!important}.visual-timeline small{color:#7c879a!important;font-size:7px!important;text-align:right!important}
.visual-feature-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
.visual-feature-row span{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-height:34px!important;border:1px solid rgba(255,255,255,.075)!important;border-radius:10px!important;background:rgba(255,255,255,.025)!important;color:#8e99ab!important;font-size:7.5px!important;font-weight:900!important;letter-spacing:.08em!important}.visual-feature-row i{color:#a78bfa!important;font-style:normal!important;font-size:10px!important}
.start-guide{
  display:grid!important;
  grid-template-columns:minmax(210px,.76fr) minmax(0,2fr) auto!important;
  align-items:center!important;
  gap:clamp(18px,3vw,34px)!important;
  width:100%!important;
  min-width:0!important;
  padding:20px 22px!important;
  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:20px!important;
  background:rgba(16,20,29,.82)!important;
  box-shadow:none!important;
}
.start-guide-head{display:grid!important;gap:4px!important;margin:0!important;min-width:0!important}
.start-guide-head>div{display:grid!important;gap:3px!important}
.start-guide-head small{color:#2dd4bf!important;font-size:9px!important;letter-spacing:.15em!important}
.start-guide-head strong{color:#f1f5f9!important;font-size:18px!important;letter-spacing:-.035em!important;line-height:1.2!important}
.start-guide-head>span{color:#69758a!important;font-size:10px!important}
.start-guide .loader-steps{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  margin:0!important;
  min-width:0!important;
}
.start-guide .loader-step{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  align-items:center!important;
  min-width:0!important;
  min-height:66px!important;
  padding:9px!important;
  gap:9px!important;
  border:1px solid rgba(255,255,255,.065)!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.018)!important;
}
.start-guide .loader-step.active{border-color:rgba(139,92,246,.27)!important;background:rgba(139,92,246,.055)!important}
.start-guide .loader-step>b{
  display:grid!important;
  place-items:center!important;
  width:34px!important;
  height:34px!important;
  border-radius:10px!important;
  background:#222838!important;
  color:#9aa4b7!important;
  font-size:12px!important;
  box-shadow:none!important;
}
.start-guide .loader-step.active>b{background:linear-gradient(145deg,#8b5cf6,#6844df)!important;color:#fff!important}
.start-guide .loader-step strong{font-size:11px!important;line-height:1.2!important;color:#edf2f8!important;white-space:normal!important}
.start-guide .loader-step small{font-size:8.5px!important;line-height:1.35!important;color:#7e899b!important;white-space:normal!important}
.start-capabilities{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:5px!important;max-width:142px!important}
.start-process-card{
  grid-column:auto!important;
  width:100%!important;
  border-radius:20px!important;
  box-shadow:none!important;
}
@media (max-width:900px){
  .start-hero{grid-template-columns:minmax(0,1fr) minmax(270px,.78fr)!important;gap:30px!important;padding:38px!important}
  .start-hero h1{font-size:clamp(42px,7vw,62px)!important}
  .start-guide{grid-template-columns:1fr!important;gap:14px!important}
  .start-guide-head{grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important}
  .start-guide-head>span{text-align:right!important}
  .start-capabilities{justify-content:flex-start!important;max-width:none!important}
}
@media (max-width:700px){
  body.project-empty .topbar{min-height:57px!important;padding:calc(var(--safe-t) + 6px) 10px 6px!important}
  body.project-empty .brand{font-size:17px!important}
  .start-landing{padding:12px 10px calc(24px + var(--safe-b))!important}
  .start-shell{gap:10px!important}
  .start-hero{
    grid-template-columns:minmax(0,1fr)!important;
    gap:25px!important;
    padding:26px 20px 20px!important;
    border-radius:22px!important;
  }
  .start-hero::before{background-size:32px 32px!important}
  .start-eyebrow{margin-bottom:17px!important;padding:6px 9px!important;font-size:8.5px!important}
  .start-title-lockup{max-width:none!important}
  .start-hero h1{
    max-width:540px!important;
    margin-bottom:16px!important;
    font-size:clamp(40px,12.1vw,56px)!important;
    line-height:.96!important;
    letter-spacing:-.064em!important;
  }
  .start-hero .loader-lead{margin-bottom:22px!important;font-size:14px!important;line-height:1.58!important}
  .start-primary-upload{width:100%!important;max-width:none!important;min-height:66px!important;grid-template-columns:42px minmax(0,1fr) auto!important;border-radius:15px!important}
  .start-upload-icon{width:42px!important;height:42px!important;border-radius:12px!important}.start-upload-copy strong{font-size:15px!important}
  .start-trust-row{width:100%!important;align-items:flex-start!important;flex-direction:column!important;gap:9px!important}
  .start-local-note{font-size:9.5px!important}
  .start-visual{gap:10px!important}
  .visual-window{width:min(100%,430px)!important;margin:0 auto!important;padding:8px!important;border-radius:18px!important;transform:none!important}
  .visual-canvas{min-height:0!important;aspect-ratio:1.55!important;border-radius:12px!important}
  .visual-feature-row{width:min(100%,430px)!important;margin:auto!important}
  .start-guide{padding:18px 16px!important;border-radius:18px!important;gap:14px!important}
  .start-guide-head{display:grid!important;grid-template-columns:1fr!important;gap:4px!important}
  .start-guide-head>span{text-align:left!important}
  .start-guide .loader-steps{grid-template-columns:1fr!important;gap:7px!important}
  .start-guide .loader-step{min-height:58px!important;grid-template-columns:38px minmax(0,1fr)!important;padding:8px 10px!important}
  .start-guide .loader-step>b{width:38px!important;height:38px!important}
  .start-guide .loader-step strong{font-size:12px!important}.start-guide .loader-step small{font-size:9.5px!important}
  .start-capabilities{max-width:none!important;justify-content:flex-start!important}
}
@media (max-width:390px){
  .start-landing{padding-left:8px!important;padding-right:8px!important}
  .start-hero{padding:23px 16px 18px!important;border-radius:20px!important}
  .start-hero h1{font-size:clamp(37px,11.8vw,48px)!important}
  .start-hero .loader-lead{font-size:13.5px!important}
  .start-primary-upload{min-height:62px!important;padding:8px 11px 8px 8px!important;gap:10px!important}
  .start-upload-icon{width:40px!important;height:40px!important}
  .start-upload-copy strong{font-size:14px!important}.start-upload-copy small{font-size:9.5px!important}
  .visual-layer-card{padding:6px 7px!important}.visual-text-chip{padding:6px 7px!important}
  .start-guide{padding:16px 13px!important}
}
@media (max-width:340px){
  .start-hero h1{font-size:36px!important}
  .start-format-row span{font-size:8px!important;padding:0 7px!important}
  .visual-feature-row{grid-template-columns:1fr!important}
  .visual-feature-row span{min-height:29px!important}
}

/* Startseiten-Außenabstand mit höherer Spezifität als der allgemeine Loader. */
body.project-empty .start-landing{
  padding:clamp(22px,4.5vw,58px) clamp(14px,3vw,30px) calc(34px + var(--safe-b))!important;
}
@media (max-width:700px){
  body.project-empty .start-landing{padding:12px 10px calc(24px + var(--safe-b))!important}
}
@media (max-width:390px){
  body.project-empty .start-landing{padding-left:8px!important;padding-right:8px!important}
}


/* Videoexport v2.7.1 */
#resultVideo{display:block;width:100%;max-height:62vh;background:#08090c;border-radius:14px;object-fit:contain}
#resultVideo.hidden,#resultImg.hidden{display:none!important}
.export-format-control .chips{grid-template-columns:1fr 1fr}
.export-format-control .chip{min-height:44px}


/* Sichtbare Exportauswahl v2.7.1 */
.export-choice-card{max-width:460px}
.export-choice-card .modal-head{align-items:flex-start}
.export-choice-kicker{display:block;margin:0 0 4px;color:var(--acc);font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.export-choice-description{margin:0 0 16px;color:var(--mut);font-size:13px;line-height:1.55}
.export-choice-options{display:grid;gap:11px}
.export-choice-option{width:100%;display:grid;grid-template-columns:52px minmax(0,1fr) 18px;align-items:center;gap:12px;padding:14px;border:1px solid var(--line2);border-radius:16px;background:rgba(255,255,255,.035);color:var(--txt);text-align:left;cursor:pointer;transition:border-color .16s,background .16s,transform .16s}
.export-choice-option:hover,.export-choice-option:focus-visible{border-color:var(--acc);background:rgba(109,234,216,.08);outline:none}
.export-choice-option:active{transform:scale(.99)}
.export-choice-icon{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.09);font-size:13px;font-weight:900;letter-spacing:.02em}
.export-choice-icon.video{background:rgba(109,234,216,.13);color:var(--acc);font-size:20px}
.export-choice-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.export-choice-copy strong{font-size:15px;line-height:1.25}
.export-choice-copy small{color:var(--mut);font-size:12px;line-height:1.35}
.export-choice-arrow{color:var(--mut);font-size:28px;line-height:1}
.export-choice-option.is-disabled,.export-choice-option:disabled{opacity:.48;cursor:not-allowed;transform:none;background:rgba(255,255,255,.02);border-color:var(--line2)}
.export-choice-note{min-height:18px;margin:12px 2px 0;color:var(--ok);font-size:11.5px;line-height:1.45}
.export-choice-note.is-error{color:#ff9d9d}
.export-choice-cancel{width:100%;margin-top:10px;min-height:46px}
@media (max-width:560px){
  .export-choice-card{padding:18px 16px 20px!important}
  .export-choice-option{grid-template-columns:48px minmax(0,1fr) 15px;padding:13px 12px;min-height:78px}
  .export-choice-icon{width:48px;height:48px}
  .export-choice-copy strong{font-size:15px}
  .export-choice-copy small{font-size:11.5px}
}


/* GifWerk 2.7.2 – sichere Touch-Sperre im Zeichenwerkzeug */
.stage.draw-locked{user-select:none;-webkit-user-select:none}
.stage.draw-locked #preview{cursor:crosshair}
.stage.draw-locked:not(.draw-mode) #preview{cursor:default}

/* GifWerk 2.7.3 – automatische Hintergrundentfernung mit manueller Freistellung */
.cutout-card{
  grid-template-rows:auto auto minmax(0,1fr) auto auto auto
}
.cutout-mode-tabs{
  display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px 12px;
  background:#0d111a;border-bottom:1px solid rgba(255,255,255,.08);position:relative;z-index:4
}
.cutout-mode-tabs button{
  min-height:40px;border:1px solid rgba(255,255,255,.10);border-radius:12px;
  background:rgba(255,255,255,.045);color:var(--mut);font:inherit;font-size:13px;font-weight:700;
  cursor:pointer;touch-action:manipulation
}
.cutout-mode-tabs button.active{
  color:#fff;background:linear-gradient(135deg,rgba(124,78,255,.38),rgba(86,45,190,.52));
  border-color:rgba(154,122,255,.62);box-shadow:inset 0 0 0 1px rgba(255,255,255,.035)
}
.cutout-stage::after{content:attr(data-hint)}
.cutout-stage.automatic #cutoutOverlay{opacity:0;pointer-events:none}
.cutout-stage.manual #cutoutOverlay{opacity:1}
.cutout-processing{
  position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:10px;background:rgba(7,9,15,.60);color:#fff;text-align:center;backdrop-filter:blur(2px);pointer-events:none
}
.cutout-processing strong{font-size:13px;font-weight:750}
.cutout-spinner{
  width:32px;height:32px;border-radius:50%;border:3px solid rgba(255,255,255,.18);
  border-top-color:#9a7bff;animation:cutout-spin .8s linear infinite
}
@keyframes cutout-spin{to{transform:rotate(360deg)}}
.cutout-auto-controls{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:9px 12px;background:#0e131e;
  border-top:1px solid rgba(255,255,255,.08)
}
.cutout-range{
  display:grid;gap:5px;min-width:0;padding:8px 10px;border:1px solid rgba(255,255,255,.08);
  border-radius:12px;background:rgba(255,255,255,.035)
}
.cutout-range>span{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}
.cutout-range b{font-size:12px;color:#f5f6fb}
.cutout-range output{color:#b7a5ff;font-weight:800;white-space:nowrap}
.cutout-range input[type=range]{width:100%;margin:0;min-height:24px}
.cutout-range small{color:var(--mut);font-size:10.5px;line-height:1.3}
.cutout-manual-controls{
  padding:8px 14px;background:#0e131e;border-top:1px solid rgba(255,255,255,.08)
}
.cutout-manual-controls p{margin:0;color:var(--mut);font-size:11.5px;line-height:1.4;text-align:center}
.cutout-status.warning{color:#ffb75f}
.cutout-tools .hidden,.cutout-auto-controls.hidden,.cutout-manual-controls.hidden,.cutout-processing.hidden{display:none!important}

@media (max-width:599px){
  .cutout-auto-controls{grid-template-columns:1fr;gap:6px;padding:7px 10px}
  .cutout-range{grid-template-columns:minmax(96px,.8fr) minmax(120px,1.2fr);align-items:center;gap:6px 10px;padding:7px 9px}
  .cutout-range>span{grid-column:1/2}
  .cutout-range input[type=range]{grid-column:2/3;grid-row:1/2}
  .cutout-range small{grid-column:1/-1;display:none}
  .cutout-mode-tabs{padding:7px 10px}
  .cutout-mode-tabs button{min-height:38px;font-size:12.5px}
}

@media (orientation:landscape) and (max-height:650px){
  .cutout-card{grid-template-rows:auto auto minmax(0,1fr) auto}
  .cutout-auto-controls,.cutout-manual-controls{position:absolute;left:8px;right:8px;bottom:calc(58px + var(--safe-b));z-index:6;border:1px solid rgba(255,255,255,.10);border-radius:12px;background:rgba(10,14,22,.94);backdrop-filter:blur(12px)}
  .cutout-auto-controls{grid-template-columns:1fr 1fr}
  .cutout-manual-controls{display:none}
  .cutout-status{bottom:calc(116px + var(--safe-b))}
}


/* GifWerk 2.7.4 – Auto-Radierer für Hintergrundreste + verzerrungsfreie Freistellungsansicht */
.cutout-touchup-box{
  display:grid;gap:8px;grid-column:1/-1;padding:8px 10px;border:1px solid rgba(255,255,255,.08);
  border-radius:12px;background:rgba(255,255,255,.03)
}
.cutout-touchup-box .btn-ghost{min-height:42px}
.cutout-touchup-box .btn-ghost.active,
.cutout-touchup-box .btn-ghost[aria-pressed="true"]{
  color:#fff;border-color:rgba(154,122,255,.62);
  background:linear-gradient(135deg,rgba(124,78,255,.28),rgba(86,45,190,.40))
}
.cutout-erase-range{padding:8px 0 0;border:0;background:transparent}
.cutout-stage.erase-mode::after{content:"Tippe eine zusammenhängende Farbe an"}
.cutout-stage.erase-mode #cutoutOverlay{opacity:1;pointer-events:auto}
@media (max-width:599px){
  .cutout-touchup-box{padding:7px 9px;gap:6px}
  .cutout-erase-range{padding-top:4px}
}
@media (orientation:landscape) and (max-height:650px){
  .cutout-touchup-box{grid-column:1/-1}
}


/* GifWerk 2.7.5 – Vollbild-Freisteller mit minimalem Bottom-Menü */
.cutout-card-v275{grid-template-rows:auto minmax(0,1fr) auto auto auto auto}
.cutout-card-v275 .cutout-stage{min-height:0;height:100%}
.cutout-bottom-menu{
  display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:9px 12px;
  background:#0d111a;border-top:1px solid rgba(255,255,255,.08)
}
.cutout-bottom-menu button{
  min-height:42px;padding:10px 8px;border:1px solid rgba(255,255,255,.10);border-radius:14px;
  background:rgba(255,255,255,.04);color:var(--mut);font:inherit;font-size:12.5px;font-weight:750;
  cursor:pointer;touch-action:manipulation
}
.cutout-bottom-menu button.active{
  color:#fff;background:linear-gradient(135deg,rgba(124,78,255,.34),rgba(86,45,190,.52));
  border-color:rgba(154,122,255,.62)
}
.cutout-inline-controls{background:#0e131e;border-top:1px solid rgba(255,255,255,.08)}
.cutout-inline-controls .hidden{display:none!important}
.cutout-tap-controls{padding:9px 12px;background:#0e131e}
.cutout-mode-help{margin:7px 2px 0;color:var(--mut);font-size:11px;line-height:1.35;text-align:center}
.cutout-stage.tap #cutoutOverlay{opacity:1;pointer-events:auto}
.cutout-stage.tap::after{content:attr(data-hint)}
.cutout-stage.tap-cursor::before{
  content:"";position:absolute;left:var(--tap-x,50%);top:var(--tap-y,50%);width:var(--tap-size,28px);height:var(--tap-size,28px);
  margin-left:calc(var(--tap-size,28px)/-2);margin-top:calc(var(--tap-size,28px)/-2);border-radius:50%;
  border:2px solid rgba(255,255,255,.92);box-shadow:0 0 0 2px rgba(124,78,255,.45),0 0 0 9999px rgba(0,0,0,0);
  pointer-events:none;z-index:4
}
@media (max-width:599px){
  .cutout-bottom-menu{padding:8px 10px;gap:6px}
  .cutout-bottom-menu button{min-height:40px;font-size:12px;padding:9px 6px}
  .cutout-tap-controls{padding:7px 10px}
}
@media (orientation:landscape) and (max-height:650px){
  .cutout-card-v275{grid-template-rows:auto minmax(0,1fr) auto auto auto auto}
  .cutout-inline-controls{position:static;border-top:1px solid rgba(255,255,255,.08);background:#0e131e}
  .cutout-status{position:static;transform:none;width:auto;max-width:none;border-radius:0;background:#0e131e;border:0;border-top:1px solid rgba(255,255,255,.08)}
}


/* GifWerk 2.8.4 – Video-Tracking im Freisteller */
.cutout-bottom-menu{grid-template-columns:repeat(4,1fr)}
.cutout-track-controls{padding:10px 12px;background:#0e131e}
.cutout-track-topline{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px;color:var(--mut);font-size:12px}
.cutout-track-topline strong{color:#fff;font-size:13px}
.cutout-track-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}
.cutout-track-nav-secondary{grid-template-columns:repeat(2,1fr)}
.cutout-track-controls .btn-ghost{min-height:40px}
@media (max-width:599px){
  .cutout-bottom-menu{grid-template-columns:repeat(2,1fr)}
  .cutout-track-controls{padding:8px 10px}
  .cutout-track-topline{flex-direction:column;align-items:flex-start;gap:4px}
  .cutout-track-nav{gap:6px}
}


/* GifWerk 2.8.6 – Mehrspur-Audiomixer */
.media-audio-mixer{
  display:grid;gap:10px;margin:12px 0;padding:12px;border:1px solid rgba(255,255,255,.09);
  border-radius:14px;background:rgba(255,255,255,.035)
}
.media-audio-mixer.hidden{display:none!important}
.media-audio-mixer-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.media-audio-mixer-head>div{display:grid;gap:3px;min-width:0}
.media-audio-mixer-head strong{font-size:13px}
.media-audio-mixer-head small,.media-audio-mixer>p{color:var(--mut);font-size:10.5px;line-height:1.4}
.media-audio-mixer>p{margin:0}
.media-audio-volume{display:grid;gap:7px}
.media-audio-volume>span{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}
.media-audio-volume output{color:#bba9ff;font-weight:800}
.media-audio-volume input[type=range]{width:100%;min-height:28px;margin:0}
.media-audio-mixer .btn-ghost[aria-pressed="true"]{color:#fff;border-color:rgba(255,92,124,.45);background:rgba(255,92,124,.12)}
@media(max-width:520px){
  .media-audio-mixer{padding:10px;margin:10px 0}
  .media-audio-mixer-head{align-items:flex-start}
}
