/* The Studio power-up panels (studio-power.js), in the look of the mockups fx1–fx3, c1–c4 (desktop) and mx1–mx3, mc1–mc4 (phone). */
.pw .small{font-size:11.5px;color:#64748B;margin:0;line-height:1.45}.pw .small a,.pwlink a{color:#15803D;font-weight:700}
.pgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.pgrid button,.pgrid .up{aspect-ratio:1;border-radius:12px;border:2px solid #EEF2F6;background:#F8FAFC;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;padding:4px;overflow:hidden;position:relative}
.pgrid button img{width:100%;height:100%;object-fit:contain;flex:1;min-height:0}
.pgrid button small{font-size:10px;color:#64748B;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.pgrid .up{border:2px dashed #CBD5E1;background:#fff;color:#15803D}
.pgrid button.on{border-color:#15803D;background:#ECFDF5;box-shadow:0 0 0 2px #ECFDF5}
.pgrid.lib button{background:#fff}
.egrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(30px,1fr));gap:4px}
.egrid button{aspect-ratio:1;min-width:0;border:2px solid transparent;border-radius:9px;background:none;padding:3px;cursor:pointer}.egrid button img{width:100%;height:100%;object-fit:contain}
.egrid button.on{border-color:#15803D;background:#ECFDF5}
.chips.mot{display:grid;grid-template-columns:1fr 1fr;gap:6px}.chips.mot button{padding:8px 6px}
.rowx{display:flex;align-items:center;justify-content:space-between;gap:8px}
.seg{display:flex;gap:6px}.seg button{width:34px;height:34px;border-radius:9px;border:1px solid #E5E7EB;background:#fff;font-weight:700;cursor:pointer}
.seg button.on{border:2px solid #15803D;background:#ECFDF5;color:#15803D}
.rowx .tm{font-size:12px;color:#64748B;font-variant-numeric:tabular-nums}
.addbtn{width:100%;padding:12px;border:0;border-radius:12px;background:#15803D;color:#fff;font-weight:800;font-size:14px;cursor:pointer;box-shadow:0 2px 0 rgba(0,0,0,.06)}
.addbtn:hover{background:#166534}
.tog{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px;font-weight:700;color:#0F172A;cursor:pointer}
.tog input[type=checkbox]{appearance:none;-webkit-appearance:none;width:38px;height:22px;border-radius:999px;background:#CBD5E1;position:relative;cursor:pointer;flex:none;margin:0;transition:background .15s}
.tog input[type=checkbox]::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .15s}
.tog input[type=checkbox]:checked{background:#15803D}.tog input[type=checkbox]:checked::after{left:19px}
.tog span:first-child:last-child{flex:1}
#sec-sticker .tog{justify-content:flex-start;flex-direction:row-reverse}
.tabs{display:grid;grid-template-columns:1fr 1fr;background:#F1F5F9;border-radius:12px;padding:3px}
.tabs button{border:0;background:none;padding:8px;border-radius:10px;font-weight:700;font-size:12.5px;color:#64748B;cursor:pointer}.tabs button.on{background:#fff;color:#15803D;box-shadow:0 1px 3px rgba(15,23,42,.1)}
.tracks{display:flex;flex-direction:column;gap:8px}
.trk{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:10px;padding:9px 10px;border:2px solid #EEF2F6;border-radius:12px;cursor:pointer;background:#fff}
.trk.on{border-color:#15803D;background:#F0FDF4}
.trk .pl{width:30px;height:30px;border-radius:50%;border:0;background:#0F172A;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.trk .pl.on{background:#15803D}
.trk .nm{display:flex;flex-direction:column;min-width:0}.trk .nm b{font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trk .nm small{font-size:10.5px;color:#64748B;font-weight:600}
.trk .len{font-size:11.5px;color:#64748B;font-variant-numeric:tabular-nums}
.wave{display:flex;align-items:center;gap:1.5px;height:16px;margin-top:3px}.wave b{flex:1;background:#4ADE80;border-radius:1px;min-height:2px}
.upline{display:flex;align-items:center;justify-content:center;gap:8px;padding:11px;border:2px dashed #CBD5E1;border-radius:12px;color:#15803D;font-weight:800;font-size:12.5px;cursor:pointer}
.chips.sfx button{text-transform:lowercase}
.vgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.vgrid button{border:0;background:none;padding:0;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer}
.vgrid .th{width:100%;aspect-ratio:1;border-radius:12px;background-color:#1E293B;background-repeat:no-repeat;background-position:0 0;border:2px solid transparent;display:flex;align-items:center;justify-content:center;font-size:28px;box-sizing:border-box}
.vgrid .th i{font-style:normal}
.vgrid button:hover .th{animation:pwThumb 1s steps(var(--n,12)) infinite}
@keyframes pwThumb{from{background-position:0 0}to{background-position:100% 0}}
.vgrid button.on .th{border-color:#15803D;box-shadow:0 0 0 2px #ECFDF5}
.vgrid small{font-size:11px;font-weight:700;color:#334155}
.vgrid .th.tr{background:linear-gradient(135deg,#1E293B,#334155)}
.vgrid .th.tr::before{content:"";width:46%;height:46%;border-radius:6px;background:#22C55E;opacity:.9}
.vgrid .th.tr-zoom::before{transform:scale(1.25)}.vgrid .th.tr-whip::before{filter:blur(3px);transform:translateX(18%)}.vgrid .th.tr-spin::before{transform:rotate(35deg)}
.vgrid .th.tr-flash::before{background:#fff}.vgrid .th.tr-glitch::before{box-shadow:-4px 0 #EF4444,4px 0 #3B82F6}.vgrid .th.tr-swipe::before{transform:translateX(30%)}
.vgrid .th.leg{background:#0F172A}
.fh{display:flex;align-items:center;justify-content:space-between;gap:8px}.fh input{flex:1;max-width:140px;font-size:12px;padding:5px 8px;border:1px solid #E5E7EB;border-radius:8px}
.fonts{display:flex;flex-direction:column;gap:6px;max-height:300px;overflow:auto;padding-right:2px}
.fonts button{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border:2px solid #EEF2F6;border-radius:10px;background:#fff;cursor:pointer;font-size:17px;color:#0F172A;text-align:left}
.fonts button small{font-family:Inter,sans-serif;font-weight:600;font-size:10px;color:#94A3B8}
.fonts button.on{border-color:#15803D;background:#F0FDF4}
.look{display:flex;flex-direction:column;gap:6px}.look .gr{display:flex;align-items:center;gap:8px}.look input[type=color]{width:34px;height:24px;border:1px solid #E5E7EB;border-radius:6px;padding:0;background:#fff}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px}.grid2 .fld input{width:100%}
#sec-speed select{font-size:12px;padding:5px 8px;border-radius:8px;border:1px solid #E5E7EB}
/* Layers: every effect is a row with its time */
#layersList .row .tm{font-size:10.5px;color:#94A3B8;margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums;padding:0 4px}
#layersList .row .del{color:#94A3B8}#layersList .row .del:hover{color:#DC2626}
#layersList .row.fxr{cursor:pointer}#layersList .row.fxr.off .nm{color:#94A3B8;text-decoration:line-through}
#layersList .row .ic{width:16px;text-align:center;flex:none}
/* the preview: library effects */
.k-vfx .lyc .vfxs{background-repeat:no-repeat;pointer-events:none}
.k-vfx{z-index:3}
/* phones: the panels in the bottom sheet, Add stays in reach */
body.ph .pw .addbtn{position:sticky;bottom:0;z-index:2;padding:14px;font-size:15px;border-radius:14px}
body.ph .vgrid{grid-template-columns:repeat(4,1fr)}
body.ph .chips.mot{display:flex;flex-wrap:nowrap;overflow-x:auto}
body.ph .fonts{max-height:none}
.pwai{display:flex;flex-direction:column;gap:8px;margin-bottom:6px}
.addbtn.viral{background:linear-gradient(90deg,#7C3AED,#EC4899)}.addbtn.viral:hover{filter:brightness(1.05)}
.pwai .rowx input{flex:1;min-width:0;font-size:12px;padding:6px 8px;border:1px solid #E5E7EB;border-radius:8px}
.packs{display:flex;flex-direction:column;gap:6px}.packs .pk{display:grid;grid-template-columns:1fr auto auto auto;align-items:center;gap:6px;font-size:12px}
.packs .pk small{grid-column:1;color:#64748B;font-size:10.5px;margin-top:-4px}.packs .pk b{grid-column:1}.packs .pk .sb{grid-row:1/3;font-size:11px;padding:5px 7px}
.rlc{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
#rlStyles{display:grid;grid-template-columns:1fr 1fr;gap:6px}#rlStyles button{white-space:normal;text-align:left}
.st-right .lyp .grid,.st-right .lyp .fld{min-width:0}.st-right .lyp .grid{grid-template-columns:minmax(0,1fr)}.st-right .lyp .fld.sl{grid-template-columns:62px minmax(0,1fr)}
body:not(.ph) #layersList{flex:1 1 0;overflow-y:auto;min-height:120px}
body:not(.ph) #layersList .row{flex:none}
body.ph #layersList [data-lock]{display:none}
body.ph #layersList .row .nm{flex:1;min-width:0}
.st-right>.lyp{width:auto!important;max-width:100%;box-sizing:border-box}
.pv:has(.ly.on:not(.k-video)) .play{display:none}      /* the big play button never covers the thing being edited */
