/* Stuziu · the clip editor (Cutziu): the picture big, every tool a button, the tool's choices under them */
html.ce-open,html.ce-open body{overflow:hidden}
.ce{position:fixed;inset:0;z-index:800;display:flex;flex-direction:column;color:#fff;
  background:linear-gradient(160deg,#3a3570 0%,#2a2654 45%,#1d1a3c 100%);font-size:15px;-webkit-user-select:none;user-select:none}
.ce-top{display:flex;align-items:center;gap:12px;padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px;border-bottom:1px solid rgba(255,255,255,.12)}
.ce-tt{flex:1;min-width:0;text-align:center;display:flex;flex-direction:column;line-height:1.2}
.ce-tt b{font-size:17px;font-weight:500}.ce-tt small{font-size:12.5px;color:rgba(255,255,255,.7)}
.ce-no,.ce-ok{height:42px;border-radius:999px;padding:0 18px;font:inherit;font-size:15px;cursor:pointer;display:flex;align-items:center;gap:7px;flex:none}
.ce-no{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.3);color:#fff}
.ce-ok{background:#fff;border:0;color:#2A2D4A;font-weight:500}.ce-ok .ic{width:17px;height:17px}
.ce-main{flex:1;min-height:0;display:flex;flex-direction:column}
.ce-view{flex:1 1 0;min-width:0;min-height:170px;display:flex;align-items:center;justify-content:center;padding:24px 24px 14px;box-sizing:border-box;position:relative;overflow:hidden}
.ce-stage{position:relative;overflow:hidden;border-radius:14px;background:#000;box-shadow:0 18px 50px rgba(10,8,30,.45);touch-action:pinch-zoom}
.ce-stage.crop{overflow:visible;border-radius:4px;background:transparent;box-shadow:none}
.ce-rb,.ce-rg{position:absolute;overflow:hidden}.ce-stage.crop>.ce-rb{left:0;top:0;border-radius:4px}
.ce-rb>img,.ce-rb>video{position:absolute;max-width:none;max-height:none;object-fit:fill;transform-origin:50% 50%;display:block}
.ce-rg.bk{opacity:.95}
.ce-vig{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,transparent 50%,rgba(0,0,0,.34) 100%)}.ce-vig.d{background:radial-gradient(ellipse at center,transparent 42%,rgba(0,0,0,.46) 100%)}
.ce-mask{position:absolute;inset:0;overflow:hidden;border-radius:4px;pointer-events:none}
.ce-hole{position:absolute;box-shadow:0 0 0 9999px rgba(12,10,30,.62)}
.ce-box{position:absolute;box-sizing:border-box;border:2px solid #fff;cursor:move;touch-action:none}
.ce-g{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,transparent calc(33.33% - .5px),rgba(255,255,255,.45) calc(33.33% - .5px),rgba(255,255,255,.45) calc(33.33% + .5px),transparent calc(33.33% + .5px),transparent calc(66.66% - .5px),rgba(255,255,255,.45) calc(66.66% - .5px),rgba(255,255,255,.45) calc(66.66% + .5px),transparent calc(66.66% + .5px)),
  linear-gradient(180deg,transparent calc(33.33% - .5px),rgba(255,255,255,.45) calc(33.33% - .5px),rgba(255,255,255,.45) calc(33.33% + .5px),transparent calc(33.33% + .5px),transparent calc(66.66% - .5px),rgba(255,255,255,.45) calc(66.66% - .5px),rgba(255,255,255,.45) calc(66.66% + .5px),transparent calc(66.66% + .5px));opacity:.0;transition:opacity .2s}
.ce-box.on .ce-g{opacity:1}
.ce-h{position:absolute;width:34px;height:34px;touch-action:none}
.ce-h::after{content:"";position:absolute;background:#fff;border-radius:3px;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.ce-h.n,.ce-h.s{left:50%;margin-left:-17px;cursor:ns-resize}.ce-h.n{top:-17px}.ce-h.s{bottom:-17px}
.ce-h.e,.ce-h.w{top:50%;margin-top:-17px;cursor:ew-resize}.ce-h.w{left:-17px}.ce-h.e{right:-17px}
.ce-h.n::after,.ce-h.s::after{left:5px;right:5px;top:14px;height:5px}
.ce-h.e::after,.ce-h.w::after{top:5px;bottom:5px;left:14px;width:5px}
.ce-h.nw,.ce-h.ne,.ce-h.sw,.ce-h.se{width:38px;height:38px}
.ce-h.nw{left:-19px;top:-19px;cursor:nwse-resize}.ce-h.se{right:-19px;bottom:-19px;cursor:nwse-resize}
.ce-h.ne{right:-19px;top:-19px;cursor:nesw-resize}.ce-h.sw{left:-19px;bottom:-19px;cursor:nesw-resize}
.ce-h.nw::after,.ce-h.ne::after,.ce-h.sw::after,.ce-h.se::after{width:16px;height:16px;background:none;border:0 solid #fff;border-radius:2px;box-shadow:none;top:15px;left:15px}
.ce-h.nw::after{border-width:5px 0 0 5px;left:15px;top:15px}.ce-h.ne::after{border-width:5px 5px 0 0;left:7px;top:15px}
.ce-h.sw::after{border-width:0 0 5px 5px;left:15px;top:7px}.ce-h.se::after{border-width:0 5px 5px 0;left:7px;top:7px}
.ce-side{flex:none;height:46%;box-sizing:border-box;overflow:auto;padding:6px 16px calc(14px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:12px;-webkit-user-select:none}
.ce-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ce-tool{height:46px;border-radius:14px;border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.1);color:#fff;font:inherit;font-size:14px;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;padding:0 6px}
.ce-tool .ic{width:19px;height:19px;flex:none}
.ce-tool.on{background:#fff;color:#2A2D4A;border-color:#fff;font-weight:500}
.ce-panel{flex:1 1 auto;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:20px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14)}
.ce-panel h4{margin:2px 0 -4px;font-size:13px;font-weight:500;color:rgba(255,255,255,.75)}
.ce-note{margin:0;font-size:14px;line-height:1.4;color:rgba(255,255,255,.82)}
.ce-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ce-pill{height:42px;border-radius:999px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.1);color:#fff;font:inherit;font-size:14.5px;padding:0 16px;display:inline-flex;align-items:center;gap:7px;cursor:pointer}
.ce-pill .ic{width:17px;height:17px}.ce-pill.on{background:#fff;color:#2A2D4A;border-color:#fff;font-weight:500}
.ce-sp .ce-pill{flex:1;justify-content:center;padding:0 6px;min-width:56px}
.ce-dots{display:grid;grid-template-columns:auto repeat(6,minmax(0,1fr));justify-items:center;align-items:center;gap:6px}
.ce-dots .ce-pill{justify-self:start;padding:0 12px;height:36px;font-size:13.5px;white-space:nowrap}
.ce-dot{width:min(38px,100%);aspect-ratio:1;height:auto;border-radius:50%;background:var(--c);border:2px solid rgba(255,255,255,.55);cursor:pointer;padding:0}
.ce-dot.on{box-shadow:0 0 0 3px #2a2654,0 0 0 5px #fff}
.ce-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ce-opt{border-radius:16px;border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.08);color:#fff;font:inherit;padding:12px 10px;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;text-align:center}
.ce-opt .ic{width:24px;height:24px}.ce-opt b{font-size:14.5px;font-weight:500}.ce-opt small{font-size:12.5px;opacity:.75}
.ce-opt.on{background:#fff;color:#2A2D4A;border-color:#fff}
/* a phone: every choice is a button the same size as the tools above it (the picture keeps the room) */
@media not all and (min-width:640px) and (min-aspect-ratio:9/10){
  .ce-opt{flex-direction:row;justify-content:center;gap:8px;height:46px;padding:0 8px;border-radius:14px}.ce-opt .ic{width:19px;height:19px}.ce-opt b{font-size:14px}.ce-opt small{display:none}
  .ce-big{height:46px}.ce-panel{padding:12px;gap:10px}.ce-pill{height:40px}.ce-note{font-size:13.5px}}
@media (max-width:370px){.ce-opt .ic{display:none}.ce-opt b{white-space:nowrap;font-size:13.5px}}
.ce-grid4{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ce-big{height:52px;border-radius:14px;border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.1);color:#fff;font:inherit;font-size:14.5px;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
.ce-big .ic{width:20px;height:20px}.ce-big .ic.mir{transform:scaleX(-1)}.ce-big .ic.fv{transform:rotate(90deg)}
.ce-big:active{background:rgba(255,255,255,.22)}
.ce-fl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-content:center}
.ce-ft{appearance:none;font:inherit;color:#fff;background:none;border:1.5px solid transparent;border-radius:14px;padding:3px;display:flex;flex-direction:column;gap:4px;cursor:pointer}
.ce-ft i{display:block;aspect-ratio:1;width:var(--ft,auto);margin:0 auto;}
.ce-fl[style*="--fth"] .ce-ft i{aspect-ratio:auto;width:100%;height:var(--fth)}
.ce-ft i{border-radius:10px;overflow:hidden;background:#000}.ce-ft img{width:100%;height:100%;object-fit:cover;display:block}
.ce-ft span{font-size:12.5px;line-height:1.2;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ce-ft.on{border-color:#fff;background:rgba(255,255,255,.16)}
.ce-sl{display:flex;flex-direction:column;gap:6px;font-size:14px}.ce-sl input{width:100%;accent-color:#fff;height:28px}
.ce-trim{display:flex;flex-direction:column;gap:8px;padding:4px 14px 0}
.ce-tk{position:relative;height:44px;border-radius:10px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.16) 0 18px,rgba(255,255,255,.08) 18px 20px);touch-action:none;cursor:pointer}
.ce-in{position:absolute;top:0;bottom:0;border:3px solid #F8B63F;border-radius:8px;background:rgba(248,182,63,.14);box-sizing:border-box}
.ce-th{position:absolute;top:-4px;bottom:-4px;width:22px;margin-left:-11px;border-radius:8px;background:#F8B63F;box-shadow:0 2px 8px rgba(0,0,0,.35);cursor:ew-resize;touch-action:none}
.ce-th::after{content:"";position:absolute;left:9px;top:14px;bottom:14px;width:4px;border-radius:2px;background:rgba(40,30,10,.55)}
.ce-tl{display:flex;justify-content:space-between;font-size:13px;color:rgba(255,255,255,.8)}.ce-tl .len{font-weight:500;color:#fff}
.ce-go{height:48px;border-radius:999px;border:0;background:#fff;color:#2A2D4A;font:inherit;font-size:15px;font-weight:500;padding:0 22px;display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.ce-go:disabled{opacity:.45}.ce-go .ic{width:19px;height:19px}
.ce-panel .cz-trp{gap:8px}
/* a Fold opened, tablets, computers: the picture on the left, the tools on the right */
@media (min-width:640px) and (min-aspect-ratio:9/10){
  /* the picture and the tools: one balanced pair in the middle, both from the top line to the bottom line */
  .ce-main{flex-direction:row;justify-content:center;align-items:stretch;column-gap:22px;padding:18px 22px calc(18px + env(safe-area-inset-bottom,0px))}
  .ce-view{flex:none;padding:0;min-height:0;overflow:visible}
  .ce-side{flex:none;height:auto;max-height:none;width:clamp(290px,34vw,380px);box-sizing:border-box;padding:14px;overflow:auto;border-radius:24px;
    background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);box-shadow:0 18px 50px rgba(10,8,30,.3)}
  .ce-side .ce-panel{background:none;border:0;border-radius:0;border-top:1px solid rgba(255,255,255,.13);padding:14px 2px 2px}
  .ce-tools .ce-tool{flex-direction:column;gap:3px;height:auto;min-height:44px;font-size:13px}
  .ce-side{display:flex;flex-direction:column}
  .ce-side .ce-panel{flex:1 1 auto;min-height:0;overflow:auto;justify-content:safe center}
  .ce-tools.flat .ce-tool{flex-direction:row;gap:6px;min-height:0;font-size:13.5px}.ce-tools.flat .ce-tool .ic{width:18px;height:18px}
  .ce-tools.tall .ce-tool{gap:10px;font-size:15.5px;border-radius:20px}.ce-tools.tall .ce-tool .ic{width:32px;height:32px}
  /* the picture on top, the tools in a wide band under it */
  .ce.ce-stack .ce-main{flex-direction:column;align-items:center;row-gap:18px}
  .ce.ce-stack .ce-side{width:min(100%,940px);flex-direction:row;align-items:stretch;gap:16px}
  .ce.ce-stack .ce-tools{flex:0 0 min(52%,430px);align-content:center}
  .ce.ce-stack .ce-tools .ce-tool{flex-direction:row;gap:7px;min-height:50px;font-size:14px}
  .ce.ce-stack .ce-side .ce-panel{flex:1 1 0;border-top:0;border-left:1px solid rgba(255,255,255,.13);padding:2px 2px 2px 16px;max-height:200px}
}
@media (max-height:560px) and (min-width:640px){.ce-top{padding-top:6px;padding-bottom:6px}.ce-no,.ce-ok{height:36px}.ce-tools .ce-tool{height:46px}.ce-main{padding-top:10px;padding-bottom:10px}}
[dir=rtl] .ce-ok .ic{transform:scaleX(-1)}
/* big screens (an iMac): the buttons and words keep the laptop balance, just larger (like the rest of the page) */
html.stz-big .ce-top,html.stz-big .ce-side{zoom:var(--hz)}
@media (min-width:640px) and (min-aspect-ratio:9/10){html.stz-big .ce-side{width:380px}}
html.stz-big .ce-h{zoom:var(--hz)}
