/* The Studio (home page): rail · tool panel · canvas · layers/clips · timeline. The editing engine's own styles (.pv, .ly, .card…) come first. */
body.studio{margin:0;background:#fff;overflow:hidden;height:100vh;height:100dvh;display:flex;flex-direction:column}
body.studio #ev-rail{display:none!important}
.st-app{position:fixed;left:0;right:0;top:52px;bottom:0;display:grid;grid-template-columns:56px 240px minmax(0,1fr) 300px;grid-template-rows:minmax(0,1fr) 240px;grid-template-areas:"rail left canvas right" "rail tl tl right";background:#fff}
.st-rail{grid-area:rail;border-right:1px solid #E5E7EB;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 0;overflow:auto}
.st-rail button{width:34px;height:34px;border-radius:9px;border:0;background:none;color:#475569;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.st-rail button:hover{background:#F1F5F9}.st-rail button.on{background:#ECFDF5;color:#15803D}.st-rail button.ai{background:#F3E8FF;color:#7C3AED}
.st-rail button:disabled{opacity:.35;cursor:default}
.st-left{grid-area:left;border-right:1px solid #E5E7EB;overflow:auto;background:#fff}
.st-left.off{opacity:.45;pointer-events:none}
.st-sec{padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.sh{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800}.sh .ic{color:#475569;font-weight:600}.sh .grow{flex:1}
.sh2{font-size:12px;font-weight:800;margin-top:4px}
.ib{width:28px;height:28px;border-radius:8px;border:0;background:none;color:#475569;font-size:18px;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.ib:hover{background:#F1F5F9}.ib.on{background:#ECFDF5;color:#15803D}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tiles button{aspect-ratio:1;border-radius:12px;border:2px solid transparent;background:#1E293B;color:#fff;font-weight:900;font-size:15px;cursor:pointer;display:flex;align-items:center;justify-content:center;overflow:hidden}
.tiles button.on{border-color:#15803D}.tiles button.y{background:#111;color:#FACC15;font-family:Anton,Inter,sans-serif;font-style:italic;letter-spacing:.02em}.tiles button.p{background:#0F172A;color:#fff;font-family:"Luckiest Guy",Bangers,Inter,sans-serif}.tiles button.t{background:#000;color:#fff;font-family:"Permanent Marker",Inter,sans-serif}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chips button{padding:6px 9px;border-radius:9px;border:1px solid #E5E7EB;background:#fff;font-size:12px;font-weight:600;cursor:pointer;color:#0F172A;white-space:nowrap}
.chips button.on{border:2px solid #15803D;background:#ECFDF5;color:#15803D;padding:5px 8px}
.chips button:disabled{opacity:.5;cursor:default}
.ptiles{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.ptiles button{border:2px solid transparent;border-radius:10px;padding:2px;background:none;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;color:#475569}
.ptiles button i{display:block;width:100%;aspect-ratio:9/16;border-radius:8px;background:#CBD5E1 center/cover no-repeat;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-style:normal}
.ptiles button.on{border-color:#15803D}.ptiles button.on i{box-shadow:inset 0 0 0 2px #fff}
.st-left .card{border:1px solid #EEF2F6;border-radius:12px;padding:10px;gap:8px;box-shadow:none;font-size:12px}
.st-left .card .ttl{font-size:12px;font-weight:800;display:flex;justify-content:space-between;align-items:center;gap:6px}
.st-left .grid{grid-template-columns:1fr;gap:8px}
.st-left .fld{font-size:11px;font-weight:600;color:#64748B}.st-left .fld.sl{display:grid;grid-template-columns:62px 1fr;align-items:center;gap:8px}
.st-left .fld select,.st-left .fld input[type=text],.st-left .fld textarea{font-size:12px;padding:6px 8px}
.st-left input[type=range]{accent-color:#15803D;width:100%;margin:0}
.st-left .lines{max-height:220px}
.st-left .fxform{border:0;padding:0;background:none}
.st-canvas{grid-area:canvas;position:relative;background:#F8FAFC;background-image:radial-gradient(#E2E8F0 1px,transparent 1px);background-size:14px 14px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.st-previews{display:flex;gap:40px;align-items:flex-start;justify-content:center;height:100%;width:100%;padding:16px 24px 44px;box-sizing:border-box}
.st-slot{display:flex;flex-direction:column;align-items:center;gap:8px;height:100%;min-width:0;flex:0 1 auto}
.st-slot[hidden]{display:none}
.st-slab{display:flex;align-items:center;gap:8px;width:100%;max-width:300px;font-size:13px;font-weight:800;white-space:nowrap}.st-slab .sb{padding:4px 8px;font-size:11px}.st-slab .grow{flex:1}
.st-slab .lab.a{color:#15803D}.st-slab .lab.r{color:#7C3AED}
.eye{width:26px;height:26px;border:0;background:none;color:#475569;cursor:pointer;border-radius:7px;position:relative}
.eye::before{content:"";position:absolute;left:5px;top:8px;width:16px;height:10px;border:2px solid currentColor;border-radius:50%}.eye::after{content:"";position:absolute;left:10px;top:10px;width:6px;height:6px;border-radius:50%;background:currentColor}
.eye[aria-pressed=true]{color:#94A3B8}.eye[aria-pressed=true]::after{display:none}
.st-slot .pv{height:calc(100% - 34px);width:auto;max-width:none;aspect-ratio:9/16;margin:0;border-radius:22px;box-shadow:0 20px 50px rgba(15,23,42,.25);flex:none}
.st-slot .pv.wide{aspect-ratio:16/9;max-width:100%}.st-slot .pv.sq{aspect-ratio:1/1}
.st-app.noref .st-slot#slotA .pv,.st-app.noanchor #slotR .st-refbox{height:calc(100% - 34px)}
.st-refbox{height:calc(100% - 34px);aspect-ratio:9/16;position:relative}
.st-refpv{width:100%;height:100%;border-radius:22px;overflow:hidden;background:#0F172A;position:relative;box-shadow:0 20px 50px rgba(15,23,42,.25)}
.st-refpv video{width:100%;height:100%;object-fit:contain;background:#000}
.st-refpv .lock{position:absolute;left:10px;bottom:10px;font-size:12px;background:rgba(255,255,255,.85);border-radius:6px;padding:2px 5px}
.st-drop{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(330px,80%);aspect-ratio:9/16;border:2px dashed #CBD5E1;border-radius:26px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;box-sizing:border-box;background:rgba(255,255,255,.6);text-align:center}
.st-drop[hidden]{display:none}
.st-drop.ref{position:static;transform:none;width:100%;height:100%;aspect-ratio:auto;border-color:#DDD6FE;background:#FAF5FF}
.st-drop .dic{width:56px;height:56px;border-radius:50%;background:#ECFDF5;color:#15803D;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:800}.st-drop.ref .dic{background:#F3E8FF;color:#7C3AED;font-size:28px}
.st-drop b{font-size:22px;font-weight:800}.st-drop.ref b{font-size:18px}
.st-drop .small{font-size:13px;color:#526783;line-height:1.5}
.st-drop .lnk{display:flex;width:100%;border:1px solid #E5E7EB;border-radius:12px;padding:4px 4px 4px 12px;background:#fff;gap:6px;align-items:center}
.st-drop .lnk input{flex:1;min-width:0;border:0;outline:0;font:inherit;font-size:13px;background:none}.st-drop .lnk button{padding:7px 12px;border-radius:9px;background:#0F172A;color:#fff;border:0;font-weight:700;font-size:12px;cursor:pointer}
.st-drop .b{padding:10px 20px;border-radius:12px;font-weight:800;font-size:14px;cursor:pointer;border:0}.st-drop .b.go{background:#15803D;color:#fff}.b.purple{background:#7C3AED;color:#fff}
.st-app.drag .st-drop{border-color:#15803D;background:#F0FDF4}
.st-fail{display:flex;flex-direction:column;gap:6px;background:#FEF2F2;border:1px solid #FCA5A5;border-radius:12px;padding:12px;width:100%;box-sizing:border-box;text-align:left;color:#0F172A}.st-fail[hidden]{display:none}
.st-fail.amber{background:#FFFBEB;border-color:#FCD34D}
#linkFail b,#refFail b{font-size:15px;font-weight:800;line-height:1.25;white-space:normal}#linkFail span,#refFail span{font-size:13px;line-height:1.4;color:#334155}.st-fail code{font:12px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#526783}
.st-fail .row{display:flex;gap:6px;flex-wrap:wrap;margin-top:2px}.st-fail .sb{padding:7px 11px;border-radius:8px;font-size:13px;font-weight:700;white-space:nowrap;border:1px solid #E5E7EB;background:#fff;color:#0F172A;cursor:pointer}
.st-fail .sb:first-child{background:#0F172A;border-color:#0F172A;color:#fff}.st-fail .sb:disabled{opacity:.45;cursor:default}
body.ph .st-fail .sb{min-height:40px}
.st-drop.failed.main{width:min(330px,calc(100% - 32px));aspect-ratio:auto;min-height:min(587px,calc(100% - 24px));max-height:calc(100% - 24px)}
body.ph .st-drop.failed.main{width:min(330px,calc(100% - 32px));height:auto;aspect-ratio:auto;min-height:0;max-height:calc(100% - 20px);gap:12px}
.st-drop.failed.t1 .dic,.st-drop.failed.t2 .small,.st-drop.failed.t3>b,.st-drop.failed.t3>.b{display:none}
.st-drop.failed.t2{gap:9px;padding:12px}.st-drop.failed.t2 .st-fail{padding:10px}.st-drop.failed.main{background:#fff}
@media (max-height:800px){.st-drop.failed.main:not([hidden])~.st-ratio{display:none}}
.st-drop.failed.t2 .st-fail .sb{padding:7px 9px}
.st-drop .lnk input{text-overflow:ellipsis}
.st-drop .lnk.yt::before{content:"";flex:none;width:22px;height:16px;border-radius:4px;background:#F00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Cpath d='M8.5 4v8l7-4z' fill='%23fff'/%3E%3C/svg%3E") center/100% no-repeat}
.st-ratio{position:absolute;right:16px;bottom:12px;display:flex;gap:6px}
.st-ratio button{padding:5px 8px;border-radius:7px;border:1px solid #E5E7EB;background:#fff;font-size:11px;font-weight:700;color:#475569;cursor:pointer}.st-ratio button.on{background:#F1F5F9;color:#0F172A}
.upbar{position:absolute;left:10px;right:10px;top:10px;z-index:9;background:rgba(15,23,42,.8);border-radius:10px;padding:7px 10px;color:#fff;font-size:11px;font-weight:700;display:flex;flex-direction:column;gap:5px}.upbar[hidden]{display:none}
.upbar span{display:flex;justify-content:space-between}.upbar i{font-style:normal;color:#CBD5E1}.upbar .bar{height:5px;border-radius:3px;background:rgba(255,255,255,.25)}.upbar .bar div{height:5px;border-radius:3px;background:#22C55E;width:0;transition:width .4s}
.st-float{position:absolute;left:50%;top:8px;transform:translateX(-50%);z-index:12;background:rgba(15,23,42,.9);border-radius:10px;padding:6px 8px;display:flex;gap:6px}
.st-float button{width:26px;height:26px;border-radius:7px;border:0;background:none;color:#fff;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center}.st-float button:hover{background:rgba(255,255,255,.15)}
.st-float input[type=color]{width:22px;height:22px;border:0;padding:0;background:none;border-radius:50%;overflow:hidden;cursor:pointer}
.ly.ai{outline:2px dashed #A78BFA!important;outline-offset:4px}.ly.ai::after,.ly.added::after{content:"AI";position:absolute;right:-6px;top:-10px;background:#7C3AED;color:#fff;font-size:9px;font-weight:800;padding:1px 5px;border-radius:999px}.ly.added::after{content:"+";background:#15803D}
.st-right{grid-area:right;border-left:1px solid #E5E7EB;display:flex;flex-direction:column;overflow:auto;background:#fff}
.st-right>.sh{padding:12px 14px 6px}
.st-toggle{margin:0 14px 6px;display:grid;grid-template-columns:1fr 1fr;background:#F1F5F9;border-radius:9px;padding:3px}
.st-toggle button{border:0;border-radius:7px;padding:6px;font-size:12px;font-weight:700;background:none;color:#475569;cursor:pointer}.st-toggle button.on{background:#fff;color:#0F172A;box-shadow:0 1px 2px rgba(0,0,0,.08)}.st-toggle button[data-side=r].on{color:#7C3AED}
.st-layers{padding:0 8px;display:flex;flex-direction:column;gap:2px;min-height:60px}
.st-layers .row{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:9px;font-size:13px;font-weight:600;cursor:pointer;user-select:none}
.st-layers .row:hover{background:#F8FAFC}.st-layers .row.on{background:#ECFDF5}.st-layers .row.dim{opacity:.5}
.st-layers .row .ic{color:#475569;width:16px;text-align:center;font-weight:600;flex:none}.st-layers .row .nm{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-layers .row .tag{font-size:9px;font-weight:800;padding:1px 5px;border-radius:999px;background:#F3E8FF;color:#7C3AED}.st-layers .row .tag.plus{background:#ECFDF5;color:#15803D}.st-layers .row .tag.pre{background:#F1F5F9;color:#475569}
.st-layers .row .ib{width:22px;height:22px;font-size:12px;color:#94A3B8}.st-layers .row .ib.on{background:none;color:#0F172A}
.st-layers .row.drag{opacity:.4}
.st-right .lyp{margin:8px 14px;border:0;border-top:1px solid #EEF2F6;border-radius:0;padding:10px 0;font-size:12px;max-width:none}
.st-right .lyp .ttl{font-size:13px;font-weight:800}.st-right .lyp .grid{grid-template-columns:1fr;gap:6px}
.st-right .lyp .fld.sl{display:grid;grid-template-columns:62px 1fr;align-items:center;gap:8px;font-size:11px;color:#64748B}
.st-right .lyp input[type=range]{accent-color:#15803D;width:100%;margin:0}.st-right .lyp .acts .sb{padding:5px 8px;font-size:11px}
.st-right .grow{flex:1}
.st-clips,.st-all{padding:12px 14px 14px;display:flex;flex-direction:column;gap:10px;border-top:1px solid #EEF2F6}
.st-clips[hidden],.st-all[hidden]{display:none}
.st-clips #nBox{width:46px;border:1px solid #E5E7EB;border-radius:8px;padding:4px;text-align:center;font:inherit;font-weight:800;font-size:16px}
.st-clips input[type=range]{accent-color:#15803D;width:100%;margin:0}
.st-clips #custom{border:1px solid #E5E7EB;border-radius:10px;padding:9px 10px;font:inherit;font-size:13px;width:100%;box-sizing:border-box}
.b.go.big{padding:14px;border-radius:12px;font-size:15px;font-weight:800;width:100%;box-sizing:border-box;cursor:pointer}.b.go.big:disabled{background:#A7F3D0;border-color:#A7F3D0;color:#fff;cursor:default}
.st-all .b{display:block;text-align:center;padding:10px;border-radius:10px;font-size:13px;box-sizing:border-box}
.st-switch{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:600;cursor:pointer}.st-switch input{display:none}.st-switch i{width:38px;height:22px;border-radius:999px;background:#CBD5E1;position:relative;transition:background .2s}.st-switch i::after{content:"";position:absolute;left:2px;top:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .2s}.st-switch input:checked+i{background:#15803D}.st-switch input:checked+i::after{left:18px}
.st-tl{grid-area:tl;border-top:1px solid #E5E7EB;display:flex;flex-direction:column;min-height:0;background:#fff;position:relative}
.st-tb{height:48px;display:flex;align-items:center;gap:6px;padding:0 12px;border-bottom:1px solid #EEF2F6;flex:none}
.st-tb .pl{width:30px;height:30px;border-radius:50%;background:#0F172A;border:0;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}.st-tb .pl.off{background:#CBD5E1}
.st-tb .tm{font-size:13px;font-weight:800;min-width:50px}
.st-tb .ib{width:30px;height:30px;color:#475569}.st-tb .ib.on{background:#ECFDF5;color:#15803D}
.st-tb .ai{flex:1;display:flex;align-items:center;gap:6px;border:1px solid #DDD6FE;background:#FAF5FF;border-radius:10px;padding:3px 3px 3px 10px;min-width:0;margin:0 10px}
.st-tb .ai .sp{color:#7C3AED;font-size:14px}.st-tb .ai .att{width:22px;height:22px;border:0;background:none;color:#7C3AED;cursor:pointer;position:relative}.st-tb .ai .att::before{content:"🔗";font-size:12px}
.st-tb .ai input[type=text]{flex:1;min-width:0;border:0;background:none;outline:0;font:inherit;font-size:13px}
.st-tb .ai .send{width:28px;height:28px;border-radius:7px;border:0;background:#7C3AED;color:#fff;cursor:pointer;position:relative}.st-tb .ai .send::before{content:"➤";font-size:12px}
.st-tb .zm{display:flex;align-items:center;gap:4px}.st-tb .zm input{width:110px;accent-color:#15803D}
.st-strip{display:flex;gap:4px;padding:6px 12px;overflow-x:auto;flex:none;border-bottom:1px solid #EEF2F6}.st-strip[hidden]{display:none}
.st-strip button{flex:none;width:36px;height:24px;border-radius:4px;border:2px solid transparent;background:#1E293B;color:#fff;font-size:10px;font-weight:700;cursor:pointer;background-size:cover;background-position:center}.st-strip button.on{border-color:#15803D}
.st-tracks{flex:1;position:relative;overflow:auto;min-height:0}
.st-tracks .rulr{height:20px;position:sticky;top:0;background:#fff;z-index:3;border-bottom:1px solid #EEF2F6;font-size:10px;color:#94A3B8;position:relative;margin-left:44px}
.st-tracks .rulr span{position:absolute;top:3px;transform:translateX(-50%)}
.st-tracks .lanes{position:relative;margin-left:44px}
.lane{height:28px;border-bottom:1px solid #F1F5F9;position:relative}
.lane .ic{position:absolute;left:-34px;top:5px;width:18px;text-align:center;color:#94A3B8;font-size:12px}
.lane.video{height:22px;background:#94A3B8;border-radius:3px;margin:4px 0}.lane.video .seg{position:absolute;top:0;bottom:0;border-right:1px solid #CBD5E1}.lane.video .wait{position:absolute;top:0;bottom:0;right:0;background:repeating-linear-gradient(135deg,#E2E8F0 0 6px,#F1F5F9 6px 12px);border-radius:0 3px 3px 0}
.lane .anchor{position:absolute;top:4px;height:20px;background:#DCFCE7;border:2px solid #15803D;border-radius:6px;box-sizing:border-box;color:#15803D;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;cursor:grab;user-select:none;touch-action:none;min-width:14px}
.lane .anchor i{position:absolute;top:-2px;bottom:-2px;width:10px;cursor:ew-resize}.lane .anchor i.a{left:-4px}.lane .anchor i.b{right:-4px}.lane .anchor.lock{cursor:default;border-style:dashed}
.lane .bar{position:absolute;top:6px;height:16px;border-radius:5px;background:#FACC15;cursor:grab;user-select:none;touch-action:none;font-size:10px;font-weight:700;overflow:hidden;white-space:nowrap;padding:0 4px;box-sizing:border-box;display:flex;align-items:center;min-width:10px}
.lane .bar.cap{background:#C7D2FE;cursor:pointer}.lane .bar.emo{background:none;font-size:15px;padding:0;overflow:visible}.lane .bar.music{background:repeating-linear-gradient(90deg,#86EFAC 0 2px,#DCFCE7 2px 5px);height:18px;top:5px}.lane .bar.sfx{background:#A7F3D0;color:#065F46}
.lane .bar.on{outline:2px solid #0F172A;outline-offset:1px}.lane .bar.ai{outline:2px dashed #A78BFA;outline-offset:1px}
.lane .bar i{position:absolute;top:0;bottom:0;width:7px;cursor:ew-resize}.lane .bar i.a{left:0}.lane .bar i.b{right:0}
.st-tracks .head{position:absolute;top:0;bottom:0;width:2px;background:#EF4444;z-index:4;pointer-events:none;margin-left:44px}.st-tracks .head::before{content:"";position:absolute;left:-5px;top:0;width:12px;height:12px;background:#EF4444;border-radius:3px}
.st-ai{position:absolute;left:12px;bottom:56px;width:330px;max-height:70vh;background:#fff;border-radius:16px;box-shadow:0 20px 50px rgba(15,23,42,.25);z-index:20;display:flex;flex-direction:column;overflow:hidden;font-size:13px}
.st-ai[hidden]{display:none}.st-ai.fold .aibody,.st-ai.fold .aibtns{display:none}
.st-ai .aih{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;font-weight:800;color:#7C3AED}.st-ai .aih button{border:0;background:none;cursor:pointer;color:#94A3B8;font-size:14px}.st-ai .aih button::before{content:"⌄"}.st-ai.fold .aih button::before{content:"⌃"}
.st-ai .aibody{overflow:auto;padding:0 12px 8px;display:flex;flex-direction:column;gap:6px}
.st-ai .me{align-self:flex-end;background:#F1F5F9;border-radius:12px;padding:6px 10px;font-weight:600;max-width:88%}.st-ai .me .f{display:block;font-size:11px;color:#475569;background:#fff;border-radius:8px;padding:3px 8px;margin-bottom:4px;border:1px solid #E5E7EB}
.st-ai .step{display:flex;align-items:center;gap:8px;padding:4px 2px}.st-ai .step .ic{width:24px;height:24px;border-radius:7px;background:#F3E8FF;color:#7C3AED;display:flex;align-items:center;justify-content:center;font-size:12px;flex:none}.st-ai .step .nm{flex:1}
.st-ai .step .ok{color:#15803D;font-weight:800}.st-ai .step .prog{width:40px;height:5px;border-radius:3px;background:#E9D5FF;overflow:hidden}.st-ai .step .prog i{display:block;height:5px;width:60%;background:#7C3AED;animation:aip 1s linear infinite}
.st-ai .step.next{opacity:.45}.st-ai .step.bad .ok{color:#B91C1C}
@keyframes aip{from{transform:translateX(-100%)}to{transform:translateX(170%)}}
.st-ai .aibtns{display:flex;gap:6px;padding:8px 12px 12px;border-top:1px solid #F1F5F9}.st-ai .aibtns .sb{flex:1;padding:8px}.st-ai .aibtns .keep{border-color:#15803D;color:#15803D;background:#ECFDF5}
dialog#signin{border:0;border-radius:22px;padding:28px 32px;width:min(380px,calc(100% - 32px));box-shadow:0 30px 80px rgba(15,23,42,.35);text-align:center}
dialog#signin::backdrop{background:rgba(15,23,42,.5)}
.sg{display:flex;flex-direction:column;align-items:center;gap:6px}.sg .n{font-size:44px;font-weight:900;color:#15803D;line-height:1}.sg span{font-weight:800;font-size:16px;margin-bottom:12px}
.gbtn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:13px;border:1px solid #E5E7EB;border-radius:12px;font-weight:700;color:#0F172A;text-decoration:none}.gbtn:hover{background:#F8FAFC;text-decoration:none}
.sg .sgsub{margin:-6px 0 12px;font-size:13px;color:#526783;line-height:1.45}.sg .sgsub:empty{display:none}
.sg .sgmsg{margin:0 0 10px;padding:10px 12px;border-radius:12px;background:#FFF7ED;border:1px solid #FED7AA;color:#9A3412;font-size:14px;font-weight:600;line-height:1.45;width:100%;box-sizing:border-box}
.sg .sgor{display:flex;align-items:center;gap:10px;width:100%;color:#94A3B8;font-size:12px;font-weight:700;margin:6px 0}.sg .sgor::before,.sg .sgor::after{content:"";flex:1;height:1px;background:#E5E7EB}
.sg .sgf{display:flex;flex-direction:column;gap:8px;width:100%}.sg .sgf input{width:100%;box-sizing:border-box;padding:12px 13px;border:1px solid #CBD5E1;border-radius:12px;font:inherit;font-size:16px;color:#0F172A}
.sg .sgf input:focus{outline:2px solid #86EFAC;border-color:#15803D}.sg .sggo{padding:13px;border:0;border-radius:12px;background:#0F172A;color:#fff;font:inherit;font-weight:700;cursor:pointer}.sg .sggo:disabled{opacity:.6}
.sg .sgerr{margin:0;color:#B91C1C;font-size:13px;font-weight:600;text-align:left}.sg .sgsoon{margin:6px 0 0;font-size:12px;color:#64748B}
.sg .sgsent{width:100%;box-sizing:border-box;border:1px solid #BBF7D0;background:#F0FDF4;border-radius:12px;padding:14px;font-size:14px;line-height:1.5;color:#14532D;text-align:left}.sg .sgsent b{display:block;font-size:16px;margin-bottom:2px}
.sg .sgrow{display:flex;flex-wrap:wrap;gap:8px;width:100%}.sg .sgrow>*{flex:1 1 140px;display:flex;align-items:center;justify-content:center;padding:13px;border-radius:12px;font:inherit;font-weight:700;text-decoration:none;cursor:pointer;border:1px solid #E5E7EB;background:#fff;color:#0F172A}
.sg .sgrow .buy{background:#15803D;border-color:#15803D;color:#fff}.sg .sgrow .buy:hover{background:#166534;text-decoration:none}
.sg [hidden]{display:none!important}
.sg .packs{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-top:10px}.sg .packs a{border:1px solid #E5E7EB;border-radius:12px;padding:10px;color:#0F172A;text-decoration:none;font-weight:800}.sg .packs a small{display:block;font-weight:600;color:#526783}.sg .packs a.hot{border-color:#15803D;background:#F0FDF4}
.st-app.noanchor #slotA{display:none}.st-app.noref #slotR{display:none}
.st-app.empty .st-left,.st-app.empty .st-rail button:not(.always),.st-app.empty .st-tl .st-tb .ib,.st-app.empty #layAdd{opacity:.4;pointer-events:none}
.st-app.empty .st-previews{display:none}
.st-app.empty .st-tracks .lanes{opacity:.5}
body.studio.ev-shell{padding:0!important}
/* pro tools */
.trw{font-size:13px;line-height:1.9;max-height:46vh;overflow:auto;user-select:none;padding:2px 0}
.trw .w{cursor:pointer;border-radius:4px;padding:0 1px}.trw .w:hover{background:#F1F5F9}
.trw .w.now{color:#15803D;font-weight:800}.trw .w.sel{background:#DCFCE7}
.trw .w.fl{color:#94A3B8;text-decoration:line-through}.trw .w.cut{color:#DC2626;text-decoration:line-through;background:#FEF2F2}
.trw .gap{display:inline-block;font-size:10px;font-weight:700;color:#64748B;background:#E2E8F0;border-radius:5px;padding:0 5px;line-height:16px;vertical-align:1px;cursor:default}.trw .gap.cut{text-decoration:line-through;color:#DC2626;background:#FEE2E2}
.st-sec .row{display:flex;gap:6px}.st-sec .row .sb{flex:1;text-align:center;text-decoration:none;color:#0F172A}
.sb.red{color:#B91C1C;border-color:#FECACA}.sb:disabled{opacity:.5}
.trone{display:flex;justify-content:space-between;font-size:13px;font-weight:600;cursor:pointer;padding:3px 0}.trone b{color:#15803D}.trone:hover span{text-decoration:underline}
.chips.pro button{font-size:12px}
.st-ratio .safe{display:flex;gap:6px;margin-right:8px}.st-ratio .safe button.on{border:2px solid #15803D;background:#ECFDF5;color:#15803D;padding:4px 7px}
.pv .sz{position:absolute;inset:0;z-index:11;pointer-events:none}.pv .sz i{position:absolute;background:rgba(239,68,68,.28);border:1px dashed rgba(254,202,202,.95);border-radius:8px;box-sizing:border-box}
.st-tb .hook{font-size:12px;font-weight:800;padding:4px 9px;border-radius:8px;white-space:nowrap}.st-tb .hook.g{background:#ECFDF5;color:#15803D}.st-tb .hook.o{background:#FFF7ED;color:#C2410C}.st-tb .hook.r{background:#FEF2F2;color:#B91C1C}
.st-tracks .chat{height:28px;margin-left:44px;position:relative;background:#FAF5FF;border-bottom:1px solid #F1F5F9}.st-tracks .chat[hidden]{display:none}
.st-tracks .chat .ic{position:absolute;left:-34px;top:6px;font-size:12px}.st-tracks .chat svg{position:absolute;left:0;top:0}
.st-tracks .chat .pk{position:absolute;top:-1px;transform:translateX(-50%);font-size:12px;background:#EDE9FE;border-radius:6px;padding:0 3px;line-height:16px}
.lane .cutb{position:absolute;top:4px;height:20px;background:repeating-linear-gradient(135deg,rgba(220,38,38,.55) 0 3px,rgba(254,226,226,.6) 3px 6px);z-index:2;border-radius:2px;pointer-events:none}

/* ---------- the Studio keeps going (2026-12-02) ---------- */
/* confirm box: Replace video? / Remove the video? */
.st-ask{border:0;border-radius:18px;padding:22px 22px 18px;width:min(340px,calc(100vw - 32px));box-shadow:0 30px 70px rgba(15,23,42,.3);text-align:center;font-family:inherit}
.st-ask::backdrop{background:rgba(15,23,42,.35)}
.st-ask .ic{width:52px;height:52px;border-radius:14px;background:#ECFDF5;color:#15803D;display:flex;align-items:center;justify-content:center;margin:0 auto 10px}.st-ask .ic.red{background:#FEF2F2;color:#B91C1C}
.st-ask b{display:block;font-size:17px;color:#0F172A}.st-ask span{display:block;color:#64748B;font-size:13px;margin:4px 0 16px}
.st-ask .row{display:flex;gap:10px}.st-ask .row>*{flex:1;padding:11px;border-radius:11px;font-weight:700;font-size:14px}
.st-ask .b.red{background:#B91C1C;color:#fff;border:0;cursor:pointer}
/* label buttons: Replace, Remove, Hide */
.st-slab .slb{width:26px;height:26px;border:0;background:none;color:#475569;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.st-slab .slb:hover,.eye:hover{background:#F1F5F9;color:#0F172A}
/* a hidden preview: a slim vertical chip in the same place */
.st-chip{align-self:center;display:flex;flex-direction:column;align-items:center;gap:10px;width:48px;padding:12px 0 8px;border-radius:14px;border:1.5px dashed #86EFAC;background:#F0FDF4;color:#15803D;cursor:pointer;font:inherit;flex:none}
.st-chip.r{border-color:#C4B5FD;background:#FAF5FF;color:#7C3AED}.st-chip[hidden]{display:none}
.st-chip .nm{writing-mode:vertical-rl;font-weight:800;font-size:13px;letter-spacing:.02em}
.st-chip .eb{width:32px;height:32px;border-radius:9px;background:#15803D;color:#fff;display:flex;align-items:center;justify-content:center}.st-chip.r .eb{background:#7C3AED}
#lyToggle button.hid{opacity:.55;text-decoration:line-through}
/* cards over a preview: Resume upload, Upload paused */
.st-card{position:absolute;inset:0;z-index:12;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#475569,#1E293B);border-radius:inherit}
.st-card[hidden]{display:none}
.st-card .in{background:#fff;border-radius:16px;padding:18px 18px 14px;width:min(250px,84%);display:flex;flex-direction:column;align-items:center;gap:10px;box-shadow:0 12px 30px rgba(0,0,0,.25)}
.st-card .pct{font-size:34px;font-weight:900;color:#15803D;line-height:1}.st-card .bad{font-size:16px;color:#B91C1C}
.st-card .in>span{font-size:12px;color:#64748B;text-align:center}.st-card .nm{font-size:12px;color:#475569;font-weight:600;word-break:break-all;text-align:center}
.st-card .bar{width:100%;height:6px;border-radius:3px;background:#E2E8F0;overflow:hidden}.st-card .bar i{display:block;height:100%;background:#15803D}
.st-card .b{width:100%;padding:10px;border-radius:10px;font-weight:800}.st-card .lk{border:0;background:none;color:#64748B;font-size:12px;text-decoration:underline;cursor:pointer}
.st-refbox{position:relative}
/* a file the browser can't play: the upload % and "Preparing preview" instead of an error */
.st-prep{position:absolute;inset:0;z-index:11;background:#111827;border-radius:inherit;display:flex;flex-direction:column;color:#fff}.st-prep[hidden]{display:none}
.st-prep .up{padding:16px 18px 0}.st-prep .up span{display:flex;justify-content:space-between;font-size:12px;font-weight:800}.st-prep .up i{font-style:normal;color:#CBD5E1}
.st-prep .bar{height:5px;border-radius:3px;background:rgba(255,255,255,.18);margin-top:7px;overflow:hidden}.st-prep .bar div{height:100%;background:#22C55E;border-radius:3px;transition:width .5s}
.st-prep .mid{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:0 24px;text-align:center}
.st-prep .mid b{font-size:15px}.st-prep .mid .bar{width:62%;margin:0}.st-prep .mid .pc{font-size:12px;color:#CBD5E1;font-weight:700}.st-prep .mid .sub{font-size:12px;color:#94A3B8}
.st-prep .spin{width:40px;height:40px;border-radius:50%;border:3px solid rgba(255,255,255,.15);border-top-color:#22C55E;animation:stspin 1s linear infinite}
@keyframes stspin{to{transform:rotate(360deg)}}
/* the AI meter next to Send */
.st-tb .ai .meter{display:inline-flex;align-items:center;gap:3px;color:#7C3AED;font-size:12px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}.st-tb .ai .meter.low{color:#B91C1C}
.st-tb .ai .charge{border:1.5px solid #7C3AED;background:#fff;color:#7C3AED;border-radius:7px;padding:3px 8px;font:inherit;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}
.st-tb .ai .charge[hidden]{display:none}
.st-tb .ai .charge.pulse{background:#7C3AED;color:#fff;animation:stpulse 1.3s ease-in-out infinite}
@keyframes stpulse{0%,100%{box-shadow:0 0 0 0 rgba(124,58,237,.55)}50%{box-shadow:0 0 0 6px rgba(124,58,237,0)}}
.st-ai .chg{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #EDE9FE;background:#FAF5FF;border-radius:12px;padding:8px 8px 8px 12px;font-weight:700;color:#4C1D95}
.st-ai .chg span{display:inline-flex;align-items:center;gap:6px}.st-ai .chg .b{padding:7px 14px;border-radius:9px;font-weight:800}
/* other pages open over the Studio */
.st-page{position:fixed;left:0;right:0;top:52px;bottom:0;width:100%;height:calc(100% - 52px);border:0;background:#fff;z-index:60}.st-page[hidden]{display:none}
body.paged{overflow:hidden}
/* the timeline: one picture strip and one waveform */
.st-tracks .lane.video.pic{background-color:#CBD5E1;background-repeat:no-repeat}
.st-tracks .lane.video .wv{position:absolute;left:0;right:0;bottom:0;height:45%;background-repeat:no-repeat;pointer-events:none;opacity:.9}
/* the reference's plain preview: a blurred copy behind the centred video */
.st-refpv .refbg{position:absolute;inset:-8%;width:116%;height:116%;filter:blur(14px) brightness(.8);pointer-events:none}
.st-refpv video{position:relative;background:transparent}

/* ======================= phones and small tablets (narrower than 820 px): body.ph, set by studio.js ======================= */
.ph-top,.ph-ai,.ph-tools,.ph-sheet,.ph-scrim,.ph-refbar,.ph-note,.ph-lcards{display:none}
body.studio.ph{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
body.studio.ph .ev-header{z-index:70}
body.ph .ev-extra{display:none}
body.ph .st-app{top:52px;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto auto;grid-template-areas:"top" "canvas" "ai" "tl" "tools"}
body.ph .st-rail,body.ph .st-app>.st-left,body.ph .st-app>.st-right,body.ph #ratio{display:none}
/* top row: undo, redo · Anchor / Ref · Generate */
body.ph .ph-top{grid-area:top;display:flex;align-items:center;gap:2px;padding:8px 12px 6px 6px}
.ph-top .ib{width:44px;height:44px;border-radius:12px;color:#334155;flex:none}.ph-top .ib svg{width:22px;height:22px}.ph-top .ib:disabled{opacity:.35}
.ph-seg{flex:1;display:flex;justify-content:center;min-width:0}
.ph-seg>span{display:flex;background:#F1F5F9;border-radius:12px;padding:3px;gap:2px;max-width:100%}
.ph-seg button{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 12px;border:0;border-radius:10px;background:none;font-weight:800;font-size:15px;color:#15803D;white-space:nowrap;min-width:0}
.ph-seg button[data-v=r]{color:#7C3AED}.ph-seg button.on{background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.12)}
.ph-seg button.hid{opacity:.5}.ph-seg button svg{flex:none}
.ph-gen{height:40px;padding:0 16px;border:0;border-radius:12px;background:#15803D;color:#fff;font-weight:800;font-size:15px;flex:none;white-space:nowrap}
.ph-gen:active{background:#166534}
@media (max-width:400px){body.ph .ph-top{padding-right:10px}.ph-top .ib{width:40px}.ph-seg button{padding:0 8px;gap:4px;font-size:14px}.ph-seg button svg{width:15px;height:15px}.ph-gen{padding:0 12px;font-size:14px}}
@media (max-width:340px){.ph-seg button svg{display:none}}
body.ph .st-app.empty .ph-top,body.ph .st-app.empty .ph-ai,body.ph .st-app.empty .st-tl{display:none}
body.ph .st-app.all .ph-seg>span{display:none}
/* the preview: one at a time, as big as fits */
body.ph .st-canvas{grid-area:canvas;background:#fff;background-image:none}
body.ph .st-previews{padding:4px 16px 10px;gap:0}
body.ph .st-slab{display:none}
body.ph .st-slot{gap:10px}
body.ph .st-slot .pv{height:100%;max-height:100%;max-width:100%;border-radius:22px;box-shadow:0 14px 34px rgba(15,23,42,.22);touch-action:none}
body.ph .st-refbox{height:100%;max-width:100%}
body.ph .st-slot.ref .st-refbox{height:calc(100% - 54px)}
body.ph .st-app.view-a #slotR,body.ph .st-app.view-a #chipR,body.ph .st-app.view-r #slotA,body.ph .st-app.view-r #chipA{display:none!important}
body.ph .st-chip{flex-direction:row;width:auto;padding:12px 18px;gap:10px;align-self:center;margin:auto}
body.ph .st-chip .nm{writing-mode:horizontal-tb;font-size:15px}.st-chip .hint{display:none}body.ph .st-chip .hint{display:inline;font-weight:600;font-size:13px;color:inherit;opacity:.75}
body.ph .ph-refbar{display:flex;justify-content:center;gap:10px;flex:none}
.ph-refbar button{height:44px;min-width:44px;border-radius:12px;border:1px solid #E5E7EB;background:#fff;color:#334155;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 12px;font-weight:700;font-size:15px}
.ph-refbar .sv{border-color:#DDD6FE;color:#7C3AED;padding:0 16px}.ph-refbar button[aria-pressed=true]{color:#94A3B8}
/* the drop box fills the screen before a video is in */
body.ph .st-app.empty .st-canvas{grid-row:1/5}
body.ph .st-drop.main{width:min(270px,calc(100% - 56px));max-height:calc(100% - 48px);aspect-ratio:9/16;border-width:2.5px;border-color:#94A3B8;border-radius:30px;gap:14px;padding:18px;background:#fff}
@media (max-height:640px){body.ph .st-drop.main{aspect-ratio:auto;height:calc(100% - 32px);width:calc(100% - 48px)}}
body.ph .st-drop .dic{width:58px;height:58px;border-radius:18px}body.ph .st-drop.main .dic{font-size:0;background:#ECFDF5}body.ph .st-drop .dic svg{width:28px;height:28px}
body.ph .st-drop b{font-size:22px}
body.ph .st-drop .b.go{min-height:44px;padding:0 24px;font-size:16px}
body.ph .st-drop .lnk{min-height:44px;width:100%;padding:4px 4px 4px 12px}
body.ph .st-drop .lnk input{font-size:15px}body.ph .st-drop .lnk button{min-height:36px;font-size:15px;padding:0 14px}
body.ph .st-drop .small{font-size:14px}
body.ph .st-drop.ref{border-radius:22px}
/* the AI box under the preview */
body.ph .ph-ai{grid-area:ai;display:block;padding:0 14px 8px;position:relative;min-height:62px;box-sizing:border-box}
body.ph .ph-ai .ai{display:flex;align-items:center;gap:6px;border:2px solid #C4B5FD;background:#FAF5FF;border-radius:16px;padding:3px 3px 3px 12px;margin:0;min-height:46px}
body.ph .ph-ai .ai .att{display:none}
body.ph .ai .sp{color:#7C3AED;font-size:16px}
body.ph .ai input[type=text]{font-size:16px;border:0;background:none;outline:0;flex:1;min-width:0;font-family:inherit}
body.ph .ai .meter{display:inline-flex;align-items:center;gap:3px;color:#7C3AED;font-size:14px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}body.ph .ai .meter.low{color:#B91C1C}
body.ph .ph-ai .ai .charge{display:none}body.ph .ph-ai .ai .charge.pulse{display:inline-block;height:34px;border:0;border-radius:10px;padding:0 10px;font-weight:800;font-size:13px}
body.ph .ai .send{width:38px;height:38px;border-radius:12px;border:0;background:#7C3AED;color:#fff;position:relative;flex:none}
body.ph .ai .send::before{content:"";position:absolute;inset:0;background:center/20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13M22 2l-7 20-4-9-9-4z'/%3E%3C/svg%3E")}
body.ph .ai.empty input::placeholder{color:#B91C1C}
/* the compact timeline: play, time, split, delete; the video strip with the green anchor box */
body.ph .st-tl{grid-area:tl;border-top:1px solid #EEF2F6;position:relative}
body.ph .st-tb{height:54px;padding:0 14px;gap:4px;border:0}
body.ph .st-tb .pl{width:44px;height:44px}body.ph .st-tb .pl svg{width:16px;height:16px}
body.ph .st-tb .tm{font-size:17px;min-width:0;margin-left:8px;font-variant-numeric:tabular-nums}
body.ph #tlDup,body.ph #tlSnap,body.ph #tlSpeed,body.ph .st-tb .zm{display:none}
body.ph #tlSplit{margin-left:auto}body.ph .st-tb .ib{width:44px;height:44px;color:#334155}body.ph .st-tb .ib svg{width:22px;height:22px}
body.ph .st-tb .hook{font-size:12px;padding:3px 7px}
body.ph .st-tracks{flex:none;height:66px;overflow-x:auto;overflow-y:hidden;padding:8px 14px 14px;box-sizing:border-box;touch-action:pan-x;scrollbar-width:none}body.ph .st-tracks::-webkit-scrollbar{display:none}
body.ph .st-tracks .rulr,body.ph .st-tracks .chat,body.ph .st-tracks .lane:not(.video):not(.anc),body.ph .lane .ic{display:none!important}
body.ph .st-tracks .lanes{margin-left:0;height:44px}
body.ph .lane.video{height:44px;margin:0;border-radius:9px;overflow:hidden}
body.ph .lane.anc{position:absolute;left:0;top:0;height:44px;border:0;width:100%;pointer-events:none}
body.ph .lane .anchor{pointer-events:auto;top:-3px;height:50px;border:3px solid #15803D;border-radius:11px;background:rgba(20,184,166,.22);color:#fff;font-size:0;min-width:24px}
body.ph .lane .anchor.ghost{font-size:12px;color:#15803D;background:rgba(220,252,231,.85)}
body.ph .lane .anchor i{width:24px;top:-6px;bottom:-6px}body.ph .lane .anchor i.a{left:-14px}body.ph .lane .anchor i.b{right:-14px}
body.ph .lane .cutb{top:0;height:44px}
body.ph .st-tracks .head{margin-left:14px;top:2px;bottom:6px;width:2px;background:#DC2626}body.ph .st-tracks .head::before{display:none}
body.ph .st-strip{padding:4px 14px}body.ph .st-strip button{width:40px;height:44px;border-radius:7px}
body.ph .st-tl>.st-ai{display:none!important}
/* the tool bar at the bottom: icon + small label, scrolls sideways */
body.ph .ph-tools{grid-area:tools;display:flex;gap:2px;overflow-x:auto;padding:6px 6px calc(4px + env(safe-area-inset-bottom));border-top:1px solid #EEF2F6;background:#fff;scrollbar-width:none}body.ph .ph-tools::-webkit-scrollbar{display:none}
.ph-tools button{flex:none;width:62px;height:62px;border:0;background:none;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#334155;font-size:12px;font-weight:600;padding:0}
.ph-tools button svg{width:25px;height:25px}
.ph-tools button[data-t=ai]{color:#7C3AED}.ph-tools button.on{background:#ECFDF5;color:#15803D}.ph-tools button[data-t=ai].on{background:#F3E8FF;color:#7C3AED}
.ph-tools button:disabled{opacity:.42}
/* bottom sheets: a grab bar, a header with ✕, drag down to close; the preview stays visible above */
body.ph .ph-scrim{display:block;position:fixed;left:0;right:0;top:52px;bottom:0;background:rgba(15,23,42,.07);z-index:48;pointer-events:none;opacity:0;transition:opacity .15s}
body.ph .ph-scrim.on{opacity:1}body.ph .ph-scrim.dim{background:rgba(15,23,42,.26)}
body.ph .ph-sheet{display:flex;flex-direction:column;position:fixed;left:0;right:0;bottom:0;max-height:min(68vh,calc(100% - 170px));background:#fff;border-radius:28px 28px 0 0;box-shadow:0 -12px 40px rgba(15,23,42,.18);z-index:50;transform:translateY(105%);transition:transform .2s cubic-bezier(.2,.8,.3,1);padding-bottom:env(safe-area-inset-bottom);visibility:hidden}
body.ph .ph-sheet.open{transform:translateY(0);visibility:visible}body.ph .ph-sheet.drag{transition:none}
body.ph .ph-sheet.k-clips{max-height:min(80vh,calc(100% - 110px))}body.ph .ph-sheet.k-ai{max-height:min(74vh,calc(100% - 140px))}
.ph-sheet .grab{flex:none;height:22px;display:flex;align-items:center;justify-content:center;touch-action:none;cursor:grab}.ph-sheet .grab::before{content:"";width:40px;height:5px;border-radius:3px;background:#CBD5E1}
.ph-sheet .hd{flex:none;display:flex;align-items:center;gap:10px;padding:0 10px 8px 18px;touch-action:none;min-height:48px}
.ph-sheet .hd .ic{color:#0F172A;display:flex}.ph-sheet .hd b{font-size:19px;font-weight:800;flex:1;min-width:0}
.ph-sheet.k-ai .hd .ic,.ph-sheet.k-ai .hd b{color:#7C3AED}.ph-sheet.k-clips .hd .ic{color:#15803D}
.ph-sheet .hd .act{display:flex;align-items:center;gap:8px}
.ph-sheet .hd .x{width:44px;height:44px;border:0;background:none;border-radius:12px;color:#334155;display:flex;align-items:center;justify-content:center;flex:none}
.ph-sheet .hd .add{height:44px;padding:0 14px;border:1px solid #E5E7EB;border-radius:12px;background:#fff;font-weight:700;font-size:15px;display:inline-flex;align-items:center;gap:6px}
.ph-sheet .hd .meter{display:inline-flex;align-items:center;gap:3px;color:#7C3AED;font-weight:800;font-size:16px}.ph-sheet .hd .meter.low{color:#B91C1C}
.ph-sheet .hd .chg{height:38px;padding:0 14px;border:2px solid #C4B5FD;border-radius:12px;background:#fff;color:#7C3AED;font-weight:800;font-size:15px}.ph-sheet .hd .chg.pulse{background:#7C3AED;color:#fff;border-color:#7C3AED;animation:stpulse 1.3s ease-in-out infinite}
.ph-sheet .hd #nBox{width:64px;height:44px;border:1px solid #E5E7EB;border-radius:12px;text-align:center;font:inherit;font-weight:800;font-size:22px}
.ph-sheet .bd{flex:1;overflow:auto;overscroll-behavior:contain;padding:0 16px 16px;min-height:0}
.ph-sheet .ft{flex:none;padding:8px 16px 12px}.ph-sheet .ft:empty{display:none}
.ph-sheet .bd>.st-left,.ph-sheet .bd>.st-right{display:block;border:0;overflow:visible}
.ph-sheet .st-sec{padding:0}.ph-sheet .st-sec>.sh{display:none}
.ph-sheet .st-right>.sh,.ph-sheet .st-right>.grow,.ph-sheet #lyToggle{display:none}
.ph-sheet.k-clips .st-right>:not(#clipsBox):not(#allBox),.ph-sheet.k-layers .st-right>#clipsBox,.ph-sheet.k-layers .st-right>#allBox{display:none!important}
.ph-sheet .st-clips,.ph-sheet .st-all{border:0;padding:0;gap:14px}.ph-sheet .st-clips>.sh{display:none}
.ph-sheet .chips{gap:8px}.ph-sheet .chips button{min-height:40px;padding:0 14px;font-size:15px;border-radius:12px;position:relative}.ph-sheet .chips button.on{padding:0 13px}
.ph-sheet .chips button::after{content:"";position:absolute;left:0;right:0;top:-2px;bottom:-2px}
.ph-sheet #lenChips{display:grid;grid-template-columns:repeat(3,1fr)}
.ph-sheet input[type=range]{height:30px;accent-color:#15803D}
.ph-sheet #custom{min-height:46px;font-size:16px;border-radius:14px;padding:0 14px}
.ph-sheet .b.go.big{min-height:52px;border-radius:14px;font-size:17px;border:0;background:#15803D;color:#fff}
.ph-sheet .ptiles{display:flex;gap:10px;overflow-x:auto;padding:2px 0 4px}.ph-sheet .ptiles button{flex:none;width:64px;font-size:12px;font-weight:600;color:#334155;padding:0;border:0}
.ph-sheet .ptiles button i{width:64px;height:82px;aspect-ratio:auto;border-radius:12px;border:2px solid transparent;box-sizing:border-box}.ph-sheet .ptiles button.on i{border-color:#15803D;box-shadow:inset 0 0 0 2px #fff}
.ph-sheet .tiles{grid-template-columns:repeat(4,1fr);gap:10px}.ph-sheet .tiles button{background:#334155;border-radius:14px;font-size:17px;border-width:3px}
.ph-sheet .sh2{font-size:13px;color:#64748B;margin-top:6px}
.ph-sheet .card{border:1px solid #EEF2F6;border-radius:16px;padding:12px;box-shadow:none;font-size:14px}
.ph-sheet .fld{font-size:13px}.ph-sheet .fld select,.ph-sheet .fld input[type=text],.ph-sheet .fld textarea,.ph-sheet select.sel{font-size:16px;min-height:44px;padding:8px 10px}
.ph-sheet .sb{min-height:40px;padding:0 14px;font-size:14px;border-radius:11px}
.ph-sheet .lyp{margin:12px 0 0;border:0;border-top:1px solid #EEF2F6;border-radius:0;padding:12px 0 0;max-width:none}.ph-sheet .lyp .grid{grid-template-columns:1fr;gap:10px}.ph-sheet .lyp .fld.sl{display:grid;grid-template-columns:84px 1fr;align-items:center;gap:10px}
.ph-sheet .lyp .acts{display:flex;flex-wrap:wrap;gap:8px}.ph-sheet .lyp p.small{display:none}
.ph-hide{display:none!important}
/* Layers: the Anchor / Ref cards, then the layer list */
.ph-sheet .ph-lcards{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-bottom:12px}
.ph-lcards>div{display:flex;align-items:center;border:2px solid #E5E7EB;border-radius:16px;padding:0 4px 0 12px;min-height:56px;min-width:0}
.ph-lcards>div.a{color:#15803D}.ph-lcards>div.r{color:#7C3AED;background:#FAF5FF;border-color:#EDE9FE}.ph-lcards>div.on.a{border-color:#15803D}.ph-lcards>div.on.r{border-color:#A78BFA}
.ph-lcards .nm svg{flex:none}.ph-lcards .nm{flex:1;display:flex;align-items:center;gap:8px;font-weight:800;font-size:15px;border:0;background:none;color:inherit;padding:0;min-width:0;height:52px;text-align:left}
.ph-lcards .ib{width:44px;height:44px;color:#334155;flex:none}.ph-lcards .ib[aria-pressed=true]{color:#CBD5E1}
.ph-lcards .ib:disabled{opacity:.3}
.ph-sheet .st-layers{padding:0;gap:2px}
.ph-sheet .st-layers .row{min-height:50px;padding:0 4px 0 14px;font-size:16px;border-radius:12px;gap:12px}
.ph-sheet .st-layers .row .ic{width:22px}.ph-sheet .st-layers .row .ic svg{width:20px;height:20px}
.ph-sheet .st-layers .row .ib{width:44px;height:44px;font-size:16px}
.ph-sheet .st-layers .row.lift{background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.18);position:relative;z-index:2}
/* AI: the thread, Stop / Undo / Keep, and the box at the bottom */
.ph-sheet .st-ai:not([hidden]){display:flex!important}.ph-sheet .st-ai{position:static;width:auto;max-height:none;box-shadow:none;border-radius:0;font-size:15px;overflow:visible}
.ph-sheet .st-ai .aih{display:none}.ph-sheet .st-ai .aibody{padding:0;gap:10px;overflow:visible}
.ph-sheet .st-ai .me{padding:10px 14px;border-radius:16px;font-weight:600;font-size:15px}
.ph-sheet .st-ai .step{min-height:36px;gap:12px}.ph-sheet .st-ai .step .ic{width:32px;height:32px;border-radius:10px}.ph-sheet .st-ai .step .prog{width:60px}
.ph-sheet .st-ai .aibtns{padding:12px 0 0;border:0;gap:10px}.ph-sheet .st-ai .aibtns .sb{min-height:44px;font-size:15px;border-radius:12px}
.ph-sheet .st-ai .chg{padding:8px 8px 8px 14px}.ph-sheet .st-ai .chg .b{min-height:40px}
.ph-sheet .ft .ai{display:flex;align-items:center;gap:6px;border:2px solid #C4B5FD;background:#FAF5FF;border-radius:16px;padding:3px 3px 3px 6px;min-height:48px;margin:0}
.ph-sheet .ft .ai .sp,.ph-sheet .ft .ai .meter,.ph-sheet .ft .ai .charge{display:none!important}
.ph-sheet .ft .ai .att{display:flex;width:40px;height:40px;border:0;background:none;color:#7C3AED;align-items:center;justify-content:center}.ph-sheet .ft .ai .att::before{content:none}
.ph-sheet #pan-fx .fxgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
.ph-sheet #ratio{display:flex;position:static;flex-wrap:wrap;margin-top:12px}.ph-sheet #ratio button{min-height:40px;padding:0 12px;font-size:14px}.ph-sheet #ratio .safe{display:flex}
/* the AI's one-line reply when the meter is empty */
body.ph .ph-note{display:block;position:absolute;left:14px;right:14px;bottom:calc(100% - 26px);z-index:15;background:#fff;border:1px solid #E9D5FF;border-radius:20px;box-shadow:0 14px 40px rgba(124,58,237,.18);padding:12px}
body.ph .ph-note[hidden]{display:none}
.ph-note .rp{display:flex;align-items:flex-start;gap:12px;font-weight:600;font-size:15px;line-height:1.45;padding:2px 30px 10px 0;color:#0F172A}
.ph-note .rp i{width:34px;height:34px;border-radius:10px;background:#F3E8FF;color:#7C3AED;display:flex;align-items:center;justify-content:center;flex:none}
.ph-note .chg{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #EDE9FE;background:#FAF5FF;border-radius:14px;padding:6px 6px 6px 14px;font-weight:700;font-size:16px;color:#1E1B4B}
.ph-note .chg span{display:inline-flex;align-items:center;gap:8px}.ph-note .chg span svg{color:#7C3AED}
.ph-note .chg .b{min-height:44px;padding:0 20px;border-radius:12px;font-weight:800;font-size:16px;border:0;animation:stpulse 1.3s ease-in-out infinite}
.ph-note .x{position:absolute;right:4px;top:4px;width:40px;height:40px;border:0;background:none;color:#94A3B8;border-radius:10px}
/* the floating toolbar on the selected item: thumb-sized */
body.ph .st-float{top:0;border-radius:0 0 16px 16px;padding:2px 8px;gap:2px}
body.ph .st-float button{width:44px;height:44px;font-size:18px}body.ph .st-float input[type=color]{width:26px;height:26px;margin:9px}
body.ph .pv .play{width:56px;height:56px;margin:-28px 0 0 -28px}
body.ph .upbar{left:12px;right:12px;top:12px;padding:9px 12px;border-radius:12px;font-size:14px}body.ph .upbar .bar{height:6px}
/* Generate while signed out: the sign-in sheet slides up */
body.ph dialog#signin{margin:auto 0 0;width:100%;max-width:100%;border-radius:28px 28px 0 0;padding:10px 22px calc(28px + env(safe-area-inset-bottom));box-sizing:border-box}
body.ph dialog#signin::before{content:"";display:block;width:40px;height:5px;border-radius:3px;background:#CBD5E1;margin:0 auto 18px}
body.ph .sg .n{font-size:64px;letter-spacing:-.02em}body.ph .sg span{font-size:20px;margin-bottom:18px}
body.ph .gbtn{min-height:56px;font-size:17px;border-radius:16px}
body.ph .sg .sgf input{min-height:52px;font-size:17px;border-radius:14px}body.ph .sg .sggo,body.ph .sg .sgrow>*{min-height:54px;font-size:17px;border-radius:16px}body.ph .sg .sgsub{font-size:14px}
body.ph .st-ask{margin:auto 0 0;width:100%;max-width:100%;border-radius:28px 28px 0 0;padding:20px 20px calc(20px + env(safe-area-inset-bottom))}body.ph .st-ask .row>*{min-height:48px}
body.ph .st-page{top:52px;height:calc(100% - 52px)}
body.ph .st-card .b{min-height:46px}
.ph-sheet #sec-text .ph-only-d,.ph-sheet #sec-text #presetTiles{display:none}
body.ph .ph-ai .ai .charge.pulse{background:#7C3AED;color:#fff;animation:stpulse 1.3s ease-in-out infinite}
.lane .anchor i,.lane .bar i{background:none;border:0;padding:0;margin:0;box-shadow:none;min-width:0;min-height:0;border-radius:0}
body.ph .st-drop .lnk input{width:0}body.ph .st-refbox{min-width:0}.st-tb .ai .att svg{display:none}
.st-pulse{animation:stpulseg 1s ease-in-out 4}
@keyframes stpulseg{0%,100%{box-shadow:0 0 0 0 rgba(21,128,61,.55)}50%{box-shadow:0 0 0 12px rgba(21,128,61,0)}}
/* a phone turned sideways: the preview on the left, the controls on the right */
@media (max-height:500px) and (orientation:landscape){
  body.ph .st-app{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr) auto;grid-template-areas:"canvas top" "canvas ai" "canvas tl" "canvas ." "canvas tools"}
  body.ph .st-canvas{width:calc((100vh - 52px - 16px) * .5625 + 24px);width:calc((100dvh - 52px - 16px) * .5625 + 24px)}
  body.ph .st-previews{padding:6px 12px 10px}body.ph .st-slot.ref .st-refbox{height:100%}body.ph .ph-refbar{display:flex}
  body.ph .st-app.empty .st-canvas{grid-row:1/-1;grid-column:1/-1;width:auto}
  body.ph .ph-top{padding-top:4px}body.ph .ph-tools button{height:54px}body.ph .ph-tools button span{display:none}
  body.ph .ph-sheet{left:auto;width:min(460px,64vw);max-height:calc(100% - 60px);border-radius:24px 0 0 0}
  body.ph .ph-note{left:auto;width:min(420px,60vw)}
}
.lane.video .pcs{position:absolute;inset:0;pointer-events:none}.lane.video .pc{position:absolute;top:0;bottom:0;background-size:100% 100%;background-repeat:no-repeat}.lane.video .pcw{position:absolute;bottom:0;height:45%;background-size:100% 100%;background-repeat:no-repeat}

/* ---------- "Use this layout on my clip" (2026-12-02) ---------- */
.st-uselay{display:flex;gap:8px;width:100%;margin-top:10px;flex:none}
.st-uselay[hidden]{display:none}
.st-uselay .ul-go{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 14px;border:0;border-radius:12px;background:#7C3AED;color:#fff;font:inherit;font-weight:800;font-size:14px;cursor:pointer;box-shadow:0 8px 20px rgba(124,58,237,.25);white-space:nowrap}
.st-uselay .ul-go:hover{background:#6D28D9}
.st-uselay.busy .ul-go{background:#EDE9FE;color:#6D28D9;box-shadow:none;cursor:default}.st-uselay.busy .ul-go>svg{display:none}
.st-uselay.done .ul-go{background:#F0FDF4;color:#15803D;box-shadow:none;cursor:default}.st-uselay.done .ul-go>svg{display:none}
.st-uselay .ul-go span{display:inline-flex;align-items:center;gap:8px;overflow:hidden;text-overflow:ellipsis}
.st-uselay .spin{width:15px;height:15px;border:2.5px solid #C4B5FD;border-top-color:#7C3AED;border-radius:50%;animation:ulspin .8s linear infinite;flex:none}
.st-uselay .ul-undo{min-height:40px;padding:0 18px;border-radius:12px;border:1px solid #E5E7EB;background:#fff;font:inherit;font-weight:700;color:#0F172A;cursor:pointer}
@keyframes ulspin{to{transform:rotate(360deg)}}
.st-app.uselay .st-slot .pv,.st-app.uselay .st-refbox{height:calc(100% - 84px)}
.st-ratio{left:16px;right:auto}
body.ph .st-app.uselay .st-slot .pv{height:100%}
body.ph .st-app.uselay .st-slot.ref .st-refbox{height:calc(100% - 66px)}
body.ph .st-uselay{width:calc(100vw - 32px);max-width:560px;align-self:center;margin-top:10px}
body.ph .st-uselay .ul-go,body.ph .st-uselay .ul-undo{min-height:54px;font-size:17px;border-radius:18px}
/* ---------- the empty Reference box: the same full drop box as the anchor's ---------- */
.st-drop.ref .dic{border-radius:16px;width:52px;height:52px}.st-drop.ref .dic svg{width:24px;height:24px}
/* phones: the reference box is the anchor preview's size and shape (studio.js measures it), empty or loaded */
body.ph .st-slot{width:100%}
body.ph .st-slot.ref .st-refbox,body.ph .st-app.uselay .st-slot.ref .st-refbox{flex:1 1 0;height:auto;min-height:0;max-width:none}
body.ph .st-drop.ref{border-width:2.5px;border-style:dashed;border-color:#C4B5FD;border-radius:24px;gap:14px;padding:16px;box-sizing:border-box}
body.ph .st-drop.ref .dic{width:58px;height:58px;border-radius:18px}body.ph .st-drop.ref .dic svg{width:28px;height:28px}
body.ph .st-drop.ref b{font-size:20px;white-space:nowrap}body.ph .st-drop.ref .b.purple{min-height:44px;padding:0 22px;font-size:16px;white-space:nowrap}
body.ph .st-drop.ref .lnk{max-width:100%;box-sizing:border-box}body.ph .st-drop.ref .lnk input{font-size:16px}body.ph .st-drop.ref .lnk button{font-size:14px;padding:9px 14px}
body.ph .st-drop.ref .small{font-size:13.5px;text-align:center;max-width:240px}
body.ph .st-drop.ref.tight{gap:9px;padding:10px 14px}body.ph .st-drop.ref.tight .dic{width:42px;height:42px;border-radius:13px}body.ph .st-drop.ref.tight .dic svg{width:22px;height:22px}
body.ph .st-drop.ref.tight b{font-size:18px}body.ph .st-drop.ref.tight .small{font-size:12.5px;line-height:1.35}
@media (max-height:760px){body.ph .st-app.refempty .st-tl{display:none}}   /* a short screen: the empty box gets the room */
/* save, replace and hide stand beside the reference, never over or under it */
body.ph .ph-refbar{position:absolute;left:100%;top:0;margin-left:8px;flex-direction:column;gap:8px}
body.ph .ph-refbar[hidden]{display:none}body.ph .ph-refbar button{width:44px;padding:0}.ph-refbar .sv span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body.ph .st-refpv{border-radius:22px}
/* ---------- files for the AI (2026-12-02): a card per file right above the text box ---------- */
#aiForm{position:relative}
.ai-att{position:absolute;left:0;bottom:calc(100% + 8px);width:min(330px,100%);background:#fff;border:1px solid #E9D5FF;border-radius:16px;box-shadow:0 18px 40px rgba(15,23,42,.18);padding:12px;z-index:30;box-sizing:border-box}
.ai-att[hidden]{display:none}
.ai-att .hd{display:flex;align-items:center;justify-content:space-between;color:#7C3AED;font-weight:800;font-size:13px;margin:0 2px 8px}
.ai-att .hd .mf{border:0;background:none;color:#7C3AED;font:inherit;font-size:12px;font-weight:700;cursor:pointer;padding:2px 4px}
.ai-att .list{display:flex;flex-direction:column;gap:8px;max-height:260px;overflow:auto}
.ac{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;background:#FAF5FF;border:1px solid #F3E8FF}
.ac .th{width:44px;height:44px;border-radius:10px;flex:none;background:#EDE9FE center/cover no-repeat;display:flex;align-items:center;justify-content:center;color:#7C3AED;overflow:hidden}
.ac .th img{width:100%;height:100%;object-fit:cover}
.ac .mt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ac .mt b{font-size:13px;font-weight:800;color:#0F172A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac .mt small{font-size:11px;color:#64748B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ac .mt small .ok{color:#15803D;font-weight:700}.ac .mt small .bad{color:#B91C1C;font-weight:700}
.ac .bar{height:4px;border-radius:3px;background:#EDE9FE;overflow:hidden}.ac .bar i{display:block;height:100%;background:#7C3AED;border-radius:3px;transition:width .3s}
.ac .x{border:0;background:none;color:#94A3B8;font-size:16px;cursor:pointer;padding:4px;flex:none}.ac .x:hover{color:#0F172A}
.ac .tick{color:#15803D;font-weight:800;flex:none}
#aiForm #aiChips{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:6px;flex:0 1 auto;min-width:0;max-width:42%;overflow:hidden}
#aiForm #aiChips .achip{flex:none}
#aiForm #aiChips:empty{display:none}
.achip{display:inline-flex;align-items:center;gap:5px;padding:3px 8px 3px 3px;border-radius:9px;background:#F5F3FF;border:1px solid #EDE9FE;font-size:11px;font-weight:700;color:#0F172A;white-space:nowrap;max-width:150px}
.achip img,.achip .ti{width:20px;height:20px;border-radius:5px;object-fit:cover;background:#EDE9FE;flex:none;display:inline-flex;align-items:center;justify-content:center;font-size:11px}
.achip span{overflow:hidden;text-overflow:ellipsis}.achip i{display:block;width:26px;height:3px;border-radius:2px;background:#EDE9FE;overflow:hidden;font-style:normal;flex:none}.achip i b{display:block;height:100%;background:#7C3AED}.achip .ok{color:#15803D}
.attmenu{position:absolute;left:24px;bottom:calc(100% + 8px);background:#fff;border:1px solid #E5E7EB;border-radius:14px;box-shadow:0 18px 40px rgba(15,23,42,.18);padding:6px;display:flex;flex-direction:column;gap:2px;z-index:31;min-width:230px}
.attmenu[hidden]{display:none}
.attmenu button{display:flex;flex-direction:column;align-items:flex-start;gap:1px;border:0;background:none;border-radius:10px;padding:9px 12px;font:inherit;cursor:pointer;text-align:left}
.attmenu button:hover{background:#F5F3FF}.attmenu b{font-size:13px;color:#0F172A}.attmenu small{font-size:11px;color:#64748B}
#aiForm.drop{outline:2px dashed #7C3AED;outline-offset:3px;background:#FAF5FF}
#aiBody .me .fs{display:flex;gap:6px;margin-bottom:6px}#aiBody .me .fs img,#aiBody .me .fs .ti{flex:none;width:40px;height:40px;border-radius:9px;object-fit:cover;background:#EDE9FE;display:inline-flex;align-items:center;justify-content:center}
#aiBody .me .ic{display:inline-flex;vertical-align:-3px;margin-right:6px;color:#7C3AED}
#aiBody .step .sth{flex:none;display:inline-block;width:18px;height:18px;border-radius:4px;object-fit:cover;vertical-align:-4px;margin-right:6px}
dialog#mfPick{border:0;border-radius:20px;padding:0;width:min(560px,calc(100% - 32px));max-height:min(620px,calc(100% - 64px));box-shadow:0 30px 80px rgba(15,23,42,.35)}
dialog#mfPick::backdrop{background:rgba(15,23,42,.45)}
.mfp{display:flex;flex-direction:column;max-height:inherit}.mfp .hd{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #F1F5F9}.mfp .hd b{font-size:16px}
.mfp .x{border:0;background:none;font-size:18px;cursor:pointer;color:#64748B}
.mfp .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;padding:16px 18px;overflow:auto}
.mfp .grid button{display:flex;flex-direction:column;gap:6px;align-items:stretch;border:1px solid #E5E7EB;border-radius:12px;background:#fff;padding:6px;cursor:pointer;font:inherit;text-align:left}
.mfp .grid button:hover{border-color:#7C3AED}.mfp .grid .t{aspect-ratio:1;border-radius:8px;background:#F1F5F9 center/contain no-repeat;display:flex;align-items:center;justify-content:center;color:#7C3AED;font-size:22px}
.mfp .grid small{font-size:11px;color:#334155;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.ph .ai-att{position:static;width:100%;box-shadow:none;border:0;padding:0 0 10px;order:-1;flex-basis:100%}
body.ph .ai-att .hd{display:none}body.ph .ai-att .list{max-height:38vh}
body.ph .ac{padding:12px 14px;border-radius:16px}body.ph .ac .th{width:72px;height:72px;border-radius:12px}body.ph .ac .mt b{font-size:18px}body.ph .ac .mt small{font-size:14px}body.ph .ac .x{font-size:22px}
body.ph #aiForm{flex-wrap:wrap}body.ph #aiForm #aiChips{display:none}
body.ph .attmenu{left:0;right:0;bottom:calc(100% + 8px);min-width:0}
body.ph .attmenu button{padding:14px 16px}body.ph .attmenu b{font-size:16px}body.ph .attmenu small{font-size:13px}
body.ph .st-drop .dic,.st-drop .dic{flex:none}
body.ph .ac .tick{display:none}body.ph .ac .mt small{white-space:normal}

/* ---------- phones, 2026-12-03 ---------- */
body.ph .pv .play{display:none}          /* the timeline's play button does it, and a tap on the picture; nothing covers the preview */
@media (max-height:760px) and (orientation:portrait){   /* Safari with its bars showing: the room goes to the preview */
  body.ph .ph-top{padding-top:4px;padding-bottom:4px}body.ph .st-previews{padding:2px 16px 8px}
  body.ph .ph-ai{min-height:54px;padding-bottom:4px}
  body.ph .st-tb{height:46px}
  body.ph .ph-tools{padding-top:2px;padding-bottom:calc(2px + env(safe-area-inset-bottom))}.ph-tools button{height:54px;gap:3px}
}
.ly.k-video:not(.on):not(:hover) .lyc,body.ph .ly.k-video:not(.on) .lyc{border-color:transparent;background:none}      /* the video's outline shows when it is picked */
body.ph .st-slot{position:relative}
body.ph .st-float{border-radius:14px;top:4px}
@media (max-height:760px) and (orientation:portrait){body.ph .st-uselay{margin-top:0}body.ph .st-uselay .ul-go,body.ph .st-uselay .ul-undo{min-height:46px;font-size:16px;border-radius:14px}body.ph .st-slot.ref{gap:8px}}
/* touch: no leftover "hover" outlines, and small round handles with a big invisible touch area so they don't cover the text */
body.ph .ly:not(.on):hover{outline:0}body.ph .ly:not(.on) .lyl{display:none!important}
body.ph .ly .h{width:12px;height:12px}body.ph .ly .h::before{content:"";position:absolute;inset:-14px}
body.ph .ly .h.tl{left:-9px;top:-9px}body.ph .ly .h.tr{right:-9px;top:-9px}body.ph .ly .h.bl{left:-9px;bottom:-9px}body.ph .ly .h.br{right:-9px;bottom:-9px}
