/* Studio's new look. Started as a build of tools/studio-layout-b (make-live.py); since 21 Nov 2026 THIS file is the one to edit – the builder is retired. */
/* ===== NEW LAYOUT – mock-up 2 (Lucas 19 Nov 2026). CapCut's way of laying out an editor, in Lukie's colours.
   Everything sits under html.lk-new, so "Today" is the site exactly as it is. The goal + check list: tools/studio-layout/GOAL.md ===== */
html.lk-new{
  --lk-gap:6px; --lk-r:8px;
  --lk-page:#000; --lk-box:#141416; --lk-fill:#1c1c1f; --lk-fill-hi:#26262a; --lk-line:rgba(255,255,255,.06);
  --lk-pw:400px; --lk-sw:34vw; --lk-cw:clamp(320px,22vw,400px); --lk-top:54fr; --lk-bot:46fr;
}
html.lk-new body{background:var(--lk-page);}

/* ── 1. full height: the page is one grid of boxes, 6 px round the edge and between them ── */
html.lk-new .app{margin-top:0;height:100vh;box-sizing:border-box;padding:var(--lk-gap);gap:var(--lk-gap);}
html.lk-new .app-main{display:grid;gap:var(--lk-gap);min-height:0;
  grid-template-columns:76px var(--lk-pw) minmax(0,1fr);
  grid-template-rows:minmax(0,var(--lk-top)) minmax(0,var(--lk-bot));
  grid-template-areas:"rail panel stage" "tl tl tl";}
html.lk-new .editor{display:contents;}
html.lk-new .side-rail{grid-area:rail;}
html.lk-new .panel{grid-area:panel;width:auto!important;min-width:0;margin-left:calc(-1 * var(--lk-gap));}
html.lk-new .stage{grid-area:stage;min-height:0;}
html.lk-new .timeline{grid-area:tl;height:auto!important;min-height:0;}
/* the layouts */
html.lk-new.lk-lay-create{--lk-pw:560px;}
html.lk-new.lk-lay-create .app-main{grid-template-areas:"rail panel stage" "rail panel tl";}
html.lk-new.lk-lay-edit{--lk-top:40fr;--lk-bot:60fr;}
html.lk-new.lk-lay-vertical .app-main{grid-template-columns:76px minmax(0,1fr) var(--lk-sw);grid-template-areas:"rail panel stage" "tl tl stage";}
/* the old drag handles are replaced by ours */
html.lk-new #resizeL, html.lk-new #resizeR, html.lk-new .tl-resize{display:none!important;}

/* ── 2. the boxes: dark grey fills, 8 px corners, no outlines; hairlines only inside a box ── */
html.lk-new .side-rail{background:var(--lk-box);border-right:1px solid var(--lk-line);border-radius:var(--lk-r) 0 0 var(--lk-r);}
html.lk-new .panel{background:var(--lk-box);border:0;border-radius:0 var(--lk-r) var(--lk-r) 0;overflow:hidden;}
html.lk-new .panel-head{border-bottom-color:var(--lk-line);}
html.lk-new .stage{background:var(--lk-box);border-radius:var(--lk-r);overflow:hidden;}
html.lk-new .timeline{background:var(--lk-box);border:0;border-radius:var(--lk-r);overflow:hidden;}
html.lk-new .tl-bar{border-bottom-color:var(--lk-line);}
html.lk-new .inspector{width:var(--lk-cw)!important;background:var(--lk-box);border:0;border-radius:var(--lk-r);overflow:hidden;}

/* ── 3. the preview row: what was the top bar now sits along the top of the preview box (CapCut's "Player" row) ── */
html.lk-new .rail{position:fixed;left:var(--lk-px,0);top:var(--lk-py,0);width:var(--lk-pwd,100%);height:46px;box-sizing:border-box;
  padding:0 8px 0 14px;gap:4px;background:transparent;border:0;z-index:60;backdrop-filter:none;}
html.lk-new .rail .rail-back, html.lk-new .rail .rail-logo, html.lk-new .rail .tb-title, html.lk-new .rail #railAvatar{display:none!important;}
html.lk-new .rail .tb-left{min-width:0;flex:1 1 auto;overflow:hidden;}
html.lk-new .rail .tb-proj{min-width:0;}
html.lk-new .rail .share-btn{border:0;background:var(--lk-fill);height:30px;margin-right:6px;}
html.lk-new .rail .share-btn:hover{background:var(--lk-fill-hi);}
html.lk-new .rail .export-btn{height:30px;}
html.lk-new .rail .ratio-trigger{border:0;background:var(--lk-fill);height:30px;}
html.lk-new .rail .st-dd{margin-left:2px;}
html.lk-new .rail .st-btn{width:30px;height:30px;}
html.lk-new .stage{padding-top:46px;box-sizing:border-box;}
html.lk-new .stage::before{content:"";position:absolute;left:0;right:0;top:46px;height:1px;background:var(--lk-line);}
html.lk-new .stage-canvas{align-items:center!important;padding:12px!important;container-type:size;}
/* narrow preview box: words drop, icons stay */
html.lk-new.lk-p-narrow .rail .save-state, html.lk-new.lk-p-narrow .rail .ratio-label{display:none;}
html.lk-new.lk-p-tiny .rail .share-btn{display:none;}

/* the preview fills its box at the right shape */
html.lk-new .preview-frame{box-shadow:none;border-radius:4px;}
html.lk-new .preview-frame.shape-wide{width:min(100cqw,calc(100cqh * 16 / 9));height:auto;max-width:none;}
html.lk-new .preview-frame.shape-tall{height:min(100cqh,calc(100cqw * 16 / 9));width:auto;}
html.lk-new .preview-frame.shape-square{height:min(100cqh,100cqw);width:auto;}
html.lk-new .preview-frame.shape-portrait{height:min(100cqh,calc(100cqw * 5 / 4));width:auto;}
html.lk-new .preview-frame.is-blank{background:transparent;border:0!important;box-shadow:none!important;}

/* ── 4. the layouts menu (in the preview row) – the kit's menu: dark fill, 8 px corners, 34 px rows, a white tick ── */
.lk-lay-btn{display:none;}
html.lk-new .lk-lay-btn{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:7px;background:none;color:var(--text-secondary);cursor:pointer;flex:none;}
html.lk-new .lk-lay-btn:hover, html.lk-new .lk-lay-btn[aria-expanded="true"]{background:var(--lk-fill);color:#fff;}
html.lk-new .lk-lay-btn svg{width:17px;height:17px;}
.lk-menu{position:fixed;z-index:10080;min-width:210px;padding:4px;border-radius:8px;background:#1e1e21;box-shadow:0 14px 36px rgba(0,0,0,.5);font:500 13px/1 'DM Sans',system-ui,sans-serif;}
.lk-menu[hidden]{display:none;}
.lk-menu button{display:flex;align-items:center;gap:10px;width:100%;height:34px;padding:0 10px;border:0;border-radius:6px;background:none;color:#e6e6ea;font:inherit;text-align:left;cursor:pointer;}
.lk-menu button:hover{background:#2a2a2e;color:#fff;}
.lk-menu button .lk-tk{width:14px;height:14px;flex:none;color:#fff;visibility:hidden;}
.lk-menu button.on .lk-tk{visibility:visible;}
.lk-menu button.on{color:#fff;font-weight:600;}
.lk-menu button small{margin-left:auto;color:#8b8b93;font-size:11.5px;}
.lk-menu hr{border:0;height:1px;margin:4px 6px;background:rgba(255,255,255,.08);}

/* ── 5. drag handles between boxes: invisible until you're on them ── */
.lk-h{display:none;}
html.lk-new .lk-h{display:block;position:fixed;z-index:55;border-radius:3px;}
html.lk-new .lk-h.col{cursor:ew-resize;}
html.lk-new .lk-h.row{cursor:ns-resize;}
html.lk-new .lk-h:hover, html.lk-new .lk-h.is-on{background:rgba(255,255,255,.18);}
html.lk-new.lk-dragging, html.lk-new.lk-dragging *{user-select:none!important;}
html.lk-new.lk-dragging .preview-frame{transition:none!important;}

/* ── 6. the chat, like the Agent's: no outlines, a filled box, a round white send button; closes with ✕ ── */
html.lk-new .ai-head{border-bottom-color:var(--lk-line);padding-right:48px;}
html.lk-new .ai-tabs button{border:0!important;}
html.lk-new .ai-tabs button.active{background:var(--lk-fill);}
html.lk-new .ai-compose{margin:0 12px 12px!important;padding:10px 10px 8px 14px!important;border:0!important;border-radius:16px!important;background:var(--lk-fill)!important;box-shadow:none!important;}
html.lk-new .ai-compose:focus-within{background:#222226!important;}
html.lk-new .ai-compose textarea{background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;padding-left:0!important;}
html.lk-new #aiSend{width:32px;height:32px;border:0;border-radius:50%;background:#fff;color:#0a0a0a;}
html.lk-new .agp-pill{border:0;background:var(--lk-fill-hi);}
html.lk-new .ai-w-t{font-size:17px;}
html.lk-new.lk-chat-off .inspector{display:none;}
.lk-chat-x, .lk-chat-open{display:none;}
html.lk-new .lk-chat-x{display:grid;position:absolute;top:14px;right:12px;z-index:5;width:28px;height:28px;border:0;border-radius:6px;background:none;color:var(--text-muted);place-items:center;cursor:pointer;}
html.lk-new .lk-chat-x:hover{background:var(--lk-fill);color:#fff;}
html.lk-new.lk-chat-off .lk-chat-open{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;margin-right:6px;border:0;border-radius:7px;background:var(--lk-fill);color:#fff;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;flex:none;}
html.lk-new.lk-chat-off .lk-chat-open:hover{background:var(--lk-fill-hi);}
html.lk-new .lk-chat-open svg{width:15px;height:15px;}

/* ── 7. fills, not outlines, inside the panels (his pick) ── */
html.lk-new .lib-scope button.active{border-color:transparent!important;background:var(--lk-fill-hi)!important;}
html.lk-new .gen-box, html.lk-new .gen-ddbtn, html.lk-new .gi-tile{border-color:transparent!important;background:var(--lk-fill)!important;}
html.lk-new .gen-ddbtn:hover, html.lk-new .gi-tile:hover{background:var(--lk-fill-hi)!important;}
html.lk-new .gen-dock{border-top-color:var(--lk-line)!important;background:var(--lk-box)!important;}

/* the empty left panel: a big drop box and big filled tiles (CapCut's Generate / AI avatars / Record) */
html.lk-new .home-pane{justify-content:flex-start;padding:14px;}
html.lk-new .hp-ic{display:none;}
html.lk-new .hp-t{order:-1;width:100%;box-sizing:border-box;margin:0 0 14px;padding:0 16px;flex:0 1 220px;min-height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-radius:var(--lk-r);background:var(--lk-fill);color:var(--text-primary);font-size:14px;font-weight:600;}
html.lk-new .hp-t::after{content:"Or drag pictures, videos and sounds here";font-size:12px;font-weight:500;color:var(--text-muted);}
html.lk-new .hp-or{margin-bottom:12px;}
html.lk-new .hp-grid{gap:6px;}
html.lk-new .hp-grid > button{height:84px;flex-direction:column;gap:8px;border:0!important;border-radius:var(--lk-r);background:var(--lk-fill);font-weight:600;}
html.lk-new .hp-grid > button:hover{background:var(--lk-fill-hi);}
html.lk-new .hp-grid > button svg{width:20px;height:20px;}

/* ── 8. the sidebar that folds open (like Claude's): Back, your edits, shortcuts, account ── */
.lk-side-btn, .lk-drawer, .lk-drawer-bg{display:none;}
html.lk-new .side-rail{padding-top:6px!important;}
html.lk-new .lk-side-btn{display:grid;place-items:center;width:40px;height:36px;margin:0 auto 6px;border:0;border-radius:8px;background:none;color:var(--text-secondary);cursor:pointer;flex:none;}
html.lk-new .lk-side-btn:hover{background:var(--lk-fill);color:#fff;}
html.lk-new .lk-side-btn svg{width:19px;height:19px;}
html.lk-new.lk-side-on .lk-drawer-bg{display:block;position:fixed;inset:0;z-index:10050;background:rgba(0,0,0,.35);}
html.lk-new.lk-side-on .lk-drawer{display:flex;flex-direction:column;position:fixed;z-index:10060;left:var(--lk-gap);top:var(--lk-gap);bottom:var(--lk-gap);width:260px;box-sizing:border-box;padding:8px;border-radius:var(--lk-r);background:#18181b;box-shadow:0 20px 60px rgba(0,0,0,.6);}
.lk-drawer .lk-dh{display:flex;align-items:center;justify-content:space-between;height:40px;padding:0 4px 0 8px;margin-bottom:8px;}
.lk-drawer .lk-dh a{display:flex;align-items:center;gap:8px;color:#fff;text-decoration:none;font-family:'Fraunces',Georgia,serif;font-size:19px;font-weight:600;}
.lk-drawer .lk-dh a svg{width:15px;height:15px;}
.lk-drawer .lk-dh button{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:7px;background:none;color:#a1a1a8;cursor:pointer;}
.lk-drawer .lk-dh button:hover{background:#26262a;color:#fff;}
.lk-drawer .lk-dh button svg{width:18px;height:18px;}
.lk-drawer .lk-di{display:flex;align-items:center;gap:11px;height:38px;padding:0 10px;border:0;border-radius:7px;background:none;color:#e6e6ea;font:500 13.5px/1 'DM Sans',system-ui,sans-serif;text-decoration:none;text-align:left;cursor:pointer;width:100%;box-sizing:border-box;}
.lk-drawer .lk-di:hover{background:#26262a;color:#fff;}
.lk-drawer .lk-di svg{width:17px;height:17px;flex:none;color:#cfcfd4;}
.lk-drawer .lk-dl{margin:14px 10px 6px;color:#8b8b93;font:600 11.5px/1 'DM Sans',system-ui,sans-serif;}
.lk-drawer .lk-dfoot{margin-top:auto;}

/* ── the comparison bar (not part of Studio): bottom centre, out of the way ── */
.lk-sw{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);z-index:2147483000;display:flex;gap:2px;padding:3px;border-radius:10px;background:#2a2a2e;box-shadow:0 10px 30px rgba(0,0,0,.55);font:600 12.5px/1 'DM Sans',system-ui,sans-serif;}
.lk-sw button{height:28px;padding:0 12px;border:0;border-radius:7px;background:none;color:#a1a1a8;font:inherit;cursor:pointer;}
.lk-sw button.on{color:#fff;background:rgba(255,255,255,.14);}

/* ── 9. boxes that get narrow (Create / Vertical on a laptop): sizes that fit, and the bars drop their least-used parts ── */
html.lk-new.lk-lay-create{--lk-pw:clamp(380px,32vw,560px);}
html.lk-new.lk-lay-vertical{--lk-sw:clamp(300px,30vw,560px);}
html.lk-new .timeline{container:lk-tl / inline-size;}
@container lk-tl (max-width:760px){ html.lk-new .tl-zoom > svg, html.lk-new .tl-zoom input{display:none!important;} html.lk-new .tl-zoom{min-width:0!important;width:auto!important;} }
@container lk-tl (max-width:560px){ html.lk-new #tlHelpBtn, html.lk-new #tlFitBtn, html.lk-new .tl-right > .tl-sep{display:none!important;} html.lk-new .tl-time{min-width:0!important;} }
html.lk-new .rail .tb-proj::before{display:none;}
html.lk-new.lk-lay-edit .app-main{grid-template-rows:minmax(300px,var(--lk-top)) minmax(0,var(--lk-bot));}

/* ── 10. scroll bars like CapCut's: hidden until the mouse is over the box, slim, and the room is always kept so nothing
   inside grows or shrinks when one appears (Lucas's recording, 19 Nov) ── */
html.lk-new :is(.panel-body,.ai-body,.home-pane,.insp-body,.gen-modal-list,.cm-list){scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:auto;}
html.lk-new :is(.panel-body,.ai-body,.home-pane,.insp-body,.gen-modal-list,.cm-list)::-webkit-scrollbar{width:8px;height:8px;background:transparent;}
html.lk-new :is(.panel-body,.ai-body,.home-pane,.insp-body,.gen-modal-list,.cm-list)::-webkit-scrollbar-track{background:transparent;}
html.lk-new :is(.panel-body,.ai-body,.home-pane,.insp-body,.gen-modal-list,.cm-list)::-webkit-scrollbar-thumb{background:transparent;border:2px solid transparent;border-radius:8px;background-clip:padding-box;}
html.lk-new :is(.panel-body,.ai-body,.home-pane,.insp-body,.gen-modal-list,.cm-list):hover::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);background-clip:padding-box;}
html.lk-new :is(.panel-body,.ai-body,.home-pane,.insp-body,.gen-modal-list,.cm-list)::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.4);background-clip:padding-box;}
html.lk-new :is(.panel-body,.ai-body,.home-pane,.insp-body,.gen-modal-list,.cm-list)::-webkit-scrollbar-button{display:none;}

/* ── 11. Generate: the square button, 8 px corners (Lucas 19 Nov), still gold = it spends credits ── */
html.lk-new #genGo{border-radius:8px!important;height:42px;}

/* ── 12. the chat's head lines up with the preview row (both 46 px, the line under them level); smaller Chat / Comment tabs ── */
html.lk-new .ai-head{height:47px!important;min-height:47px;box-sizing:border-box;padding-left:10px!important;border-bottom:1px solid var(--lk-line)!important;}
html.lk-new .ai-tabs{gap:2px;}
html.lk-new .ai-tabs button{height:28px!important;padding:0 10px!important;gap:6px!important;border-radius:7px!important;font-size:12.5px!important;font-weight:600!important;}
html.lk-new .ai-tabs button svg{width:13px!important;height:13px!important;}
html.lk-new .lk-chat-x{top:9px;right:9px;}
html.lk-new .lk-chat-x svg{width:15px;height:15px;}

/* ── 13. the sidebar is fixed in place: it opens as its own box on the left and pushes Studio over (Lucas: "fix the bar in place and shove the screen over") ── */
html.lk-new.lk-side-on .lk-drawer-bg{display:none!important;}
html.lk-new.lk-side-on .lk-drawer{position:relative;left:auto;top:auto;bottom:auto;z-index:auto;flex:none;width:232px;height:auto;box-shadow:none;background:var(--lk-box);}
html.lk-new.lk-side-on .lk-side-btn{display:none;}
html.lk-new.lk-side-on .side-rail{padding-top:10px!important;}
html.lk-new.lk-p-tiny .rail .export-btn{padding:0 10px;}

/* ── 14. no lonely word on its own line ("edit / it"): headings balance their lines, longer text avoids a last-word orphan ── */
html.lk-new :is(.hp-t,.pv-empty .t,.pv-empty .s,.ai-w-t,.panel-title,.hp-or span){text-wrap:balance;}
html.lk-new :is(.panel-body,.insp-body,.ai-body) :is(p,div,span){text-wrap:pretty;}

/* ===== mock-up 3 (19 Nov): boxes everywhere – the empty panel's look (filled, 8 px, no outline, same shade + text) on every card ===== */
/* 15. any outlined card / button inside the panels becomes a filled box (layout.js marks them: lk-tile, lk-tile-fill); a picked one keeps its white outline */
html.lk-new .lk-tile:not(.active):not(.on):not(.is-on):not(.sel):not(.selected):not([aria-pressed="true"]){border-color:transparent!important;box-shadow:none!important;}
html.lk-new .lk-tile{border-radius:8px!important;}
html.lk-new .lk-tile.lk-tile-fill{background-color:var(--lk-fill)!important;}
html.lk-new .lk-tile.lk-tile-fill.lk-click:hover{background-color:var(--lk-fill-hi)!important;}
/* 16. pills become 8 px boxes too (gold buttons included – gold still = spends credits) */
html.lk-new .lk-r8{border-radius:8px!important;}
/* 17. the Library head in one row: My media / Explore / Create sit where the word "Library" was (the left icon already says Library) */
html.lk-new .panel.lk-libhead .panel-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 6px;padding-top:12px!important;}
html.lk-new .panel.lk-libhead .ph-row{display:contents;}
html.lk-new .panel.lk-libhead .ph-title{display:none!important;}
html.lk-new .panel.lk-libhead .panel-desc{display:none!important;}
html.lk-new .panel.lk-libhead .lib-scope{order:1;flex:1 1 auto;margin:0!important;}
html.lk-new .panel.lk-libhead .ph-actions{order:2;flex:none;}
html.lk-new .panel.lk-libhead .lib-chips{order:3;flex:1 0 100%;margin:0!important;}
html.lk-new .panel.lk-libhead .lib-tools{order:4;flex:1 0 100%;}
/* sort (left list) */
.lk-sort{display:none;}
html.lk-new .lk-sort{display:inline-grid;place-items:center;flex:none;width:34px;height:34px;border:0;border-radius:8px;background:var(--lk-fill);color:var(--text-secondary);cursor:pointer;}
html.lk-new .lk-sort:hover, html.lk-new .lk-sort[aria-expanded="true"]{background:var(--lk-fill-hi);color:#fff;}
html.lk-new .lk-sort svg{width:16px;height:16px;}
html.lk-new .lib-search{border-color:transparent!important;background:var(--lk-fill)!important;border-radius:8px!important;}
/* 18. the clip toolbar floats over the preview only when a clip is picked (Canva / CapCut) – it no longer keeps 58 px under the preview */
html.lk-new .clip-dock{position:absolute!important;left:0;right:0;top:54px;height:auto!important;padding:0!important;pointer-events:none;z-index:45;}
html.lk-new body.clip-sel .clip-dock #clipTb{pointer-events:auto;}
html.lk-new #clipDock #clipTb{border:0!important;border-radius:10px!important;background:#1e1e21!important;box-shadow:0 10px 28px rgba(0,0,0,.5)!important;}
/* 19. the timeline: every track label the same filled box, same corners; clips have no white outline (picked = a lighter clip) */
html.lk-new .track-label{background:transparent!important;isolation:isolate;}
html.lk-new .track-label::before{content:"";position:absolute;z-index:-1;inset:3px 4px 3px 6px;border-radius:8px;background:var(--lk-fill);}
html.lk-new .block{border-color:transparent!important;box-shadow:none!important;border-radius:4px!important;}   /* (Lucas 21 Nov: corners 4 px less, 8 → 4) */
html.lk-new .block.selected::after{content:"";position:absolute;inset:0;border-radius:inherit;background:rgba(255,255,255,.14);pointer-events:none;}
/* (Lucas 21 Nov, ElevenLabs' way) the picked clip is easy to find: a yellow outline round it, on every kind (video, picture, text, sound) */
html.lk-new .block.selected{border-color:#f5c84c!important;box-shadow:0 0 0 1px #f5c84c, 0 0 0 3px rgba(245,200,76,.18)!important;z-index:3;}
html.lk-new .block.text{background:#2a2a2e!important;}

/* 20. Properties (Auto · 16:9, 1K, 1 picture) as filled boxes, like the empty panel's tiles */
html.lk-new #gpRow{display:flex!important;flex-wrap:wrap;gap:6px!important;}
html.lk-new #gpRow > *{flex:1 1 auto;padding:0 10px!important;white-space:nowrap;min-width:0;}
html.lk-new #gpRow > *{height:40px;justify-content:center;border:0!important;border-radius:8px!important;background:var(--lk-fill)!important;box-shadow:none!important;}
html.lk-new #gpRow > *:hover{background:var(--lk-fill-hi)!important;}
/* 21. every box's head line sits level with the preview row's and the chat's (46 px from the top) */
html.lk-new .panel-head{position:relative;box-sizing:border-box;min-height:47px;padding:0 16px!important;display:flex;flex-direction:column;justify-content:center;border-bottom:0!important;}
html.lk-new .panel-head::after{content:"";position:absolute;left:0;right:0;top:46px;height:1px;background:var(--lk-line);}
html.lk-new .panel:not(.lk-libhead) .panel-head > .ph-row{min-height:46px;}
html.lk-new .panel.lk-libhead .panel-head{flex-direction:row;padding:7px 12px 12px!important;row-gap:19px!important;}
html.lk-new .panel.lk-libhead .lib-scope{height:32px;}
html.lk-new .panel.lk-libhead .panel-head::before{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--lk-line);}

/* 22. the timeline bar: buttons 2 px smaller each way so they breathe top and bottom (Lucas 19 Nov) */
html.lk-new .tl-bar .tl-tool{width:36px!important;height:36px!important;}
html.lk-new .tl-bar #tlPlayBtn{width:32px!important;height:32px!important;}
/* 23. track labels: a SUBTLE shade like CapCut's, the full cell, not a strong grey box */
html.lk-new .track-label::before{inset:0!important;border-radius:0!important;background:rgba(255,255,255,.022)!important;}
html.lk-new .track-label{border-right:1px solid var(--lk-line);}

/* ===== mock-up 4 (19 Nov): the left panel in Lucas's tile look (his library-panel.html): every control an even filled tile,
   equal widths in a row, labelled dividers between groups, one rhythm – 8 px between tiles, 20 px between groups ===== */
html.lk-new{--lk-tile-h:68px;--lk-ctl-h:40px;--lk-row-h:48px;}
/* the rail: each tool a filled tile */
html.lk-new .lk-side-btn{height:34px;margin-bottom:2px;}
/* My media / Explore / Create: three equal tiles */
html.lk-new .panel:is(.ph-lib,.ph-gen) #libScope{display:grid;grid-template-columns:repeat(3,1fr);gap:8px!important;padding:0!important;background:none!important;border:0!important;}
html.lk-new #libScope > button{height:var(--lk-ctl-h)!important;border:0!important;border-radius:8px!important;background:var(--lk-fill)!important;color:var(--text-secondary)!important;font-weight:600;}
html.lk-new #libScope > button:hover{background:var(--lk-fill-hi)!important;color:#fff!important;}
html.lk-new #libScope > button.active{background:#303035!important;color:#fff!important;}
html.lk-new.lk-new .panel.lk-libhead .lib-scope{height:auto;}
/* the kinds (Video / Image / Voice / Music / SFX): equal tiles, icon over the word */
html.lk-new .panel:is(.ph-lib,.ph-gen):not(.mode-item) #libChips{display:flex;}
html.lk-new #libChips{gap:8px!important;overflow-x:auto!important;scrollbar-width:none;padding:0!important;scroll-behavior:smooth;}
html.lk-new #libChips::-webkit-scrollbar{display:none;}
html.lk-new #libChips > button{flex:1 0 66px;height:var(--lk-tile-h)!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:0 2px!important;border:0!important;border-radius:8px!important;background:var(--lk-fill)!important;color:var(--text-secondary)!important;font-size:12.5px!important;font-weight:700!important;}
html.lk-new #libChips > button:hover{background:var(--lk-fill-hi)!important;color:#fff!important;}
html.lk-new #libChips > button.active, html.lk-new #libChips > button.on{background:#303035!important;color:#fff!important;}
html.lk-new #libChips > button > .lk-ki{width:19px;height:19px;flex:none;}
html.lk-new .panel.lk-libhead .panel-head{row-gap:12px!important;}
/* labelled dividers between groups ("What to make", "Settings", "Inputs") like "Or add something new" */
.lk-div{display:none;}
html.lk-new .lk-div{display:flex;align-items:center;gap:12px;flex:1 0 100%;color:var(--text-muted);font-size:12px;font-weight:600;white-space:nowrap;}
html.lk-new .lk-div::before, html.lk-new .lk-div::after, html.lk-new :is(.gen-props,.gen-inputs) > .gen-lbl::before, html.lk-new :is(.gen-props,.gen-inputs) > .gen-lbl::after{content:"";flex:1;height:1px;background:var(--lk-line);}
html.lk-new :is(.gen-props,.gen-inputs) > .gen-lbl{display:flex!important;align-items:center;gap:12px;margin:0 0 8px!important;color:var(--text-muted)!important;font-size:0!important;}
html.lk-new :is(.gen-props,.gen-inputs) > .gen-lbl > .lk-lt{font-size:12px;font-weight:600;white-space:nowrap;}
html.lk-new .panel.lk-libhead .lk-div{order:3;}
html.lk-new .panel.lk-libhead #libChips{order:4;}
html.lk-new .panel.lk-libhead .lib-tools{order:5;}
/* the Create fields: model row 48, prompt a tile, groups 20 apart */
html.lk-new #genModelBtn{min-height:var(--lk-row-h)!important;}
html.lk-new .gen-props, html.lk-new .gen-inputs{margin-top:20px!important;}
/* Settings: equal tiles – icon, value, a small caption underneath */
html.lk-new #gpRow{display:grid!important;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px!important;}
html.lk-new #gpRow > .gp-tile{height:var(--lk-tile-h)!important;flex-direction:column!important;gap:3px!important;padding:0 2px!important;min-width:0;}
html.lk-new #gpRow > .gp-tile > svg, html.lk-new #gpRow > .gp-tile > .gp-shape{margin-bottom:3px;}
html.lk-new #gpRow > .gp-tile > span:not(.gp-shape){font-size:12.5px;font-weight:700;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
html.lk-new #gpRow > .gp-tile[data-lkcap]::after{content:attr(data-lkcap);font-size:10.5px;font-weight:600;line-height:12px;color:var(--text-muted);}
/* Inputs: equal tiles */
html.lk-new #giRow{display:grid!important;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px!important;}
html.lk-new #giRow > .gi-tile{width:auto!important;min-width:0;}
html.lk-new .panel.lk-create #libChips > [data-kind="all"]{display:none!important;}
/* every Settings tile's icon takes the same 19 px, so all the values sit on one line */
html.lk-new #gpRow > .gp-tile > svg{width:16px!important;height:16px!important;margin:0 0 3px!important;flex:none;}
html.lk-new #gpRow > .gp-tile > .gp-shape{margin:3px 0 6px!important;flex:none;}

/* ── 25. the model menu = the parts kit's model picker: no outline on the menu or the picked row; picked = a white tick;
   hover = a fill; the scroll bar trick on its list; the ⌄ on brand rows stays (Lucas 19 Nov) ── */
html.lk-new .mm-pop{border:0!important;border-radius:8px!important;}
html.lk-new .mm-find{border-radius:8px!important;}
html.lk-new .mm-row{border-radius:8px!important;}
html.lk-new .mm-row.is-on{box-shadow:none!important;}
html.lk-new .mm-row > svg{order:3;}
html.lk-new .mm-row.is-on::after{content:"";order:2;flex:none;width:16px;height:16px;margin-left:auto;background:#fff;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;}
html.lk-new .mm-row.is-on > svg{margin-left:6px;}
html.lk-new .mm-list{scrollbar-width:auto!important;scrollbar-color:auto!important;scrollbar-gutter:stable;}
html.lk-new .mm-list::-webkit-scrollbar{width:8px!important;background:transparent;}
html.lk-new .mm-list::-webkit-scrollbar-button{display:none;}
html.lk-new .mm-list::-webkit-scrollbar-track{background:transparent!important;margin:4px 0;}
html.lk-new .mm-list::-webkit-scrollbar-thumb{background:transparent!important;border:2px solid transparent;border-radius:8px;background-clip:padding-box!important;}
html.lk-new .mm-list:hover::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22)!important;background-clip:padding-box!important;}

/* 26. picked model = the hover fill, no tick (Lucas); Settings tiles simple: icon + the value on one line, no captions */
html.lk-new .mm-row.is-on::after{display:none!important;}
html.lk-new .mm-row.is-on{background:rgba(255,255,255,.07)!important;}
html.lk-new #gpRow > .gp-tile{height:42px!important;flex-direction:row!important;gap:7px!important;padding:0 8px!important;}
html.lk-new #gpRow > .gp-tile[data-lkcap]::after{display:none!important;}
html.lk-new #gpRow > .gp-tile > svg, html.lk-new #gpRow > .gp-tile > .gp-shape{margin:0!important;}
/* the panel itself never scrolls (a focused field could nudge it up and hide the top row) */
html.lk-new .panel{overflow:clip!important;}
/* Settings: each tile as wide as its words (equal columns cut "720p" and "Sound on"), all on one row */
html.lk-new #gpRow{display:flex!important;flex-wrap:wrap;gap:6px!important;}
html.lk-new #gpRow > .gp-tile{flex:1 1 auto!important;gap:6px!important;padding:0 8px!important;}
html.lk-new #gpRow > .gp-tile > span:not(.gp-shape){overflow:visible;text-overflow:clip;}
html.lk-new #gpRow > .gp-tile{min-width:0!important;padding:0 6px!important;gap:5px!important;font-size:12px!important;}
html.lk-new #gpRow > .gp-tile > svg{width:14px!important;height:14px!important;}
html.lk-new #gpRow > .gp-tile > span:not(.gp-shape){font-size:12px!important;}

/* ── 27. Settings in one small row (CapCut): "Settings  16:9 · 720p · 5s · Sound on · 1 take ⌄" – tap it and the tiles open in a box under it ── */
html.lk-new .gen-props{position:relative;}
html.lk-new .gen-props > .gen-lbl{display:none!important;}
.lk-sum{display:none;}
html.lk-new .lk-sum{display:flex;align-items:center;gap:10px;width:100%;height:44px;padding:0 12px 0 14px;border:0;border-radius:8px;background:var(--lk-fill);color:#fff;font:inherit;font-size:13px;cursor:pointer;text-align:left;}
html.lk-new .lk-sum:hover, html.lk-new .gen-props.lk-open .lk-sum{background:var(--lk-fill-hi);}
html.lk-new .lk-sum b{flex:none;color:var(--text-secondary);font-weight:600;}
html.lk-new .lk-sum span{flex:1;min-width:0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html.lk-new .lk-sum svg{flex:none;width:15px;height:15px;color:var(--text-secondary);transition:transform .15s;}
html.lk-new .gen-props.lk-open .lk-sum svg{transform:rotate(180deg);}
html.lk-new .gen-props:not(.lk-open) #gpRow{display:none!important;}
html.lk-new .gen-props.lk-open #gpRow{position:absolute;z-index:30;left:0;right:0;top:50px;padding:8px;border-radius:8px;background:#1e1e21;box-shadow:0 14px 36px rgba(0,0,0,.5);}
html.lk-new .gen-props.lk-open #gpRow > .gp-tile{background:#2a2a2e!important;}
html.lk-new .gen-props.lk-open #gpRow > .gp-tile:hover{background:#333338!important;}

/* ── 28. (Lucas 19 Nov) the left icons back to the old plain ones; Inputs tiles shorter; no faint lines inside the panel ── */
html.lk-new #giRow > .gi-tile{height:56px!important;min-height:0!important;gap:4px!important;font-size:11.5px!important;line-height:13px!important;padding:0 4px!important;text-align:center;}
html.lk-new #giRow > .gi-tile svg{width:16px!important;height:16px!important;}
html.lk-new .lk-div::before, html.lk-new .lk-div::after, html.lk-new :is(.gen-props,.gen-inputs) > .gen-lbl::before, html.lk-new :is(.gen-props,.gen-inputs) > .gen-lbl::after{display:none!important;}
html.lk-new .lk-div, html.lk-new :is(.gen-props,.gen-inputs) > .gen-lbl{justify-content:center;}
html.lk-new .panel-head::after, html.lk-new .panel.lk-libhead .panel-head::before{display:none!important;}
html.lk-new .panel-head, html.lk-new .gen-dock, html.lk-new .hp-or::before, html.lk-new .hp-or::after{border-color:transparent!important;}
html.lk-new .hp-or::before, html.lk-new .hp-or::after{background:transparent!important;}
/* ── 29. the timeline's track labels: a soft shade that fades out (no hard edge); every row has its own label; an emptied row goes ── */
html.lk-new .track-label{border-right:0!important;}
html.lk-new .track-label::before{background:linear-gradient(90deg,rgba(255,255,255,.028) 70%,rgba(255,255,255,0))!important;}
html.lk-new .track-row.lk-empty{display:none!important;}
html.lk-new .lk-tlab{display:contents;}
html:not(.lk-new) .lk-tlab{display:none;}

/* ── 30. kind tiles keep their size (never squashed); when they don't all fit, arrows scroll them (CapCut's ›) ── */
html.lk-new #libChips > button:not([data-kind="all"]){display:flex;}
.lk-chip-arrow{display:none;}
html.lk-new .lk-chip-arrow{position:absolute;z-index:6;display:none;place-items:center;width:26px;border:0;border-radius:8px;background:#26262a;color:#fff;cursor:pointer;box-shadow:0 0 0 6px var(--lk-box);}
html.lk-new .lk-chip-arrow.on{display:grid;}
html.lk-new .lk-chip-arrow:hover{background:#303035;}
html.lk-new .lk-chip-arrow svg{width:15px;height:15px;}
/* ── 31. from the fresh-eyes review (lukie-6): the picked timeline tool = a lighter fill, not a white square; the empty tiles' icons bold white ── */
html.lk-new .tl-bar .tl-tool.on, html.lk-new .tl-bar .tl-tool.active, html.lk-new .tl-bar .tl-tool.is-on, html.lk-new #magnetBtn.on, html.lk-new #magnetBtn.active{background:#2e2e33!important;color:#fff!important;box-shadow:none!important;}
html.lk-new .hp-grid > button svg{color:#fff;stroke-width:2;}
html.lk-new .hp-grid > button{color:#fff;}
/* an empty edit gets the right words in the big box */
html.lk-new.lk-tl-empty .hp-t{font-size:0!important;}
html.lk-new.lk-tl-empty .hp-t::before{content:"Drop pictures, videos and sounds here";font-size:14px;font-weight:600;color:var(--text-primary);}
html.lk-new.lk-tl-empty .hp-t::after{content:"or start with one of these";}
/* 32. (review) the "Making…" pill leaves the preview row – the panel's job row and the clip already show progress, and it squashed the project name */
html.lk-new .rail #mkWrap{display:none!important;}

/* ===== B copy (session 28, lukie-6): CapCut's "bigger prompt" – Lucas's recording 19 Nov 6:53 pm =====
   A plain expand icon in the prompt box's corner: one click = the prompt fills the whole panel (the tabs, model, settings and inputs
   tuck away, Generate stays at the bottom); click again or Esc = back. Only while Create is open (:has), so other tools never lose their head. */
html.lk-new .gen-box{position:relative;}
.lk-pexp-btn{display:none;}
html.lk-new .lk-pexp-btn{display:grid;place-items:center;position:absolute;right:6px;bottom:6px;z-index:2;width:28px;height:28px;border:0;border-radius:7px;background:none;color:var(--text-muted);cursor:pointer;}
html.lk-new .lk-pexp-btn:hover{background:var(--lk-fill-hi);color:#fff;}
html.lk-new .lk-pexp-btn svg{width:16px;height:16px;}
html.lk-new .lk-pexp-btn .lk-in{display:none;}
html.lk-new .panel.lk-pexp .lk-pexp-btn .lk-in{display:block;}
html.lk-new .panel.lk-pexp .lk-pexp-btn .lk-out{display:none;}
html.lk-new .gen-box .gen-prompt{padding-right:30px!important;}
html.lk-new .panel.lk-pexp:has(.view[data-view="gen"].active) > .panel-head{display:none!important;}
html.lk-new .panel.lk-pexp:has(.view[data-view="gen"].active) .panel-body{display:flex;flex-direction:column;overflow:hidden;}
html.lk-new .panel.lk-pexp .view[data-view="gen"].active{flex:1;min-height:0;display:flex;flex-direction:column;}
html.lk-new .panel.lk-pexp .view[data-view="gen"].active > .gen-panel{flex:1;min-height:0;}
html.lk-new .panel.lk-pexp .gen-panel > *:not(.gen-box):not(.gen-dock){display:none!important;}
html.lk-new .panel.lk-pexp .gen-panel > .gen-box{flex:1;min-height:0;display:flex;flex-direction:column;}
html.lk-new .panel.lk-pexp .gen-box .gen-prompt{flex:1;min-height:0!important;resize:none;}
html.lk-new .panel.lk-pexp .gen-panel > .gen-dock{margin-top:auto;}
/* the expand button replaces the browser's corner drag handle (they sat on top of each other) */
html.lk-new .gen-box .gen-prompt{resize:none!important;}

/* ===== B copy: the kinds row (Video / Image / Voice / Music / SFX) locks its tile size (Lucas 19 Nov: "after a certain point these should be
   locked … add an arrow in. dont wrap it") – below 70 px a tile stops shrinking, the row slides sideways (no scroll bar), an arrow shows
   at the edge that has more, over a soft fade. ===== */
html.lk-new #libChips{overflow-x:auto!important;overflow-y:hidden!important;min-width:0;
  scrollbar-width:none;scroll-snap-type:x proximity;scroll-behavior:smooth;}
html.lk-new #libChips::-webkit-scrollbar{display:none;}
html.lk-new #libChips > button{scroll-snap-align:start;min-width:0;white-space:nowrap;}
/* one set of arrows: B's (with the soft fade) – lukie-5's .lk-chip-arrow stays off */
html.lk-new .lk-chip-arrow, html.lk-new .lk-chip-arrow.on{display:none!important;}
.lk-cha{display:none;}
html.lk-new .lk-cha{position:absolute;z-index:3;display:flex;align-items:center;width:44px;padding:0;border:0;cursor:pointer;color:#fff;pointer-events:auto;}
html.lk-new .lk-cha[hidden]{display:none;}
html.lk-new .lk-cha.r{justify-content:flex-end;background:linear-gradient(90deg,rgba(20,20,22,0),var(--lk-box) 62%);}
html.lk-new .lk-cha.l{justify-content:flex-start;background:linear-gradient(270deg,rgba(20,20,22,0),var(--lk-box) 62%);}
html.lk-new .lk-cha i{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:var(--lk-fill-hi);box-shadow:0 2px 8px rgba(0,0,0,.45);}
html.lk-new .lk-cha:hover i{background:#34343a;}
html.lk-new .lk-cha svg{width:15px;height:15px;}
/* B copy: the Settings row's values sit in the true middle of the row (Lucas 19 Nov: "centre the words a bit") – "Settings" left, ⌄ right,
   the values centred between equal side columns; a long line still ends in … instead of pushing the arrow out */
html.lk-new .lk-sum{display:grid!important;grid-template-columns:minmax(max-content,1fr) minmax(0,auto) minmax(15px,1fr);gap:10px;}
html.lk-new .lk-sum b{justify-self:start;}
html.lk-new .lk-sum span{text-align:center;}
html.lk-new .lk-sum svg{justify-self:end;}

/* ===== B copy: every menu + pop-up box follows the parts kit (Lucas 19 Nov, the 1K / 2K menu: "does this follow the kit? should be more
   squared off … the corners look 12-15 roundness not 8") – 8 px box, no outline, 4 px inside, 6 px rows, 34 px plain rows, #2a2a2e hover,
   a white tick. Two-line rows (the project menu, export options) keep their height, only their corners change. ===== */
html.lk-new :is(.clip-menu,.card-menu,.ru-menu,.st-menu,.ph-menu,.pj-menu,.gen-menu,.fs-menu,.ex-fmenu,.ratio-menu,.font-menu,.sc-vmenu,.mref-menu){
  border:0!important;border-radius:8px!important;padding:4px!important;background:#1e1e21!important;box-shadow:0 14px 36px rgba(0,0,0,.5)!important;}
html.lk-new :is(.clip-menu,.card-menu,.font-menu,.sc-vmenu,.mref-menu) .cm-item:not(.ru-item), html.lk-new .fs-menu button, html.lk-new .ex-fmenu button,
html.lk-new .ratio-opt, html.lk-new .st-act, html.lk-new .pj-item, html.lk-new .gen-mi{min-height:34px!important;padding:7px 10px!important;border-radius:6px!important;}
html.lk-new .ph-menu button, html.lk-new .exp-opt{border-radius:6px!important;}
html.lk-new .ph-menu .cmi{border-radius:7px!important;}
html.lk-new :is(.clip-menu,.card-menu,.font-menu,.sc-vmenu,.mref-menu) .cm-item:hover:not(:disabled), html.lk-new .ph-menu button:hover, html.lk-new .fs-menu button:hover,
html.lk-new .ex-fmenu button:hover, html.lk-new .ratio-opt:hover, html.lk-new .st-act:hover, html.lk-new .pj-item:hover, html.lk-new .exp-opt:hover:not(:disabled),
html.lk-new .gen-menu button:hover, html.lk-new .gen-mi:hover{background:#2a2a2e!important;}
html.lk-new .cm-item.on svg, html.lk-new .gen-mi.on svg{color:#fff!important;opacity:1!important;stroke-width:2.6px!important;}
html.lk-new .cm-sep{margin:4px 6px!important;background:rgba(255,255,255,.08)!important;}
/* pop-up boxes: 8 px, no outline */
html.lk-new :is(.gen-modal-card,.ks-card,.refpk-card,.ag-card){border-radius:8px!important;border-color:transparent!important;}
/* B copy: the Today / New comparison bar is gone (Lucas crossed it out, 19 Nov) – the page always opens in New */
.lk-sw{display:none!important;}
/* B copy: the ↑ upload icon beside My media / Explore / Create is gone (Lucas crossed it out, 19 Nov) – uploading = the big drop box /
   dragging files in; the tabs take the whole row */
html.lk-new #libUploadBtn{display:none!important;}
html.lk-new .panel.lk-libhead .ph-actions{display:none!important;}   /* only the upload icon + the old Create drop-down (already hidden) lived here; it kept a 6 px gap */
/* B copy: the kinds-row arrows are pinned to the row (CSS anchors), so they can't be left behind while the panel settles on a refresh */
html.lk-new #libChips{anchor-name:--lkchips;}
@supports (anchor-name: --a){
  html.lk-new .lk-cha{position-anchor:--lkchips;top:anchor(top);bottom:anchor(bottom);height:auto;}
  html.lk-new .lk-cha.r{right:anchor(right);left:auto;}
  html.lk-new .lk-cha.l{left:anchor(left);right:auto;}
}
/* B copy: Generate stops at 360 px on a wide panel and sits on the right, like CapCut's (Lucas 19 Nov: "its too wide") */
html.lk-new .gen-dock .gen-foot{display:flex;justify-content:flex-end;}
html.lk-new .gen-dock .gen-go{flex:1 1 auto;width:100%;max-width:360px;}

/* ===== B copy: the voice tags fold into one row like Settings (Lucas 19 Nov: "lets hide these in a box too") – "Tags  Auto tag · laughs ·
   whispers … ⌄", a tap opens them in a box under it; a tag still goes in where the cursor is. Auto tag spends 1 credit = gold (the kit). ===== */
.lk-tagwrap{display:contents;}
html.lk-new .lk-tagwrap{display:block;position:relative;}
html.lk-new .lk-tagwrap:has(> #genTags[style*="none"]){display:none;}
.lk-tagsum{display:none;}
html.lk-new .lk-tagsum{display:grid;grid-template-columns:minmax(max-content,1fr) minmax(0,auto) minmax(15px,1fr);align-items:center;gap:10px;width:100%;height:44px;padding:0 12px 0 14px;border:0;border-radius:8px;background:var(--lk-fill);color:#fff;font:inherit;font-size:13px;cursor:pointer;}
html.lk-new .lk-tagsum:hover, html.lk-new .lk-tagwrap.lk-open .lk-tagsum{background:var(--lk-fill-hi);}
html.lk-new .lk-tagsum b{justify-self:start;color:var(--text-secondary);font-weight:600;}
html.lk-new .lk-tagsum span{text-align:center;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
html.lk-new .lk-tagsum svg{justify-self:end;width:15px;height:15px;color:var(--text-secondary);transition:transform .15s;}
html.lk-new .lk-tagwrap.lk-open .lk-tagsum svg{transform:rotate(180deg);}
html.lk-new .lk-tagwrap:not(.lk-open) > #genTags{display:none!important;}
html.lk-new .lk-tagwrap.lk-open > #genTags{position:absolute;z-index:31;left:0;right:0;top:50px;margin:0!important;padding:8px;gap:6px;border-radius:8px;background:#1e1e21;box-shadow:0 14px 36px rgba(0,0,0,.5);}
html.lk-new #genTags .gen-tag{height:28px;padding:0 10px;border:0!important;border-radius:6px!important;background:#2a2a2e!important;color:#e6e6ea!important;}
html.lk-new #genTags .gen-tag:hover{background:#333338!important;color:#fff!important;}
html.lk-new #genTags .gen-tag-auto{color:#1d1600!important;font-weight:600;
  background:radial-gradient(at 50% 110%, rgb(252,214,92) 33%, rgba(240,190,40,.92) 66%, rgba(214,160,22,.9) 100%)!important;
  box-shadow:inset 0 1px 8px -3px rgba(255,250,225,.95), inset 0 -2px 4px -1px rgba(140,95,10,.45)!important;}
html.lk-new #genTags .gen-tag-auto b{color:rgba(29,22,0,.7);font-weight:600;}
html.lk-new #genTags .gen-tag-auto:hover{filter:brightness(1.04);}
/* B copy: on a wide panel the whole Create form stops at 560 px and sits in the middle (Lucas 19 Nov: "these need a cap too" – Settings ran
   1,100 px wide). The head (tabs, What to make) and the form share the same edges; Generate (360 px at most) ends on the form's right edge. */
/* the head has no scroll-bar room, the form keeps 8 px for it on the right – so the head's right side gets 8 px more, and both edges line up */
html.lk-new .panel.lk-create .panel-head{padding-left:max(16px, calc((100% - 568px) / 2))!important;padding-right:calc(max(16px, calc((100% - 568px) / 2)) + 8px)!important;}
html.lk-new .panel.lk-create .view[data-view="gen"]{padding-left:max(16px, calc((100% - 560px) / 2))!important;padding-right:max(16px, calc((100% - 560px) / 2))!important;}
/* B copy: the kind tiles stop shrinking at 84 px, not 66 (Lucas 19 Nov: "these should be wider … too squashed and theres room with an
   arrow") – the rest slide in with the arrow */
/* … the size he picked from his screen (Lucas: "this is good but for that other width"): 68 px tall, never narrower than 74 px (nearly
   square), never wider than 96 px; they start at the left edge like everything under them */
html.lk-new #libChips{justify-content:flex-start;}   /* lined up with the search row and the grid under it, not floating in the middle */
html.lk-new #libChips > button{flex:1 0 74px!important;}   /* fills the row on a wide panel (Lucas: "make them bigger too if they go far wide") – the 96 px stop left a gap */

/* ===== B copy: "anything to prompt" (Lucas 19 Nov: "image to prompt icon in every box … not image but anything to prompt … make it show the
   folder … the big one … copy main page. but design it via skill kit") – a plain icon in the prompt box opens a big window with their media
   (pictures, videos, sounds, scripts) + an upload tile; pick up to 4, "Anything specific?", gold "Write it · 1 credit" (the main site's
   Image to prompt price). Built from the parts kit: 8 px, fills, no outlines, picked = a white outline, tabs filled when picked. ===== */
.lk-a2p-btn{display:none;}
html.lk-new .lk-a2p-btn{display:grid;place-items:center;position:absolute;right:38px;bottom:6px;z-index:2;width:28px;height:28px;border:0;border-radius:7px;background:none;color:var(--text-muted);cursor:pointer;}
html.lk-new .lk-a2p-btn:hover{background:var(--lk-fill-hi);color:#fff;}
html.lk-new .lk-a2p-btn svg{width:16px;height:16px;}
html.lk-new .gen-box .gen-prompt{padding-right:66px!important;}
.lk-a2p-bg{position:fixed;inset:0;z-index:10090;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.6);}
.lk-a2p-bg.open{display:flex;}
.lk-a2p{display:flex;flex-direction:column;width:min(780px,100%);height:min(640px,100%);border-radius:8px;background:#18181b;box-shadow:0 24px 80px rgba(0,0,0,.6);font:500 13px/1.4 'DM Sans',system-ui,sans-serif;color:#ececf1;overflow:hidden;}
.lk-a2p-h{display:flex;align-items:flex-start;gap:12px;padding:18px 18px 12px;}
.lk-a2p-h div{flex:1;min-width:0;}
.lk-a2p-h b{display:block;font-size:16px;font-weight:700;color:#fff;text-wrap:balance;}
.lk-a2p-h p{margin:5px 0 0;color:#a1a1a8;font-size:13px;text-wrap:pretty;}
.lk-a2p-x{display:grid;place-items:center;flex:none;width:30px;height:30px;border:0;border-radius:7px;background:none;color:#a1a1a8;cursor:pointer;}
.lk-a2p-x:hover{background:#26262a;color:#fff;}
.lk-a2p-x svg{width:17px;height:17px;}
.lk-a2p-tabs{display:flex;gap:2px;padding:0 16px 12px;border-bottom:1px solid rgba(255,255,255,.06);}
.lk-a2p-tabs button{height:30px;padding:0 11px;border:0;border-radius:7px;background:none;color:#a1a1a8;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap;}
.lk-a2p-tabs button:hover{background:#1c1c1f;color:#fff;}
.lk-a2p-tabs button.on{background:#26262a;color:#fff;}
.lk-a2p-tabs button i{font-style:normal;color:#5d5d64;margin-left:5px;}
.lk-a2p-body{flex:1;min-height:0;overflow-y:auto;padding:14px 10px 14px 16px;scrollbar-gutter:stable;}
.lk-a2p-body::-webkit-scrollbar{width:8px;background:transparent;}
.lk-a2p-body::-webkit-scrollbar-thumb{background:transparent;border:2px solid transparent;border-radius:8px;background-clip:padding-box;}
.lk-a2p-body:hover::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);background-clip:padding-box;}
.lk-a2p-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:6px;}
.lk-a2p-it{display:flex;flex-direction:column;gap:6px;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;min-width:0;}
.lk-a2p-th{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1;border-radius:8px;background:#1c1c1f;overflow:hidden;color:#fff;}
.lk-a2p-th img, .lk-a2p-th video{width:100%;height:100%;object-fit:cover;display:block;}
.lk-a2p-th svg{width:26px;height:26px;}
.lk-a2p-it:hover .lk-a2p-th{background:#26262a;}
.lk-a2p-it:hover .lk-a2p-th img, .lk-a2p-it:hover .lk-a2p-th video{filter:brightness(.82);}
.lk-a2p-it.on .lk-a2p-th{box-shadow:inset 0 0 0 2px #fff;}
.lk-a2p-it.on .lk-a2p-th::after{content:"";position:absolute;inset:0;border-radius:8px;box-shadow:inset 0 0 0 2px #fff;}
.lk-a2p-k{position:absolute;left:6px;bottom:6px;height:20px;padding:0 7px;border-radius:5px;background:rgba(0,0,0,.6);color:#fff;font-size:11px;font-weight:600;line-height:20px;}
.lk-a2p-n{font-size:12px;color:#a1a1a8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.lk-a2p-it.on .lk-a2p-n{color:#fff;}
.lk-a2p-up .lk-a2p-th{gap:6px;align-content:center;text-align:center;padding:10px;}
.lk-a2p-up .lk-a2p-th b{font-size:13px;font-weight:700;}
.lk-a2p-up .lk-a2p-th small{font-size:11.5px;color:#8b8b93;text-wrap:balance;}
.lk-a2p-up.drag .lk-a2p-th{background:#26262a;box-shadow:inset 0 0 0 2px rgba(255,255,255,.4);}
.lk-a2p-none{grid-column:1/-1;padding:28px 0 6px;color:#8b8b93;text-align:center;}
.lk-a2p-f{display:flex;align-items:center;gap:8px;padding:12px 16px 16px;border-top:1px solid rgba(255,255,255,.06);}
.lk-a2p-f .lk-a2p-picked{flex:none;color:#8b8b93;font-size:12.5px;white-space:nowrap;}
.lk-a2p-f input{flex:1;min-width:0;height:40px;padding:0 12px;border:0;outline:0;border-radius:8px;background:#1c1c1f;color:#fff;font:inherit;font-size:13px;}
.lk-a2p-f input::placeholder{color:#8b8b93;}
.lk-a2p-f input:focus{background:#222226;}
.lk-a2p-go{flex:none;height:40px;padding:0 18px;border:0;border-radius:8px;cursor:pointer;white-space:nowrap;color:#1d1600;font:inherit;font-size:13.5px;font-weight:600;
  background:radial-gradient(at 50% 110%, rgb(252,214,92) 33%, rgba(240,190,40,.92) 66%, rgba(214,160,22,.9) 100%);
  box-shadow:inset 0 1px 8px -3px rgba(255,250,225,.95), inset 0 -2px 4px -1px rgba(140,95,10,.45), 0 3px 12px rgba(233,185,35,.22);}
.lk-a2p-go:hover:not(:disabled){filter:brightness(1.04);}
.lk-a2p-go:disabled{opacity:.6;cursor:default;}

/* ===== B copy: the Generate bar like CapCut's (Lucas 19 Nov, his two CapCut shots: "do something similar but keep our button") – a slim
   band along the bottom of the panel, edge to edge: on the left a quiet credits line with a way to get more, on the right OUR gold button,
   as wide as its words. ===== */
/* same colour as the box + one hairline on top (a darker band left an 8 px notch where the scroll bar keeps its room) */
html.lk-new .gen-dock{margin:8px -16px -18px!important;padding:0!important;background:var(--lk-box)!important;border:0!important;border-top:1px solid var(--lk-line)!important;}
html.lk-new .panel.lk-create .panel-body{container-type:inline-size;}
html.lk-new .panel.lk-create .gen-dock{margin-left:calc(-1 * max(16px, calc((100cqw - 560px) / 2)))!important;margin-right:calc(-1 * max(16px, calc((100cqw - 560px) / 2)))!important;}
html.lk-new .gen-dock .gen-jobs{padding:8px 16px 0;}
html.lk-new .gen-dock .gen-foot{display:flex!important;align-items:center;gap:12px;min-height:56px;padding:10px 12px 10px 16px;}
html.lk-new .panel.lk-create .gen-dock .gen-foot{padding-left:max(16px, calc((100cqw - 560px) / 2));padding-right:max(16px, calc((100cqw - 560px) / 2));}
html.lk-new .panel.lk-create .gen-dock .gen-jobs{padding-left:max(16px, calc((100cqw - 560px) / 2));padding-right:max(16px, calc((100cqw - 560px) / 2));}
html.lk-new .gen-dock .gen-go{flex:none!important;width:auto!important;max-width:none!important;height:38px!important;padding:0 18px!important;font-size:13.5px!important;}
.lk-fnote{display:none;}
html.lk-new .lk-fnote{display:flex;align-items:center;gap:7px;flex:1;min-width:0;height:30px;padding:0 6px;margin-left:-6px;border:0;border-radius:6px;background:none;color:#8b8b93;font:inherit;font-size:12.5px;font-weight:500;text-decoration:none;cursor:pointer;}
html.lk-new .lk-fnote:hover{background:#26262a;color:#fff;}
html.lk-new .lk-fnote svg{flex:none;width:15px;height:15px;color:#e9b923;}
html.lk-new .lk-fnote span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html.lk-new .lk-fnote b{color:#ececf1;font-weight:700;}
html.lk-new .lk-fnote .lk-chev{color:#8b8b93;width:13px;height:13px;}
html.lk-new .lk-fnote:hover b, html.lk-new .lk-fnote:hover .lk-chev{color:#fff;}
/* a narrow panel: the credits line drops its two little icons before its words get cut */
@container (max-width: 340px){ html.lk-new .lk-fnote svg{display:none;} }
/* B copy: no 1 px ring round the preview (Lucas 19 Nov: "the 1px outline remove it") – it was a box-shadow ring, not a border */
html.lk-new .preview-frame, html.lk-new .preview-frame:not(.is-blank), html.lk-new .preview-frame.is-blank{box-shadow:none!important;border:0!important;outline:0!important;}
/* B copy: the pickers that open over the preview (Choose a reference image / clip / sound, the voice + model windows) – no 1 px outlines
   (Lucas 19 Nov: "remove the 1px outlines"): the box, its head + foot lines, the Upload button = fills, like the kit */
html.lk-new :is(.ref-picker .refpk, .refpk-card, .gen-modal-card){border:0!important;border-radius:8px!important;background:#18181b!important;}
html.lk-new :is(.refpk-head, .refpk-foot, .gen-modal-head){border:0!important;}
html.lk-new .refpk-up{height:36px;border:0!important;border-radius:8px!important;background:#26262a!important;color:#fff!important;}
html.lk-new .refpk-up:hover{background:#303035!important;}
html.lk-new :is(.ref-picker, .gen-modal) :is(button, label, input):not(.lk-a2p-go){border-color:transparent!important;}
/* B copy: no faint WHITE lines anywhere (Lucas 19 Nov: "remove all white lines here. i dont mind the deep black lines") – every hairline in
   Studio's dark look turns deep black, like CapCut's: inside a box it reads as a groove, not a drawn line */
html.lk-new:not([data-theme="light"]){--lk-line:rgba(0,0,0,.55);--border-subtle:rgba(0,0,0,.5);--border-medium:rgba(0,0,0,.55);--border-strong:rgba(0,0,0,.65);}
html.lk-new .side-rail{border-right-color:rgba(0,0,0,.55)!important;}
/* B copy: the top row's buttons are words only – "16:9 ⌄" and "Chat", no shape or sparkle icon (Lucas 19 Nov: "no icon just 16:9 or whatever") */
html.lk-new .rail .ratio-glyph{display:none!important;}
html.lk-new .lk-chat-open > svg{display:none!important;}
html.lk-new .lk-chat-open{padding:0 12px!important;}
html.lk-new.lk-p-narrow .rail .ratio-label{display:inline!important;}   /* the words are the button now, so a narrow preview box keeps them */
/* B copy: the big "Drop pictures, videos and sounds here" box IS the upload button now (the ↑ icon went): an upload icon on top, a
   hover, a click opens the computer's files (Lucas 19 Nov: "what goes here?") – dropping files already worked anywhere on the page */
html.lk-new .hp-t{cursor:pointer;transition:background .12s;}
html.lk-new .hp-t:hover{background:var(--lk-fill-hi)!important;}
html.lk-new .hp-t .lk-up{display:grid;place-items:center;width:40px;height:40px;margin-bottom:4px;border-radius:8px;background:#26262a;color:#fff;}
html.lk-new .hp-t:hover .lk-up{background:#303035;}
html.lk-new .hp-t .lk-up svg{width:19px;height:19px;}
html.lk-new .hp-t .lk-up{order:-1;}   /* above the words (they are drawn by ::before / ::after when the edit is empty) */


/* ===== B copy: My media's rows + grid on the kit in EVERY version (Lucas 19 Nov, a voiceover row on B: "ugly pls fix this") – these rules
   started in C; C now only adds its small script ===== */
/* sections: small grey headings with air above, "See all" plain */
html.lk-new #allLib .all-sec{margin:0 0 16px;}
html.lk-new #allLib .all-h{height:24px;margin:0 0 6px;color:#8b8b93;font-size:12px;font-weight:600;}
html.lk-new #allLib .all-h button{border:0;background:none;color:#a1a1a8;font:inherit;font-weight:600;cursor:pointer;padding:0 2px;border-radius:5px;}
html.lk-new #allLib .all-h button:hover{color:#fff;}
/* pictures + videos: three across on a normal panel, 6 px gaps, 8 px corners, no outline (fills only) */
html.lk-new .view[data-view="media"] .clip-grid, html.lk-new #allLib .clip-grid{--card-min:92px;gap:6px!important;}
html.lk-new .clip-card{border:0!important;border-radius:8px!important;background:#1c1c1f!important;box-shadow:none!important;}
html.lk-new .clip-card:hover{transform:none!important;}
html.lk-new .clip-card:hover > img, html.lk-new .clip-card:hover > video{filter:brightness(.85);}
/* voiceovers, music, sound effects: one filled row each – square art without a ring, name, a grey line, the length on the right */
html.lk-new #allLib .all-list{display:flex;flex-direction:column;gap:6px;}
html.lk-new .vo-row{min-height:56px;margin:0!important;padding:8px 10px 8px 8px!important;gap:10px!important;border:0!important;border-radius:8px!important;background:#1c1c1f!important;box-shadow:none!important;}
html.lk-new .vo-row:hover{background:#26262a!important;transform:none!important;}
html.lk-new .vo-art{width:40px!important;height:40px!important;border:0!important;border-radius:6px!important;background:#26262a!important;box-shadow:none!important;}
html.lk-new .vo-row:hover .vo-art{background:#303035!important;}
html.lk-new .vo-art .vo-orb{width:20px;height:20px;box-shadow:none!important;}
html.lk-new .vo-play{inset:0!important;border-radius:6px!important;}
html.lk-new .vo-name{font-size:13px;font-weight:700;color:#fff;}
html.lk-new .vo-text{font-size:12px;color:#8b8b93;}
html.lk-new .vo-row .mtrk-dur{font-family:inherit;font-size:12px;font-weight:600;color:#8b8b93;font-variant-numeric:tabular-nums;}
html.lk-new .vo-exp{width:28px!important;height:28px!important;border-radius:7px!important;background:none!important;color:#a1a1a8!important;}
html.lk-new .vo-exp:hover{background:#303035!important;color:#fff!important;}
html.lk-new .vo-flag svg{width:14px;height:14px;border-radius:3px;}
/* "In this edit" – a fill, no outline; on = the lighter fill */
html.lk-new .lib-inedit{border:0!important;border-radius:8px!important;background:var(--lk-fill)!important;color:var(--text-secondary)!important;}
html.lk-new .lib-inedit:hover{background:var(--lk-fill-hi)!important;color:#fff!important;}
html.lk-new .lib-inedit.on, html.lk-new .lib-inedit.active, html.lk-new .lib-inedit[aria-pressed="true"]{background:#303035!important;color:#fff!important;}
/* My media: the head (tabs, tiles, search) and the list under it share both edges – the list keeps 8 px on the right for the scroll bar, so the head does too */
html.lk-new .panel.lk-libhead:not(.lk-create) .panel-head{padding-left:16px!important;padding-right:24px!important;}
/* B copy: every gold (spends credits) button is the kit's 8 px from the first frame – the clip panel's "Generate · 2 credits" drew square, then
   Studio's gold rule (99 px) made it a pill (Lucas 19 Nov: "it starts square then goes round"). The #id in :is() makes this win every time. */
html.lk-new :is(#genGo, #spGo, #csGo, .gen-go, .ext-go, .lr-btn.pri.spend, .lr-btn.pri[data-lr="gen"], .cap-go, .sc-gen){border-radius:8px!important;}

/* ===== B copy: Studio's voice window matches the Voiceover page's list (Lucas 19 Nov: "fix this menu to match voiceover page") –
   no outlines (box, search, picked row), taller rows with room, ▶ and "use" as plain icons (no dark squares), a softer waveform that
   brightens on hover, the picked voice = a lighter fill with a gold "use" icon. ===== */
html.lk-new .gpk{border:0!important;border-radius:8px!important;background:#0e0e10!important;}
html.lk-new .gpk-search{border:0!important;border-radius:8px!important;background:#1c1c1f!important;height:40px;}
html.lk-new .gpk-search:focus-within{background:#222226!important;}
html.lk-new .gpk-x{border-radius:7px!important;}
html.lk-new .gpk-x:hover{background:#1c1c1f!important;}
html.lk-new #gpkList .vr-row{min-height:76px;padding:10px 16px 10px 14px!important;gap:20px!important;border-radius:8px!important;box-shadow:none!important;}
html.lk-new #gpkList .vr-row:hover{background:#151517!important;}
html.lk-new #gpkList .vr-row.is-on{background:#1f1f22!important;box-shadow:none!important;}
html.lk-new #gpkList :is(.vr-play, .vr-use){background:none!important;box-shadow:none!important;border:0!important;}
html.lk-new #gpkList .vr-play:hover, html.lk-new #gpkList .vr-use:hover{background:rgba(255,255,255,.07)!important;}
html.lk-new #gpkList .vr-play svg{width:20px!important;height:20px!important;}
html.lk-new #gpkList .vr-use.is-on, html.lk-new #gpkList .vr-row.is-on .vr-use{color:#f5c84c!important;}
html.lk-new #gpkList .vr-wave canvas{opacity:.5;transition:opacity .15s;}
html.lk-new #gpkList .vr-row:hover .vr-wave canvas, html.lk-new #gpkList .vr-row.is-on .vr-wave canvas{opacity:.85;}
html.lk-new #gpkList .vr-who b{font-size:15px!important;}
html.lk-new #gpkList .vr-who span{font-size:13px!important;color:#8b8b93!important;}

/* Studio layout C – its My media look moved into layout.css on 19 Nov so B has it too (Lucas: "ugly pls fix this" on B). */

/* ===== Studio layout D (session 28, 19 Nov 2026) = C + CapCut's player + timeline bars (Lucas's numbered CapCut shot: "1 making our icons
   more smaller and in that row … 3 the same play pause here by itself … etc try"; 2, the timeline tabs, left out – he isn't fussed).
   Build: build.py … "00 Lukie - studio layout D.html" layout-c.css layout-c.js layout-d.css layout-d.js ===== */
/* the player bar along the bottom of the preview box: the time on the left, play / pause alone in the middle, full screen on the right */
html.lk-new .stage{padding-bottom:48px!important;}
.lk-pbar{display:none;}
html.lk-new .lk-pbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;position:absolute;left:0;right:0;bottom:0;height:48px;padding:0 10px 0 14px;z-index:5;}
/* no line above the player bar (Lucas 19 Nov: "can u remove the line pls") */
html.lk-new .lk-pbar .lk-pl{justify-self:start;min-width:0;}
html.lk-new .lk-pbar .lk-pr{justify-self:end;display:flex;gap:2px;}
html.lk-new .lk-pbar #tlTime{display:flex;align-items:baseline;gap:4px;margin:0!important;padding:0!important;min-width:0!important;font-size:12.5px;font-weight:600;color:#8b8b93;font-variant-numeric:tabular-nums;white-space:nowrap;}
html.lk-new .lk-pbar #tlTime .cur{color:#fff;}
html.lk-new .lk-pbar #tlPlayBtn{width:34px!important;height:34px!important;margin:0!important;}
html.lk-new .lk-pbar .tl-tool{width:30px!important;height:30px!important;border:0!important;border-radius:7px!important;background:none!important;color:var(--text-secondary)!important;display:grid;place-items:center;}
html.lk-new .lk-pbar .tl-tool:hover{background:var(--lk-fill)!important;color:#fff!important;}
html.lk-new .lk-pbar .tl-tool svg{width:16px!important;height:16px!important;}
/* the timeline bar: every edit tool small and in one row on the left (undo, redo, split, delete, snap); zoom stays on the right */
html.lk-new .tl-bar{gap:2px!important;padding-left:10px!important;}
html.lk-new .tl-bar .tl-tool{width:30px!important;height:30px!important;}
html.lk-new .tl-bar .tl-tool svg{width:16px!important;height:16px!important;}
html.lk-new .tl-bar .lk-tl-edit{display:flex;align-items:center;gap:2px;}
html.lk-new .tl-bar .lk-tl-edit .lk-vsep{width:1px;height:18px;margin:0 6px;background:rgba(255,255,255,.1);}
html.lk-new .tl-bar > .tl-sep:first-of-type{display:none;}

/* ===== D: what goes in (Image refs, Start frame, End frame, clips, sounds) sits INSIDE the prompt box at the top, like CapCut's + (Lucas 19 Nov:
   "defs i think add this in instead of at the bottom"). Kinds with nothing to add (Voice, Text to…) show no tiles. ===== */
html.lk-new .gen-box > #giRow{display:flex!important;flex-wrap:wrap;gap:5px;margin:2px 0 10px;}
html.lk-new .gen-box > #giRow:empty{display:none!important;}
html.lk-new .gen-box:has(> #giRow:not(:empty)) > .gen-lbl{display:none;}
html.lk-new .gen-box > #giRow > .gi-tile{width:60px!important;height:60px!important;min-height:0!important;flex:none;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px!important;padding:0 4px!important;border:0!important;border-radius:8px!important;background:#26262a!important;color:#d6d6db!important;font-size:10.5px!important;font-weight:600;line-height:12px!important;text-align:center;overflow:hidden;position:relative;}
html.lk-new .gen-box > #giRow > .gi-tile:hover{background:#303035!important;color:#fff!important;}
html.lk-new .gen-box > #giRow > .gi-tile svg{width:18px!important;height:18px!important;}
html.lk-new .gen-box > #giRow > .gi-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
html.lk-new .gen-box > #giRow > .gi-tile.filled .gi-cap{position:absolute;left:0;right:0;bottom:0;padding:2px 3px;background:rgba(0,0,0,.6);color:#fff;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
/* the old Inputs heading at the bottom goes; its tip line (Seedance: describe people instead of photos) stays where it was */
html.lk-new #genInputs > .gen-lbl{display:none!important;}
html.lk-new #genInputs:not(:has(#genSeedTip)){display:none!important;}
/* play / pause = just the icon, white, no white circle (Lucas 19 Nov: "make it a play icon no white circle"); a soft fill on hover like every icon button */
html.lk-new .lk-pbar #tlPlayBtn{position:static!important;transform:none!important;width:36px!important;height:36px!important;border-radius:8px!important;background:none!important;color:#fff!important;box-shadow:none!important;}
html.lk-new .lk-pbar #tlPlayBtn:hover{background:var(--lk-fill)!important;transform:none!important;}
html.lk-new .lk-pbar #tlPlayBtn svg{width:22px!important;height:22px!important;}
/* the two top rows (the preview's: name, ratio, Share, Export · the chat's: Chat / Comment) a shade lighter than their box, with a soft shadow
   under them instead of a line, like CapCut's panel heads (Lucas 19 Nov: "make the top bar a different shade and then add … a drop shadow") */
html.lk-new{--lk-head:#1b1b1e;}
html.lk-new .stage{background:linear-gradient(var(--lk-head) 0 46px, var(--lk-box) 46px)!important;}
html.lk-new .stage::before{top:46px!important;height:8px!important;background:linear-gradient(rgba(0,0,0,.38), rgba(0,0,0,0))!important;z-index:4;pointer-events:none;}
html.lk-new .ai-head{position:relative;z-index:3;background:var(--lk-head)!important;border-bottom:0!important;box-shadow:0 1px 0 rgba(0,0,0,.25), 0 4px 8px -2px rgba(0,0,0,.45);}
html.lk-new{--lk-head:#1c1c1f;}
/* on the lighter row the filled buttons step up one shade so they still read */
html.lk-new .rail .share-btn, html.lk-new .rail .ratio-trigger, html.lk-new .lk-chat-open, html.lk-new .ai-tabs button.active{background:#26262a!important;}
html.lk-new .rail .share-btn:hover, html.lk-new .rail .ratio-trigger:hover, html.lk-new .lk-chat-open:hover{background:#303035!important;}
html.lk-new .rail .lk-lay-btn:hover, html.lk-new .rail .lk-lay-btn[aria-expanded="true"], html.lk-new .rail .st-btn:hover, html.lk-new .lk-chat-x:hover{background:#26262a!important;}
/* (Lucas 19 Nov) play has no hover effect; the time bigger, the playing time in Lukie's gold and the length in white, like CapCut's */
html.lk-new .lk-pbar #tlPlayBtn:hover{background:none!important;}
html.lk-new .lk-pbar #tlTime{font-size:14.5px!important;font-weight:600;gap:6px;color:#8b8b93;letter-spacing:.01em;}
html.lk-new .lk-pbar #tlTime .cur{color:#f5c84c!important;}
html.lk-new .lk-pbar #tlTime{color:#fff!important;}   /* " / 0:30" is plain text after the gold time – it takes the white */
/* (Lucas 19 Nov, CapCut's player bar beside ours: "make it more subtle like this. see ours is huge") – a slim 38 px bar, small icons, small time */
html.lk-new .stage{padding-bottom:38px!important;}
html.lk-new .lk-pbar{height:38px!important;padding:0 8px 0 14px!important;}
html.lk-new .lk-pbar #tlPlayBtn{width:28px!important;height:28px!important;border-radius:6px!important;}
html.lk-new .lk-pbar #tlPlayBtn svg{width:15px!important;height:15px!important;}
html.lk-new .lk-pbar #tlTime{font-size:12.5px!important;gap:4px!important;}
html.lk-new .lk-pbar .tl-tool{width:26px!important;height:26px!important;border-radius:6px!important;}
html.lk-new .lk-pbar .tl-tool svg{width:14px!important;height:14px!important;}
/* (Lucas 19 Nov) play back to its bigger size – "play button is too small revert that. but the timer can be small" */
html.lk-new .lk-pbar #tlPlayBtn{width:36px!important;height:36px!important;border-radius:8px!important;}
html.lk-new .lk-pbar #tlPlayBtn svg{width:22px!important;height:22px!important;}
/* nothing on the timeline yet = nothing to play: the time, play and full screen go grey (Lucas: "grey this out unless its on the timeline") */
html.lk-new.lk-tl-empty .lk-pbar #tlTime, html.lk-new.lk-tl-empty .lk-pbar #tlTime .cur{color:#5d5d64!important;}
html.lk-new.lk-tl-empty .lk-pbar #tlPlayBtn, html.lk-new.lk-tl-empty .lk-pbar .tl-tool{color:#5d5d64!important;pointer-events:none;cursor:default;}
/* ===== D: the timeline toolbar's icons like CapCut's (Lucas 19 Nov: "our icons look terrible compared to these") – brighter, bigger, evenly
   spaced; each icon keeps its own size from Studio (some are drawn with padding, so one size for all made them look uneven), scaled to a
   32 px button. Disabled = dim grey, not see-through. ===== */
html.lk-new .tl-bar{gap:4px!important;}
html.lk-new .tl-bar .lk-tl-edit{gap:4px;}
html.lk-new .tl-bar .tl-tool{width:32px!important;height:32px!important;border-radius:7px!important;color:#d6d6db!important;opacity:1!important;}
html.lk-new .tl-bar .tl-tool:hover:not(:disabled){background:var(--lk-fill)!important;color:#fff!important;}
html.lk-new .tl-bar .tl-tool:disabled{color:#55555c!important;}
html.lk-new .tl-bar .tl-tool svg{width:18px!important;height:18px!important;stroke-width:1.9;}
html.lk-new .tl-bar :is(#undoTlBtn,#redoTlBtn,#splitBtn) svg{width:21px!important;height:21px!important;}
html.lk-new .tl-bar #magnetBtn svg{width:22px!important;height:22px!important;}
html.lk-new .tl-bar #magnetBtn.active{background:#2e2e33!important;color:#fff!important;}
html.lk-new .tl-bar .lk-tl-edit .lk-vsep{margin:0 6px;background:rgba(255,255,255,.12);}
/* tooltips open BELOW the button (above, the timeline box cut them off) – the kit's tooltip */
html.lk-new .tl-bar .tl-tool::after{bottom:auto!important;top:calc(100% + 6px)!important;z-index:50;padding:5px 9px!important;border:0!important;border-radius:6px!important;background:#2c2c31!important;color:#fff!important;font-size:12px!important;box-shadow:0 8px 22px rgba(0,0,0,.5)!important;}

/* ===== D: full screen like CapCut's (Lucas 19 Nov, CapCut's beside ours: "the actual screen is small on our full one") – the video as big as
   the screen allows, no ring, no big round play in the middle; ONE small pill under it: play, the time (gold / white), a scrub bar, exit.
   The pill hides after 2 s still, like before. (The round ✕ at the very top is Chrome's own full-screen exit, not ours.) ===== */
html.lk-new .stage-canvas:fullscreen{background:#0b0b0c!important;padding:16px 16px 72px!important;align-items:center!important;justify-content:center!important;}
html.lk-new .stage-canvas:fullscreen .preview-frame{border-radius:0!important;box-shadow:none!important;}
html.lk-new .stage-canvas:fullscreen .preview-frame.shape-wide{width:min(100cqw, calc(100cqh * 16 / 9))!important;height:auto!important;max-width:none!important;max-height:none!important;}
html.lk-new .stage-canvas:fullscreen .preview-frame.shape-tall{height:min(100cqh, calc(100cqw * 16 / 9))!important;width:auto!important;}
html.lk-new .stage-canvas:fullscreen .preview-frame.shape-square{height:min(100cqh, 100cqw)!important;width:auto!important;}
html.lk-new .stage-canvas:fullscreen .preview-frame.shape-portrait{height:min(100cqh, calc(100cqw * 5 / 4))!important;width:auto!important;}
html.lk-new .stage-canvas:fullscreen .pv-fsplay{display:none!important;}
html.lk-new .stage-canvas:fullscreen .pv-ctrls{display:flex!important;align-items:center;gap:12px!important;left:50%!important;right:auto!important;bottom:18px!important;transform:translateX(-50%)!important;width:min(620px, 90vw)!important;height:40px;padding:0 6px 0 8px!important;border-radius:8px!important;background:#1c1c1f!important;box-shadow:0 10px 30px rgba(0,0,0,.5)!important;}
html.lk-new .stage-canvas:fullscreen .pv-ctrls .pv-play{display:grid!important;place-items:center;order:1;flex:none;width:30px;height:30px;padding:0;border:0;border-radius:6px;background:none!important;color:#fff;box-shadow:none!important;}
html.lk-new .stage-canvas:fullscreen .pv-ctrls .pv-play svg{width:17px;height:17px;}
html.lk-new .stage-canvas:fullscreen .pv-ctrls .pv-time{order:2;flex:none;font-family:inherit!important;font-size:12.5px!important;font-weight:600;color:#fff!important;font-variant-numeric:tabular-nums;white-space:nowrap;}
html.lk-new .stage-canvas:fullscreen .pv-ctrls .pv-time b{color:#f5c84c;font-weight:600;}
html.lk-new .stage-canvas:fullscreen .pv-ctrls .pv-seek{order:3;flex:1;min-width:60px;margin:0;accent-color:#fff;height:4px;}
html.lk-new .stage-canvas:fullscreen .pv-ctrls #expandBtn{order:4;flex:none;position:static!important;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:6px;background:none!important;color:#d6d6db;opacity:1!important;}
html.lk-new .stage-canvas:fullscreen .pv-ctrls #expandBtn:hover{background:#26262a!important;color:#fff;}
html.lk-new .stage-canvas:fullscreen .pv-ctrls #expandBtn svg{width:16px;height:16px;}
html.lk-new .stage-canvas:fullscreen .pv-rctrls{display:none!important;}
/* D: an empty input in the prompt box is just a "+" (CapCut's), its name in a tooltip – "Add image reference", "Add start frame"…
   (Lucas 19 Nov: "just add a plus with a tooltip"); a filled one keeps its picture */
html.lk-new .gen-box > #giRow > .gi-tile:not(.filled){font-size:0!important;gap:0!important;overflow:visible!important;}
html.lk-new .gen-box > #giRow > .gi-tile:not(.filled) > *:not(.lk-plus){display:none!important;}
html.lk-new .gen-box > #giRow > .gi-tile:not(.filled) .lk-plus{display:block;width:22px;height:22px;color:#e6e6ea;}
html.lk-new .gen-box > #giRow > .gi-tile:not(.filled):hover .lk-plus{color:#fff;}
html.lk-new .gen-box > #giRow > .gi-tile[data-lk-tip]::after{content:attr(data-lk-tip);position:absolute;left:50%;top:calc(100% + 6px);transform:translateX(-50%);z-index:40;padding:5px 9px;border-radius:6px;background:#2c2c31;color:#fff;font-size:12px;font-weight:600;line-height:1.2;white-space:nowrap;box-shadow:0 8px 22px rgba(0,0,0,.5);opacity:0;pointer-events:none;transition:opacity .12s .35s;}
html.lk-new .gen-box > #giRow > .gi-tile[data-lk-tip]:hover::after{opacity:1;}
html.lk-new .gen-box{overflow:visible!important;}
html.lk-new .gen-box > #giRow > .gi-tile[data-lk-tip]::after{left:0!important;transform:none!important;}   /* starts at the tile's left edge – centred, the first one ran off the panel */
/* the two top rows: no drop shadow – one deep black line under the lighter row instead (Lucas: "remove that drop shadow in the top. make it like" CapCut) */
html.lk-new .stage::before{height:1px!important;background:rgba(0,0,0,.6)!important;}
html.lk-new .ai-head{box-shadow:0 1px 0 rgba(0,0,0,.6)!important;}

/* ===== the scroll bar trick on Studio's drop-downs and menus (Lucas 20 Nov: "try it on … this drop down"): no bar until the mouse is over
   the list, then a slim 4 px grey one; its room is always kept, so the rows never move. The page set scrollbar-width / -color on these,
   which makes Chrome ignore the bar's own look – put back to auto here. */
html.lk-new :is(.gen-menu,.fs-menu,.ex-fmenu,.font-menu,.sc-vmenu,.mref-menu,.ru-menu,.clip-menu,.card-menu){scrollbar-width:auto!important;scrollbar-color:auto!important;scrollbar-gutter:stable;}
html.lk-new :is(.gen-menu,.fs-menu,.ex-fmenu,.font-menu,.sc-vmenu,.mref-menu,.ru-menu,.clip-menu,.card-menu)::-webkit-scrollbar{display:block!important;width:4px!important;height:4px!important;background:transparent;}
html.lk-new :is(.gen-menu,.fs-menu,.ex-fmenu,.font-menu,.sc-vmenu,.mref-menu,.ru-menu,.clip-menu,.card-menu)::-webkit-scrollbar-button{display:none;}
html.lk-new :is(.gen-menu,.fs-menu,.ex-fmenu,.font-menu,.sc-vmenu,.mref-menu,.ru-menu,.clip-menu,.card-menu)::-webkit-scrollbar-track{background:transparent!important;margin:6px 0;}
/* Lucas 20 Nov: on a drop-down the slim bar shows the whole time it's open ("keep that there all the time") – it says there's more below */
html.lk-new :is(.gen-menu,.fs-menu,.ex-fmenu,.font-menu,.sc-vmenu,.mref-menu,.ru-menu,.clip-menu,.card-menu)::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22)!important;border:0!important;border-radius:4px;}
html.lk-new :is(.gen-menu,.fs-menu,.ex-fmenu,.font-menu,.sc-vmenu,.mref-menu,.ru-menu,.clip-menu,.card-menu)::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.4)!important;}

/* the rotate dot under the picture, like CapCut's (Lucas 20 Nov: "put this in the bottom … overlays the bottom until it reaches the play then
   hide it") – the stem points up to the picture's bottom edge; syncSelBox hides it once it would touch the play bar */
html.lk-new :is(.pv-selbox,.pv-txtbox) .sb-rot{top:auto!important;bottom:-34px;}
html.lk-new :is(.pv-selbox,.pv-txtbox) .sb-rot::after{top:auto;bottom:18px;}
html.lk-new :is(.pv-selbox,.pv-txtbox) .sb-rot.is-hid{visibility:hidden;}
/* the rotate dot a touch smaller and closer, with a rotate arrow in it (Lucas 20 Nov) – the grab area stays 9 px bigger all round (::before) */
html.lk-new :is(.pv-selbox,.pv-txtbox) .sb-rot{width:18px;height:18px;margin-left:-9px;bottom:-27px;border-width:1.5px;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d21' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.4-5.7'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E") center/10px no-repeat;}
html.lk-new :is(.pv-selbox,.pv-txtbox) .sb-rot::after{bottom:16.5px;height:9px;width:1.5px;margin-left:-.75px;}
/* no stem: the rotate dot floats on its own under the picture (Lucas 20 Nov: "disconnect it") */
html.lk-new :is(.pv-selbox,.pv-txtbox) .sb-rot::after{display:none;}

/* ===== E: the RIGHT panel (Lucas 20 Nov, CapCut's way). The picked clip's controls (the page's lk-rp block moves the clip card's
   insides + the AI edit box into #edPane):
   · lk-rp-wide (1800 px +): #edPane fills its own full-height column (#edCol) beside the chat column;
   · lk-rp-stack (smaller): #edPane sits on top of the chat column, the chat under it; each folds to its head bar.
   The left panel stays where you left it. The bar over the preview keeps only split / delete / more.
   Parts from the kit: the box, fills, 8 px corners, tabs = a fill, hairlines only inside a box. ===== */
html.lk-rp #cpBack, html.lk-rp #clipPop{display:none!important;}
html.lk-rp #edPane .insp-head{display:none!important;}   /* the panel's own bar says what's picked */
/* the bar over the preview: only the quick ones (split, delete, more; "N clips" and Cut to the beat stay) */
html.lk-rp #clipTb .ctb-tabs button[data-ctab]:not([data-ctab="__batch"]){display:none!important;}
html.lk-rp #clipTb .ctb-tabs:not(:has(button:not([data-ctab]), button[data-ctab="__batch"])) + .ctb-sep, html.lk-rp #clipTb .ctb-tabs:not(:has(button:not([data-ctab]), button[data-ctab="__batch"])){display:none!important;}

/* the Edit panel itself */
html.lk-rp .ed-pane{display:flex;flex-direction:column;min-height:0;}
html.lk-rp #edPane .clip-pane{display:flex;flex:1;min-height:0;animation:none;}
html.lk-rp #edPane.is-empty .clip-pane{display:none;}
html.lk-rp #edPane .ed-empty{display:none;padding:12px 16px 16px;overflow-y:auto;}
html.lk-rp #edPane.is-empty .ed-empty{display:block;}
html.lk-rp #edPane .sel-pane{display:flex;flex-direction:column;min-height:0;animation:none;}
html.lk-rp #edPane .sel-pane .sp-head{display:none;}
html.lk-rp .ed-bar{flex-shrink:0;height:47px;box-sizing:border-box;display:flex;align-items:center;gap:10px;padding:0 10px 0 16px;border-bottom:1px solid var(--lk-line);cursor:default;user-select:none;}
html.lk-rp .ed-bt{flex:1;min-width:0;display:flex;align-items:baseline;gap:8px;}
html.lk-rp .ed-bt b{font-size:13px;font-weight:700;color:#ececf1;white-space:nowrap;}
html.lk-rp .ed-bt i{font-style:normal;font-size:12px;color:#8b8b93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
html.lk-rp .ed-fold-btn{flex-shrink:0;width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:6px;background:none;color:#8b8b93;padding:0;}
html.lk-rp .ed-fold-btn:hover{background:var(--lk-fill);color:#fff;}
html.lk-rp .ed-fold-btn svg{width:16px;height:16px;transition:transform .15s;}
html.lk-rp #edPane.is-fold .ed-fold-btn svg, html.lk-rp #inspector.chat-fold .chat-fold-btn svg{transform:rotate(-90deg);}
html.lk-rp #edPane.is-fold > :not(.ed-bar){display:none!important;}
/* the clip's tabs: plain words, the picked one filled (the kit's tabs) – they wrap onto a second row rather than scroll */
html.lk-rp #edPane .rp-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:10px 12px;border-bottom:1px solid var(--lk-line);}
html.lk-rp #edPane .rp-tab{flex:0 0 auto!important;height:28px;display:inline-flex;align-items:center;padding:0 10px;border-radius:7px;font-size:12.5px;font-weight:600;color:#a1a1a8;cursor:pointer;border:0!important;background:transparent;}
html.lk-rp #edPane .rp-tab::after{display:none!important;}
html.lk-rp #edPane .rp-tab:hover{background:var(--lk-fill);color:#ececf1;}
html.lk-rp #edPane .rp-tab.active{background:var(--lk-fill-hi);color:#ececf1;}
html.lk-rp #edPane .insp-body{padding:14px 16px;}
html.lk-rp #edPane .insp-foot{border-top:1px solid var(--lk-line);}
/* nothing picked: the edit's details */
html.lk-rp .ed-drow{display:flex;justify-content:space-between;gap:12px;padding:9px 0;font-size:12.5px;border-bottom:1px solid var(--lk-line);}
html.lk-rp .ed-drow span{color:#8b8b93;} html.lk-rp .ed-drow b{color:#ececf1;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html.lk-rp .ed-ehint{margin-top:14px;font-size:12.5px;color:#8b8b93;text-wrap:pretty;}

/* ── wide (1800 px +): its own full-height column beside the chat, like CapCut on a big screen ── */
html.lk-rp .ed-col{display:none;}
html.lk-rp-wide .ed-col{display:flex;flex-direction:column;flex-shrink:0;width:var(--lk-cw);min-height:0;background:var(--lk-box);border-radius:var(--lk-r);overflow:hidden;}
html.lk-rp-wide .ed-col .ed-pane{flex:1;}
html.lk-rp-wide .ed-fold-btn{display:none;}

/* ── smaller: stacked in the chat's column – Edit on top, the chat under it; a hairline between ── */
html.lk-rp-stack #inspector .ed-pane{flex:1.25 1 0;border-bottom:1px solid var(--lk-line);}
html.lk-rp-stack #inspector .ed-pane.is-fold{flex:0 0 auto;}
html.lk-rp-stack #inspector .ai-head{position:relative;}
html.lk-rp-stack #inspector .chat-fold-btn{position:absolute;right:10px;top:50%;margin-top:-14px;}
html.lk-rp-stack #inspector .ai-body{flex:1 1 0;}
html.lk-rp-stack #inspector.chat-fold :is(.ai-body,.ai-compose,.ai-soon,.cm-pane){display:none!important;}
html.lk-rp-stack #inspector.chat-fold .ed-pane{flex:1 1 0;border-bottom:1px solid var(--lk-line);}
html.lk-rp-stack #edPane .ed-bar{padding-right:48px;}   /* room for the column's ✕ */
html.lk-rp-stack #inspector .lk-chat-x{top:10px;}
html.lk-rp .chat-fold-btn{display:none;}
html.lk-rp-stack .chat-fold-btn{display:grid;}
/* the Edit column's left edge: drag it wider (never narrower than it starts); double-click = its normal width */
html.lk-rp .ed-grip{display:none!important;}
html.lk-rp-wide:not(.lk-rp-floating) .ed-grip{display:block!important;position:fixed;z-index:55;border-radius:3px;}
html.lk-rp-wide .ed-grip:hover, body.ed-sizing .ed-grip{background:rgba(255,255,255,.18);}   /* lit like the other edges */
body.ed-sizing{user-select:none;}

/* ── torn off: the Edit panel as its own floating window (drag its bar; a box shows where it docks on the right) ── */
html.lk-rp .ed-float{display:none;position:fixed;z-index:80;flex-direction:column;min-width:320px;min-height:240px;max-width:90vw;max-height:calc(100vh - 12px);
  background:var(--lk-box);border-radius:var(--lk-r);box-shadow:0 18px 48px rgba(0,0,0,.6);overflow:hidden;resize:both;}
html.lk-rp .ed-float .ed-pane{flex:1;min-height:0;border:0!important;}
html.lk-rp .ed-float .ed-bar{cursor:default;}
html.lk-rp .ed-float .ed-fold-btn:not(.ed-dock-btn){display:none!important;}
html.lk-rp .ed-dock-btn{display:none!important;}
html.lk-rp .ed-float .ed-dock-btn{display:grid!important;}
html.lk-rp .ed-float .ed-bar{padding-right:10px!important;}
html.lk-rp-floating.lk-rp-wide .ed-col{display:none!important;}
html.lk-rp .ed-dockzone{display:none;position:fixed;z-index:79;border-radius:var(--lk-r);background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.55);pointer-events:none;}
html.lk-rp .ed-dockzone.on{display:block;}
body.ed-dragging{user-select:none;}
/* the cursor where it helps (Lucas 20 Nov): a hand on a panel bar you can drag, arrows on edges that make a panel bigger – everything else keeps the normal arrow */
html.lk-rp .ed-bar{cursor:grab!important;} html.lk-rp .ed-bar button{cursor:pointer!important;}
body.ed-dragging, body.ed-dragging *{cursor:grabbing!important;}
html.lk-rp-wide .ed-grip{cursor:ew-resize;} body.ed-sizing, body.ed-sizing *{cursor:ew-resize!important;}
html.lk-new.lk-drag-col, html.lk-new.lk-drag-col *{cursor:ew-resize!important;}   /* the arrow stays while the edge is dragged (a class, not :has() – the :has() version made every change on the page re-check all its styles: ~8 ms a frame, 21 Nov) */
html.lk-new.lk-drag-row, html.lk-new.lk-drag-row *{cursor:ns-resize!important;}
/* every black gap between boxes grabs a little past its edges (3 px each side), so it's easy to catch anywhere along it */
html.lk-new .lk-h::before, html.lk-rp-wide .ed-grip::before{content:"";position:absolute;inset:0 -3px;}
html.lk-new .lk-h.row::before{inset:-3px 0;}

/* ── the Chat column and the Library panel torn off (the page's tearable()): a floating window, back to their own side on a drop ── */
html.lk-new :is(#inspector,.app-main .panel).is-torn{position:fixed!important;z-index:80;margin:0!important;border-radius:var(--lk-r)!important;box-shadow:0 18px 48px rgba(0,0,0,.6);
  overflow:hidden;resize:both;min-width:300px;min-height:240px;max-width:90vw;max-height:calc(100vh - 12px);display:flex!important;flex-direction:column;}
html.lk-lib-floating{--lk-pw:0px!important;}
html.lk-new .tear-dock{display:none!important;}
html.lk-new .is-torn .tear-dock{display:grid!important;position:absolute;top:9px;right:10px;z-index:7;}
html.lk-new #inspector.is-torn .tear-dock{right:44px;}
html.lk-new .ai-head{cursor:grab;}
html.lk-new .ai-head :is(button,a,input), html.lk-new .app-main .panel .panel-head :is(button,a,input,label){cursor:pointer;}
html.lk-new .app-main .panel.is-torn .panel-head{padding-right:46px!important;}

/* ── Layout › Side panel (Lucas 20 Nov): the Edit panel in the top row beside the preview – as tall as the preview and the library,
   the timeline full width under all three; drag the gap above the timeline to make the top row (and Edit) taller ── */
html.lk-new.lk-rp-side .app-main{grid-template-columns:76px var(--lk-pw) minmax(0,1fr) auto;grid-template-areas:"rail panel stage ed" "tl tl tl tl";}
html.lk-rp-side .ed-col{grid-area:ed;min-height:0;}

/* the Create box's inputs: one "+" and a small menu of slots (layout-e.js) – the kit's menu: #1e1e21, rows with a grey icon square,
   the name bold + one grey line, 8 px corners, greyed rows say why */
html.lk-new #giRow > .gi-tile.lk-hide{display:none!important;}
.lk-addmenu{position:fixed;z-index:10095;width:300px;padding:6px;border-radius:8px;background:#1e1e21;box-shadow:0 16px 40px rgba(0,0,0,.5);display:flex;flex-direction:column;gap:2px;animation:menuIn .12s ease-out;}
.lk-addrow{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:7px 10px 7px 8px;border:0;border-radius:6px;background:transparent;color:#ececf1;text-align:left;font:inherit;cursor:pointer;}
.lk-addrow:hover{background:#2a2a2e;}
.lk-addrow.off{cursor:default;opacity:.5;} .lk-addrow.off:hover{background:transparent;}
.lk-addic{flex:0 0 32px;height:32px;border-radius:6px;background:#2a2a2e;display:grid;place-items:center;color:#fff;}
.lk-addic svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.lk-addtx{min-width:0;display:flex;flex-direction:column;gap:1px;}
.lk-addtx b{font-size:13px;font-weight:600;} .lk-addtx i{font-style:normal;font-size:11.5px;color:#8b8b93;text-wrap:pretty;}

/* the band behind a view's sticky tab bar (Script › Voiceover · Pronunciations …) in the new look's panel colour – the old colour showed
   as a darker block behind the tabs (Lucas 20 Nov) */
html.lk-new .view > .seg:first-child{box-shadow:0 -16px 0 6px var(--lk-box), 0 8px 0 6px var(--lk-box), 120px 0 0 6px var(--lk-box), 240px 0 0 6px var(--lk-box), -120px 0 0 6px var(--lk-box)!important;}
/* the kinds row (All · Video · … · Music · SFX): no snapping – the last chips can't line up at a start, so the arrow's scroll was pulled
   back to the beginning and SFX never showed (Lucas 20 Nov) */
html.lk-new #libChips{scroll-snap-type:none!important;}

/* the preview's top row (Lucas 20 Nov): the name's ⌄ menu shows (the left part cut off anything below it – a long name gets "…" itself);
   Layout · 16:9 · Share = plain words, no fill and no hover change, the words light up white only while their menu is open */
html.lk-new .rail .tb-left{overflow:visible!important;}
html.lk-new .rail #projName{min-width:0;max-width:240px;}
html.lk-new .rail .share-btn, html.lk-new .rail .ratio-trigger, html.lk-new .rail .lk-lay-btn,
html.lk-new .rail .share-btn:hover, html.lk-new .rail .ratio-trigger:hover, html.lk-new .rail .lk-lay-btn:hover{background:transparent!important;color:#a1a1a8!important;box-shadow:none!important;}
html.lk-new .rail .lk-lay-btn{width:auto!important;padding:0 8px!important;font:inherit;font-size:13px;font-weight:600;}
html.lk-new .rail .lk-lay-btn[aria-expanded="true"], html.lk-new .rail .ratio-trigger.open, html.lk-new .rail .ratio-trigger[aria-expanded="true"], html.lk-new .rail :has(> .ratio-menu.open) > .ratio-trigger,
html.lk-new .rail .share-btn.open, html.lk-new .rail .share-btn[aria-expanded="true"], html.lk-new .rail .share-btn.active{color:#fff!important;}
html.lk-new .rail #ratioDD.open .ratio-trigger, html.lk-new:has(body > .share-pop) .rail .share-btn{color:#fff!important;}   /* 16:9's menu open · the Share pop-up open */
/* the top row as icons (Lucas 20 Nov): Layout and Share = plain grey icons, 16:9 = a small shape + its number; a label shows under each on hover */
html.lk-new .rail .lk-lay-btn, html.lk-new .rail .share-btn{width:30px!important;height:30px!important;padding:0!important;display:grid!important;place-items:center;margin-right:0!important;}
html.lk-new .rail .lk-lay-btn svg, html.lk-new .rail .share-btn svg{width:17px;height:17px;}
html.lk-new .rail .ratio-glyph{display:block!important;}
html.lk-new .rail .ratio-trigger{gap:7px!important;}
html.lk-new .rail [data-lk-tip]{position:relative;}
html.lk-new .rail [data-lk-tip]::after{content:attr(data-lk-tip);position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%);z-index:90;padding:5px 8px;border-radius:6px;background:#2a2a2e;color:#ececf1;
  font-size:12px;font-weight:500;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .12s .25s;}
html.lk-new .rail [data-lk-tip]:hover::after{opacity:1;}
html.lk-new .rail [aria-expanded="true"][data-lk-tip]::after, html.lk-new .rail #ratioDD.open [data-lk-tip]::after{opacity:0!important;}

/* the preview's top row, CapCut-small (Lucas 20 Nov): Layout a small icon, "▭ 16:9", "↗ Share" and Export as small icon + word, 26 px tall */
html.lk-new .rail .lk-lay-btn{width:26px!important;height:26px!important;}
html.lk-new .rail .lk-lay-btn svg{width:15px!important;height:15px!important;}
html.lk-new .rail .ratio-trigger{height:26px!important;font-size:12px!important;padding:0 6px!important;}
html.lk-new .rail .ratio-trigger .chev{width:12px;height:12px;}
html.lk-new .rail .ratio-dd[data-shape="wide"] .ratio-glyph{width:13px;height:8px;} html.lk-new .rail .ratio-dd[data-shape="tall"] .ratio-glyph{width:8px;height:13px;}
html.lk-new .rail .ratio-dd[data-shape="square"] .ratio-glyph{width:10px;height:10px;} html.lk-new .rail .ratio-dd[data-shape="portrait"] .ratio-glyph{width:9px;height:12px;}
html.lk-new .rail .ratio-glyph{border-width:1.5px!important;border-radius:2px!important;}
html.lk-new .rail .share-btn{width:auto!important;height:26px!important;padding:0 8px!important;display:inline-flex!important;align-items:center;gap:6px;font-size:12px!important;font-weight:600;}
html.lk-new .rail .share-btn svg{width:14px!important;height:14px!important;}
html.lk-new .rail .export-btn{height:26px!important;padding:0 10px!important;font-size:12px!important;gap:6px!important;}
html.lk-new .rail .export-btn svg{width:13px!important;height:13px!important;}

/* the Library spread over the preview (layout-e.js ⤢): it takes the preview's place (and Edit's, beside it); the preview's top row hides */
html.lk-new.lk-lib-big .app-main .panel{grid-column:2 / -1!important;z-index:61;}
html.lk-new.lk-lib-big .rail{visibility:hidden;}
.lk-libx{display:none;}
html.lk-new .panel .lk-div{position:relative;}
html.lk-new .lk-libx{display:grid;place-items:center;position:absolute;right:0;top:50%;margin-top:-13px;width:26px;height:26px;border:0;border-radius:6px;background:none;color:#8b8b93;padding:0;cursor:pointer;}
html.lk-new .lk-libx:hover{color:#fff;}
html.lk-new .lk-libx svg{width:15px;height:15px;} html.lk-new .lk-libx .i{display:none;} html.lk-new.lk-lib-big .lk-libx .o{display:none;} html.lk-new.lk-lib-big .lk-libx .i{display:block;}
html.lk-new .lk-libx[data-lk-tip]::after{content:attr(data-lk-tip);position:absolute;right:0;top:calc(100% + 6px);z-index:90;padding:5px 8px;border-radius:6px;background:#2a2a2e;color:#ececf1;font-size:12px;font-weight:500;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .12s .25s;}
html.lk-new .lk-libx[data-lk-tip]:hover::after{opacity:1;}

/* ONE size along the preview's top row (Lucas 20 Nov: "it feels like 4 sizes all within the same row"): every control 28 px tall, every
   icon 15 px, every word 12.5 px semibold, the same grey; Export is the only filled one */
html.lk-new .rail :is(.lk-lay-btn, #verBtn, #studioSetBtn){width:28px!important;height:28px!important;padding:0!important;display:grid!important;place-items:center;color:#a1a1a8!important;background:transparent!important;}
html.lk-new .rail :is(.lk-lay-btn, #verBtn, #studioSetBtn) svg, html.lk-new .rail .share-btn svg, html.lk-new .rail .export-btn svg{width:15px!important;height:15px!important;}
html.lk-new .rail :is(.ratio-trigger, .share-btn, .export-btn){height:28px!important;font-size:12.5px!important;font-weight:600!important;}
html.lk-new .rail .ratio-trigger .chev{width:13px!important;height:13px!important;}
html.lk-new .rail :is(#verBtn, #studioSetBtn).active, html.lk-new .rail :is(#verBtn, #studioSetBtn)[aria-expanded="true"]{color:#fff!important;}

/* My media · Explore · Create: words printed on the panel, squarer, no fill and no hover change; the picked one gets a 1 px outline */
html.lk-new #libScope > button, html.lk-new #libScope > button:hover{background:transparent!important;border:1px solid transparent!important;border-radius:6px!important;color:#8b8b93!important;box-shadow:none!important;}
html.lk-new #libScope > button.active, html.lk-new #libScope > button.active:hover{border-color:rgba(255,255,255,.5)!important;color:#fff!important;background:transparent!important;}

/* ===== G (Lucas 20 Nov, picked from "00 Lukie - studio top row options.html"): Ink for the left icons + the kinds (grey words, the picked one
   white + bold, no fills), Hairline for My media · Explore · Create (above), and the preview's top row:
   [16:9 in a small ratio box] [↗ Share – outlined] [⤓ Export – filled]  then plain icons: Layout · Versions · Settings ===== */
html.lk-new .side-rail .tool{color:#8b8b93!important;font-weight:500!important;background:transparent!important;}
html.lk-new .side-rail .tool:hover{color:#fff!important;background:transparent!important;}
html.lk-new .side-rail .tool.active{color:#fff!important;font-weight:700!important;background:transparent!important;}
html.lk-new #libChips > button, html.lk-new #libChips > button:hover{background:transparent!important;box-shadow:none!important;border:0!important;color:#8b8b93!important;font-weight:500!important;}
html.lk-new #libChips > button:hover{color:#fff!important;}
html.lk-new #libChips > button.active, html.lk-new #libChips > button.on{background:transparent!important;color:#fff!important;font-weight:700!important;}
/* the top row's order: ratio · Share · Export · Layout · Versions · Settings */
html.lk-new .rail #ratioDD{order:1;} html.lk-new .rail #shareBtn{order:2;} html.lk-new .rail #exportBtn{order:3;} html.lk-new .rail .lk-lay-btn{order:4;margin-left:4px;} html.lk-new .rail .st-dd{order:5;}
html.lk-new .rail #ratioBtn{height:22px!important;padding:0 6px!important;margin-right:6px;border:1.5px solid currentColor!important;border-radius:5px!important;font-size:11px!important;font-weight:700!important;letter-spacing:.01em;color:#a1a1a8!important;background:transparent!important;}
html.lk-new .rail #ratioBtn:hover, html.lk-new .rail #ratioDD.open #ratioBtn{color:#fff!important;}
html.lk-new .rail #ratioBtn :is(.ratio-glyph,.chev){display:none!important;}
html.lk-new .rail #shareBtn{border:1px solid rgba(255,255,255,.22)!important;border-radius:6px!important;margin-right:6px!important;}
html.lk-new .rail #shareBtn:hover, html.lk-new:has(body > .share-pop) .rail #shareBtn{border-color:rgba(255,255,255,.5)!important;color:#fff!important;}
/* the picked Ink item lights up in the site's yellow (Lucas 20 Nov: "make the selected one light up yellow … my yellow on site") –
   the left icons and the kinds row; the time under the preview uses the same yellow */
html.lk-new .side-rail .tool.active, html.lk-new #libChips > button.active, html.lk-new #libChips > button.on{color:#f5c84c!important;}
/* the left bar's Library lights up for EVERY kind (Lucas 20 Nov: "why does this light up library by itself only on image") – the visible
   Library button is the Image / Video tool, and All · Voice · Music · SFX · Create are hidden tools of their own */
html.lk-new .side-rail:has(.tool.active:is([data-tool="all"],[data-tool="voice"],[data-tool="music"],[data-tool="sfx"],[data-tool="gen"])) .tool[data-tool="media"]{color:#f5c84c!important;font-weight:700!important;}
/* the one floating tooltip (layout-e.js) – the kit's tooltip: #2a2a2e, 12 px, 6 px corners; the old in-place ones are switched off */
html.lk-new :is([data-tip],[data-lk-tip])::after{display:none!important;content:none!important;}
.lk-ftip{position:fixed;z-index:2147483646;left:0;top:0;padding:5px 8px;border-radius:6px;background:#2a2a2e;color:#ececf1;font:500 12px/1.2 'DM Sans',system-ui,sans-serif;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .1s;box-shadow:0 6px 18px rgba(0,0,0,.4);}
.lk-ftip.on{opacity:1;}

/* small icon buttons: no grey box on hover – the icon just turns white (Lucas 20 Nov: "things like this too", the voice list's ▶ –
   the same as the top row). Text buttons, tiles, rows and menus keep their hover fills. */
html.lk-new :is(#gpkList .vr-play, #gpkList .vr-use, .vr-play, .lk-chat-x, .lk-side-btn, .lk-drawer .lk-dh button, .lk-a2p-x, .vo-exp, .gpk-x,
  .tl-tool, .lk-pbar .tl-tool, .rail .st-btn, .rail .lk-lay-btn, .ed-fold-btn, .tear-dock, .ed-dock-btn, .lk-libx, .insp-back, .sp-back, .pj-btn, .ag-x):hover{background:transparent!important;color:#fff!important;}
html.lk-new :is(#gpkList .vr-play, .vr-play){color:#d4d4d8;}

/* (Lucas 20 Nov) 1. My media · Explore · Create: the picked one in the site yellow (words + outline), like the kinds and the left icons */
html.lk-new #libScope > button.active, html.lk-new #libScope > button.active:hover{color:#f5c84c!important;border-color:rgba(245,200,76,.65)!important;}
/* 2. the preview's top bar (and the chat's): the same colour as its box – no lighter band; a hairline under it like Details */
html.lk-new{--lk-head:var(--lk-box);}
html.lk-new .stage::before{background:var(--lk-line)!important;}
html.lk-new .ai-head{background:var(--lk-box)!important;box-shadow:none!important;border-bottom:1px solid var(--lk-line)!important;}
/* 3. the gold spend buttons a little squarer (5 px) */
html.lk-new :is(#genGo, #spGo, #csGo, .gen-go, .ext-go, .lr-btn.pri.spend, .lr-btn.pri[data-lr="gen"], .cap-go, .sc-gen){border-radius:5px!important;}
/* 4. Export in the far corner as a split button – [⤓ Export | ⌄] – the ⌄ holds Share (and later more export settings); Share leaves the row */
html.lk-new .rail #shareBtn{display:none!important;}
html.lk-new .rail .lk-lay-btn{order:6!important;} html.lk-new .rail .st-dd{order:7!important;}
html.lk-new .rail #exportBtn{order:9!important;margin-left:8px;border-radius:6px 0 0 6px!important;}
html.lk-new .rail .lk-exp-more{order:10;margin-left:-4px;height:28px;width:24px;display:grid;place-items:center;padding:0;border:0;border-radius:0 6px 6px 0;background:#f2f2f4;color:#0b0b0c;border-left:1px solid rgba(0,0,0,.14);cursor:pointer;}
html.lk-new .rail .lk-exp-more:hover{background:#fff;} html.lk-new .rail .lk-exp-more svg{width:13px;height:13px;}
html.lk-new .rail .lk-exp-more[aria-expanded="true"] svg{transform:rotate(180deg);}
html.lk-new .rail #exportBtn:disabled + .lk-exp-more, html.lk-new .rail #exportBtn[disabled] ~ .lk-exp-more{opacity:.55;}

/* skeletons (layout-e.js marks a tile .lk-ld when its picture is ready): a soft shimmer until then, then the picture fades in */
@keyframes lkSkel{0%{background-position:100% 0}100%{background-position:-100% 0}}
html.lk-new :is(.clip-card, .pj-th, .vr-pic, .gi-tile.filled):has(img, video):not(.lk-ld){background:linear-gradient(100deg, #1c1c1f 30%, #26262a 50%, #1c1c1f 70%) 0 0/200% 100%!important;animation:lkSkel 1.3s ease-in-out infinite;}
html.lk-new :is(.clip-card, .pj-th, .vr-pic, .gi-tile.filled) :is(img, video){transition:opacity .25s ease;}
html.lk-new :is(.clip-card, .pj-th, .vr-pic, .gi-tile.filled):not(.lk-ld) :is(img, video){opacity:0;}
@media (prefers-reduced-motion: reduce){ html.lk-new :is(.clip-card, .pj-th, .vr-pic, .gi-tile.filled):not(.lk-ld){animation:none;} }

/* Generate the Image page's way (Lucas 20 Nov): the price in grey, then a round gold ↑ – grey until something is typed in the box */
html.lk-new .gen-dock .gen-foot{display:flex;align-items:center;justify-content:flex-end;gap:12px;}
html.lk-new .gen-dock .gen-cost-foot{display:inline!important;font-size:13px!important;font-weight:500!important;color:#8b8b93!important;font-variant-numeric:tabular-nums;}
html.lk-new .gen-dock #genGo{width:36px!important;height:36px!important;min-width:36px;padding:0!important;border-radius:50%!important;font-size:0!important;color:transparent!important;flex:none!important;position:relative;}
html.lk-new .gen-dock #genGo::after{content:"";position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E") center/17px no-repeat;}
html.lk-new .gen-dock #genGo.lk-empty{background:#26262a!important;box-shadow:none!important;}
html.lk-new .gen-dock #genGo.lk-empty::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d5d64' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E");}
html.lk-new .gen-dock #genGo:disabled::after{opacity:.5;}

/* the big gold spend buttons = the main site's gold pill ("Top up to Generate" / "Subscribe to Generate", credit-gate.css) – a full pill,
   the radial gold and its inner light (Lucas 20 Nov: "for the big ones just use this"). The round ↑ in the Create box stays round. */
html.lk-new :is(#spGo, #csGo, .ext-go, .lr-btn.pri.spend, .lr-btn.pri[data-lr="gen"], .cap-go, .sc-gen, .gen-go:not(#genGo), .kb-prev.ext-go){
  border-radius:999px!important;border:none!important;color:#1d1600!important;font-weight:600!important;
  background:radial-gradient(at 50% 110%, rgb(252, 214, 92) 33%, rgba(240, 190, 40, 0.92) 66%, rgba(214, 160, 22, 0.9) 100%)!important;
  box-shadow:inset 0 1px 8px -3px rgba(255, 250, 225, 0.95), inset -3px -5px 2px -4px rgba(255, 246, 210, 0.95), inset 3px 5px 2px -4px rgba(255, 250, 230, 1), inset 0 -2px 4px -1px rgba(140, 95, 10, 0.45), 0 3px 12px rgba(233, 185, 35, 0.22)!important;}
html.lk-new :is(#spGo, #csGo, .ext-go, .lr-btn.pri.spend, .lr-btn.pri[data-lr="gen"], .cap-go, .sc-gen, .gen-go:not(#genGo)):hover:not(:disabled){filter:brightness(1.04);
  box-shadow:0 0 11px 1px rgba(250, 205, 70, 0.4), inset 0 1px 8px -3px rgba(255, 250, 225, 0.95), inset -3px -5px 2px -4px rgba(255, 246, 210, 0.95), inset 3px 5px 2px -4px rgba(255, 250, 230, 1), inset 0 -2px 4px -1px rgba(140, 95, 10, 0.45)!important;}
html.lk-new .gen-dock #genGo:not(.lk-empty){background:radial-gradient(at 50% 110%, rgb(252, 214, 92) 33%, rgba(240, 190, 40, 0.92) 66%, rgba(214, 160, 22, 0.9) 100%)!important;
  box-shadow:inset 0 1px 8px -3px rgba(255, 250, 225, 0.95), inset -3px -5px 2px -4px rgba(255, 246, 210, 0.95), inset 3px 5px 2px -4px rgba(255, 250, 230, 1), inset 0 -2px 4px -1px rgba(140, 95, 10, 0.45), 0 3px 12px rgba(233, 185, 35, 0.22)!important;}

/* (Lucas 20 Nov) the Library's head: no "Show" / "What to make" words – the line between the tabs and the kinds is a fading divider
   (clear at both ends, like the main site's sidebar line); the ⤢ sits in the search row now */
html.lk-new .panel .lk-div{font-size:0!important;height:1px!important;flex:1 0 100%;margin:2px 0;background:linear-gradient(90deg, transparent, rgba(255,255,255,.12) 18%, rgba(255,255,255,.12) 82%, transparent)!important;}
html.lk-new .panel .lk-div::before, html.lk-new .panel .lk-div::after{display:none!important;}
html.lk-new .lib-tools .lk-libx{position:static!important;margin:0!important;width:34px!important;height:34px!important;border-radius:8px;background:var(--lk-fill)!important;color:var(--text-secondary);flex:none;}
html.lk-new .lib-tools .lk-libx:hover{color:#fff!important;}
/* (the slim drop-box row was tried 20 Nov and taken back on Lucas's word – the big block stays) */
/* "+ New" at the top of the left icons – lit (yellow) while the welcome screen shows; the Library then isn't */
html.lk-new .side-rail .lk-new-tool{margin-bottom:2px;}
html.lk-new body.panel-home .side-rail .lk-new-tool{color:#f5c84c!important;font-weight:700!important;}
html.lk-new body.panel-home .side-rail .tool:is(.active,[data-tool="media"]):not(#railNew):not(#lk-x){color:#8b8b93!important;font-weight:500!important;}   /* (:not(#…) outranks the "Library lights for every kind" rule) */
html.lk-new body.panel-home #libChips > button:is(.active,.on){color:#8b8b93!important;font-weight:500!important;}   /* on the welcome screen only "+ New" is lit */

/* no flash on a refresh (Lucas 20 Nov): the Library panel's insides and the preview's top row stay hidden until Studio has set them up
   (the page adds .lk-ready), then fade in – they used to show the old "Library" head and the library grid for a split second */
html.lk-new:not(.lk-ready) :is(.app-main .panel > *, .rail, .side-rail > *){visibility:hidden;}
html.lk-new :is(.app-main .panel > *, .rail, .side-rail > *){transition:opacity .15s ease;}
html.lk-new:not(.lk-ready) :is(.app-main .panel > *, .rail, .side-rail > *){opacity:0;}
html.lk-new .rail .tb-pen{cursor:pointer!important;color:#8b8b93;pointer-events:auto;} html.lk-new .rail .tb-pen:hover{color:#fff;}   /* the ✎ renames the edit */

/* the uploads icon at the start of the kinds row (your uploads, the Upload tile first) – My media only; a narrow icon-only chip */

/* Studio's sidebar = the main site's (items, icons, CREATE / WORKSPACE groups), Studio picked */
.lk-drawer .lk-di svg{width:20px;height:20px;flex:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;}
.lk-drawer .lk-di.is-on{background:#232327;color:#fff;font-weight:600;}
.lk-drawer .lk-di-new svg{stroke:none;} .lk-drawer .lk-di-new svg path{stroke:#1d1600!important;stroke-width:2.4;stroke-linecap:round;}   /* the dark + on the gold square (the site sets it in its style) */
.lk-drawer .lk-dhr{border:0;height:1px;margin:10px 10px 4px;background:rgba(255,255,255,.08);}
.lk-drawer .lk-dl{font-size:11px!important;letter-spacing:.06em;margin:10px 10px 6px!important;}
/* the dividers = the main site's sidebar line exactly (legacy-video.css .nav-divider): brightest in the middle, fading to nothing at both ends */
.lk-drawer .lk-dhr{height:1px!important;margin:12px 0!important;background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%)!important;}
html.lk-new .panel .lk-div{background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%)!important;}

/* loading cover (Lucas 20 Nov: "let the page load if it needs with a spinner while it sorts out"): from the first paint Studio sits behind
   a black cover with Lukie's spinner; once it has laid itself out (.lk-ready) the cover fades away – no jumping panels on a refresh */
@keyframes lkSpin{to{transform:rotate(360deg)}}
html.lk-new::before{content:"";position:fixed;inset:0;z-index:2147483000;background:#000;opacity:0;pointer-events:none;transition:opacity .3s ease;}
html.lk-new::after{content:"";position:fixed;left:50%;top:50%;width:26px;height:26px;margin:-13px 0 0 -13px;z-index:2147483001;border-radius:50%;
  border:2.5px solid rgba(255,255,255,.14);border-top-color:#f5c84c;animation:lkSpin .8s linear infinite;opacity:0;pointer-events:none;transition:opacity .2s ease;}
html.lk-new:not(.lk-ready)::before, html.lk-new:not(.lk-ready)::after{opacity:1;pointer-events:auto;}
/* the sidebar's rows get room round them (Lucas 20 Nov: "gaps between hover is too close to the one above") – a 3 px gap, so each hover sits on its own */
.lk-drawer .lk-di{height:36px!important;margin:0 0 3px!important;}
.lk-drawer .lk-dhr + .lk-dl{margin-top:2px!important;}

/* the timeline's track labels like CapCut's (Lucas 20 Nov: "add icons on the left timeline to clean it"): ONE row – the kind's icon, then
   lock · eye · sound – no "Video" / "Audio" words (the name shows on hover); quiet grey icons that turn white on hover, an "on" one stays white */
html.lk-new .track-label{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;padding:0 8px 0 12px!important;}
html.lk-new .track-label .trk-head{gap:0!important;flex:none;} html.lk-new .track-label .trk-head span{display:none!important;}
html.lk-new .track-label .trk-head svg{width:15px!important;height:15px!important;color:#8b8b93!important;}
html.lk-new .track-label .trk-head{margin-right:4px;padding-right:9px;border-right:1px solid rgba(255,255,255,.08);height:16px;align-items:center;}
html.lk-new .track-label .trk-ctrls{display:flex!important;align-items:center;gap:2px!important;margin:0!important;}
html.lk-new .track-label .trk-ic{width:22px!important;height:22px!important;display:grid!important;place-items:center;padding:0!important;border:0!important;background:transparent!important;color:#6f6f77!important;border-radius:5px;}
html.lk-new .track-label .trk-ic svg{width:14px!important;height:14px!important;}
html.lk-new .track-label .trk-ic:hover{color:#fff!important;} html.lk-new .track-label .trk-ic.on{color:#f5c84c!important;}
html.lk-new .track-label{gap:4px!important;padding:0 6px 0 10px!important;}
html.lk-new .track-label .trk-head{margin-right:2px!important;padding-right:6px!important;}
html.lk-new .track-label .trk-ctrls{gap:0!important;} html.lk-new .track-label .trk-ic{width:21px!important;}
/* the loading spinner bigger and white (Lucas 20 Nov) */
html.lk-new::after{width:40px!important;height:40px!important;margin:-20px 0 0 -20px!important;border-width:3px!important;border-color:rgba(255,255,255,.12)!important;border-top-color:#fff!important;}

/* the search row on a narrow Library (Lucas 20 Nov, sidebar open: the search box was crushed to a square): the "Uploads ×" pill goes – the
   lit uploads icon in the kinds row says it now; the search never gets narrower than 120 px – the row wraps before that */
html.lk-new .lib-tools{flex-wrap:wrap;row-gap:6px;}
html.lk-new .lib-tools .lib-search{min-width:120px!important;flex:1 1 120px!important;}

/* the sidebar peeking (layout-e.js): it floats over the page from the left, nothing moves; a soft shadow on its right */
@keyframes lkPeek{from{transform:translateX(-12px);opacity:0}to{transform:none;opacity:1}}
html.lk-new.lk-side-peek:not(.lk-side-on) .lk-drawer{display:flex;flex-direction:column;position:fixed;z-index:10060;left:calc(var(--lk-gap) + 82px);top:var(--lk-gap);bottom:var(--lk-gap);width:232px;box-sizing:border-box;padding:8px;
  border-radius:var(--lk-r);background:var(--lk-box);box-shadow:12px 0 40px rgba(0,0,0,.55);animation:lkPeek .16s ease-out;}
html.lk-new.lk-side-peek:not(.lk-side-on) .lk-drawer .lk-dh{cursor:pointer;}   /* a click here locks it open */

/* the left icon strip's picked item in WHITE (Lucas 20 Nov) – the yellow stays on My media · Explore · Create and the kinds */
html.lk-new .side-rail .tool.active, html.lk-new body.panel-home .side-rail .lk-new-tool,
html.lk-new .side-rail:has(.tool.active:is([data-tool="all"],[data-tool="voice"],[data-tool="music"],[data-tool="sfx"],[data-tool="gen"])) .tool[data-tool="media"]{color:#fff!important;}

/* Script's top row (Lucas 20 Nov: "fix this row"): the search and the Audio track picker one height (36 px), one fill, no outlines, 8 px corners;
   the Voiceover · Pronunciations switch the full width above them */
html.lk-new .sc-top{gap:6px!important;margin-bottom:14px!important;}
html.lk-new .sc-top .sc-find, html.lk-new #scTrackW .fs-btn{height:36px!important;border:0!important;border-radius:8px!important;background:var(--lk-fill)!important;box-shadow:none!important;}
html.lk-new #scTrackW .fs-btn{padding:0 12px!important;font-size:12.5px!important;font-weight:600!important;color:var(--text-secondary)!important;gap:8px;}
html.lk-new #scTrackW .fs-btn:hover{color:#fff!important;}
html.lk-new .sc-seg{width:100%!important;display:flex!important;}
html.lk-new .sc-seg > button{flex:1;}
/* the sidebar peek covers the WHOLE left (no gap); a click on its top bar locks it open */
html.lk-new.lk-side-peek:not(.lk-side-on) .lk-drawer{left:var(--lk-gap)!important;}
html.lk-new .sc-top{align-items:stretch!important;} html.lk-new #scTrackW{display:flex!important;align-items:center;height:36px;margin:0!important;padding:0!important;} html.lk-new .sc-top .sc-find{margin:0!important;}
html.lk-new .view > .sc-seg, html.lk-new #scSeg{max-width:none!important;width:100%!important;box-sizing:border-box;}

/* the price beside each gold button (layout-e.js) – small grey words, like the Create box; Script's lines drop the "N cr" inside */
.lk-price{display:inline-flex;align-items:center;align-self:center;margin-right:10px;font-size:12.5px;font-weight:500;color:#8b8b93;white-space:nowrap;font-variant-numeric:tabular-nums;}
html.lk-new .sc-gen > b{display:none!important;}
html.lk-new .lk-cost-in{display:none!important;}

/* ⬆ Import (layout-e.js): white, first in My media's search row; only on My media's lists */
.lk-import{display:none;}
html.lk-new .panel.scope-mine:not(.ph-gen) .lib-tools .lk-import{display:inline-flex;align-items:center;gap:6px;flex:none;height:34px;padding:0 12px;border:0;border-radius:8px;background:#f2f2f4;color:#0b0b0c;font:inherit;font-size:13px;font-weight:700;cursor:pointer;}
html.lk-new .lib-tools .lk-import:hover{background:#fff;}
html.lk-new .lib-tools .lk-import svg{width:14px;height:14px;}
html.lk-new .lib-tools #libInEdit{white-space:nowrap;}
/* the welcome screen: no search / sort / In this edit / ⤢ – they have nothing to act on there (Lucas 20 Nov) */
html.lk-new body.panel-home .panel .lib-tools{display:none!important;}
html.lk-new .lib-tools{flex-wrap:nowrap!important;}
html.lk-new .lib-tools .lib-search{min-width:80px!important;flex:1 1 80px!important;}
html.lk-new .lib-tools.lk-ups #libInEdit{display:none!important;}   /* in your uploads "In this edit" has nothing to filter – the row stays on one line */

/* Script: Add line + Generate all on one row; a line being made shimmers like every other make (Lucas 20 Nov) */
html.lk-new .sc-foot{display:flex;align-items:center;gap:8px;margin-top:4px;}
html.lk-new .sc-foot .sc-add{margin:0!important;}
html.lk-new .sc-foot .lk-price{margin-left:auto;}
html.lk-new #scGenAll{height:34px;padding:0 16px;border:none;border-radius:999px;font:inherit;font-size:13px;font-weight:600;color:#1d1600;cursor:pointer;
  background:radial-gradient(at 50% 110%, rgb(252, 214, 92) 33%, rgba(240, 190, 40, 0.92) 66%, rgba(214, 160, 22, 0.9) 100%);
  box-shadow:inset 0 1px 8px -3px rgba(255, 250, 225, 0.95), inset -3px -5px 2px -4px rgba(255, 246, 210, 0.95), inset 3px 5px 2px -4px rgba(255, 250, 230, 1), inset 0 -2px 4px -1px rgba(140, 95, 10, 0.45), 0 3px 12px rgba(233, 185, 35, 0.22);}
html.lk-new #scGenAll:disabled{opacity:.6;cursor:default;} html.lk-new #scGenAll[hidden]{display:none!important;}
html.lk-new .sc-foot .lk-price + #scGenAll, html.lk-new .sc-foot #scGenAll:only-of-type{margin-left:0;}
html.lk-new .sc-line.is-making{position:relative;}
html.lk-new .sc-line.is-making .sc-text{background:linear-gradient(100deg, transparent 30%, rgba(255,255,255,.05) 50%, transparent 70%) 0 0/200% 100%;animation:lkSkel 1.3s ease-in-out infinite;border-radius:6px;}
html.lk-new .sc-gen .mk-spin{border-color:rgba(29,22,0,.25);border-top-color:#1d1600;width:12px;height:12px;}
html.lk-new .sc-foot .sc-add{margin-right:auto!important;} html.lk-new .sc-foot .lk-price{margin-left:0!important;}   /* price + Generate all always sit right */

/* the closed chat = a floating "✦ Lukie" pill in the bottom-right corner (layout-e.js moves the button there) */
html.lk-new.lk-chat-off .lk-chat-open.lk-chat-fab{position:fixed!important;right:18px;bottom:18px;z-index:70;display:inline-flex!important;align-items:center;gap:8px;height:40px;padding:0 16px 0 13px!important;margin:0!important;
  border:0!important;border-radius:999px!important;background:#232327!important;color:#ececf1!important;font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08)!important;}
html.lk-new.lk-chat-off .lk-chat-open.lk-chat-fab:hover{background:#2c2c31!important;}
html.lk-new .lk-chat-open.lk-chat-fab svg{width:17px;height:17px;color:#f5c84c;}
html.lk-new:not(.lk-chat-off) .lk-chat-open.lk-chat-fab{display:none!important;}

/* the model menu: a brand's versions read as its sub-list (Lucas 20 Nov) – indented under the brand, a thin guide line on their left,
   smaller names, the open brand shaded so the group holds together */
html.lk-new .mm-row.mm-brand.is-open{background:rgba(255,255,255,.05)!important;}
html.lk-new .mm-row.is-ver{position:relative;margin-left:26px!important;width:calc(100% - 26px)!important;min-height:48px!important;padding:8px 12px 8px 14px!important;}
html.lk-new .mm-row.is-ver::before{content:"";position:absolute;left:-9px;top:-2px;bottom:-2px;width:1.5px;border-radius:1px;background:rgba(255,255,255,.14);}
html.lk-new .mm-row.is-ver .mm-name{font-size:13px!important;}
html.lk-new .mm-row.is-ver .mm-name small{font-size:11.5px!important;}
html.lk-new .mm-row.is-ver.is-on::before{background:#f5c84c;width:2px;}
html.lk-new .lk-chat-open.lk-chat-fab svg{display:block!important;}
html.lk-new .lk-ld-now :is(img, video){transition:none!important;}   /* seen before: no fade on a redraw */
/* the aspect-ratio box the same size as the icons beside it (Lucas 20 Nov): ~16 px tall, in a 28 px button like them */
html.lk-new .rail #ratioDD{display:grid;place-items:center;height:28px;}
html.lk-new .rail #ratioBtn{height:16px!important;min-width:0!important;padding:0 3px!important;margin:0 6px!important;border-width:1.5px!important;border-radius:4px!important;font-size:9.5px!important;line-height:1!important;letter-spacing:0!important;}
html.lk-new .rail #ratioBtn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:0!important;box-sizing:border-box;}
html.lk-new .rail #ratioBtn .ratio-label{display:block;line-height:1;margin:0!important;padding:0!important;}
html.lk-new .rail #ratioBtn .ratio-label{position:static;text-box:trim-both cap alphabetic;}   /* centred by the digits themselves, not the font's spacing (Lucas 21 Nov: the 1 px nudge for Linux left it 1 px LOW on his Windows) */
/* the kinds row: all six always fit, sharing the width evenly (Lucas 20 Nov: Music / SFX only showed on a wide panel) – no arrows needed */
html.lk-new:not(.lk-chips-tight) #libChips{overflow:visible!important;gap:2px!important;}
html.lk-new:not(.lk-chips-tight) #libChips > button{flex:1 1 0!important;min-width:0!important;padding-left:2px!important;padding-right:2px!important;}
html.lk-new:not(.lk-chips-tight) .lk-cha{display:none!important;}
/* a narrow panel (each kind under 54 px): back to the scrolling row with its arrow */
html.lk-new.lk-chips-tight #libChips > button{flex:0 0 58px!important;}
html.lk-new .hp-t{flex-basis:200px!important;min-height:100px!important;}   /* the welcome's drop box 20 px shorter (Lucas 20 Nov) */
/* the welcome's drop box (Lucas 20 Nov): no "or start with one of these" line, and it never squashes below its own words – on a short
   window the squares under it scroll instead */
html.lk-new.lk-tl-empty .hp-t::after{content:none!important;display:none!important;}
html.lk-new .hp-t{flex-shrink:1!important;min-height:118px!important;padding-top:14px!important;padding-bottom:14px!important;}
/* My media · Explore · Create in Ink (Lucas 20 Nov): plain words, the picked one white + bold – no outline, no yellow */
html.lk-new #libScope > button, html.lk-new #libScope > button:hover{border-color:transparent!important;font-weight:500!important;}
html.lk-new #libScope > button.active, html.lk-new #libScope > button.active:hover{color:#fff!important;border-color:transparent!important;font-weight:700!important;}
html.lk-new #libScope > button.active, html.lk-new #libScope > button.active:hover{border-color:rgba(255,255,255,.5)!important;}   /* + the 1 px white hairline round the picked one (Lucas 20 Nov) */
/* the welcome screen sits snug under the kinds (Lucas 20 Nov: "bring these up a bit closer") – it starts at the top, smaller gaps */
html.lk-new #homePane{padding-top:4px!important;justify-content:flex-start!important;}
html.lk-new .hp-t{margin-bottom:10px!important;}
html.lk-new .hp-or{margin-bottom:10px!important;}

/* the Uploads tab (left strip, under New): lit white while open (Library isn't); in it the tabs row hides (it's its own place), "All" hides
   (uploads live per kind), the Import button shows – and it leaves My media, which is now just what you made on Lukie; "Uploads ×" is gone */
html.lk-new.lk-up-mode .side-rail .lk-up-tool{color:#fff!important;font-weight:700!important;}
html.lk-new.lk-up-mode .side-rail .tool:is(.active,[data-tool="media"]):not(#railUploads):not(#lk-x):not(#lk-y){color:#8b8b93!important;font-weight:500!important;}
html.lk-new.lk-up-mode #libScope, html.lk-new.lk-up-mode .panel .lk-div, html.lk-new.lk-up-mode #libChips > button[data-kind="all"]{display:none!important;}
html.lk-new #libSrcPill{display:none!important;}
html.lk-new .panel.scope-mine:not(.ph-gen) .lib-tools .lk-import{display:none!important;}
html.lk-new.lk-up-mode .panel.scope-mine:not(.ph-gen) .lib-tools .lk-import.lk-import{display:inline-flex!important;}
html.lk-new.lk-up-mode .lib-tools #libInEdit{display:none!important;}

/* prices never wrap or squeeze (Lucas 20 Nov: "1 credit" broke onto two lines) */
.lk-price{flex-shrink:0!important;white-space:nowrap!important;}
/* Script's line buttons = the round gold ↑ (like the Create box and the main site's bars), the price on one line beside it; "On timeline" /
   "Making…" keep their words */
html.lk-new .sc-gen:not(.done):not(:disabled){width:32px!important;min-width:32px;height:32px!important;padding:0!important;border-radius:50%!important;justify-content:center;flex-shrink:0;position:relative;}
html.lk-new .sc-gen:not(.done):not(:disabled) > :is(span,i,b){display:none!important;}
html.lk-new .sc-gen:not(.done):not(:disabled)::after{content:"";width:15px;height:15px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1600' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E") center/contain no-repeat;}
html.lk-new .sc-gen:is(.done,:disabled){flex-shrink:0;white-space:nowrap;}
html.lk-new .sc-line .sc-row{flex-wrap:nowrap!important;min-width:0;}

/* the Create box toned down (Lucas 20 Nov): Model | Length side by side, Match | Lyrics under them on Music, even gaps, lyrics tools only on Custom */
html.lk-new .lk-g2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;}
html.lk-new .lk-g2.lk-one > .gen-row:first-child{grid-column:1/-1;}
html.lk-new .lk-g2 > .gen-row, html.lk-new .lk-g2 .gen-dd, html.lk-new .lk-g2 #genDurBtn{min-width:0;width:100%;}
html.lk-new .lk-g2 .gen-select{padding:0 12px!important;}
html.lk-new .lk-gbox{min-height:var(--lk-row-h);text-align:left;font:inherit;font-size:13px;font-weight:600;color:var(--text-primary);border:0;cursor:pointer;}
html.lk-new .lk-gbox[hidden]{display:none!important;}
html.lk-new .lk-gbox > i{font-style:normal;font-weight:500;color:var(--text-muted);flex-shrink:0;}
html.lk-new .lk-gbox > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html.lk-new #genMatch:has(> .gm-mrow){display:none!important;}
html.lk-new #genLyrRow{display:none!important;}
html.lk-new:not([data-lk-lyr="custom"]) #genLyrTools{display:none!important;}
html.lk-new #genProps{margin-top:0!important;order:1;}
.lk-gmenu .lk-addrow{position:relative;padding-right:30px;}
.lk-gmenu .lk-gtick{position:absolute;right:10px;top:50%;width:15px;height:15px;margin-top:-7.5px;color:#fff;}
html.lk-new .gen-panel > :is(#genLyrTools, #genLyrics){order:0!important;}
html.lk-new .lk-g2 #genModelLabel{display:flex;align-items:center;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html.lk-new .gen-box .gen-prompt{min-height:56px!important;}
html.lk-new #giRow .gi-tile.lk-add{width:40px!important;height:40px!important;min-height:0!important;}
html.lk-new .lk-g2:not(.lk-one) #genModelBtn::before{display:none;}   /* half width: the logo + name say it (no "Model" word) – "ElevenLabs SFX" was cut */

/* ✦T in the prompt box (Turn into a prompt · 1 credit) – replaces the old mock-up wand; sits left of ⤢ */
html.lk-new .lk-a2p-btn{display:none!important;}
.lk-tp-btn{display:none;}
html.lk-new .lk-tp-btn{display:grid;place-items:center;position:absolute;right:38px;bottom:6px;z-index:2;width:28px;height:28px;border:0;border-radius:7px;background:transparent;color:var(--text-secondary);cursor:pointer;padding:0;}
html.lk-new .lk-tp-btn:hover{background:var(--lk-fill-hi);color:#fff;}
html.lk-new .lk-tp-btn svg{width:17px;height:17px;}
html.lk-new .gen-box.lk-tp-busy .gen-prompt::placeholder{color:transparent;background:linear-gradient(90deg,#8b8b93 0%,#fff 50%,#8b8b93 100%) 0 0/200% 100%;-webkit-background-clip:text;background-clip:text;animation:lkTpShine 1.4s linear infinite;}
@keyframes lkTpShine{to{background-position:-200% 0;}}
.lk-tp-bg{position:fixed;inset:0;z-index:10090;display:none;align-items:center;justify-content:center;padding:28px;background:rgba(0,0,0,.6);}
.lk-tp-bg.open{display:flex;}
.lk-tp{display:flex;flex-direction:column;width:min(1180px,100%);height:min(820px,100%);padding:18px 18px 0;border-radius:8px;background:#141416;box-shadow:0 24px 80px rgba(0,0,0,.6);color:#ececf1;font-family:'DM Sans',system-ui,sans-serif;}
.lk-tp.drag{box-shadow:0 0 0 2px #fff,0 24px 80px rgba(0,0,0,.6);}
.lk-tp-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.lk-tp-h b{font-size:16px;font-weight:700;}
.lk-tp-x{width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:#a1a1a8;cursor:pointer;}
.lk-tp-x:hover{background:#26262a;color:#fff;} .lk-tp-x svg{width:17px;height:17px;}
.lk-tp-q{display:flex;align-items:center;gap:10px;height:40px;padding:0 14px;border-radius:8px;background:#1c1c1f;color:#8b8b93;}
.lk-tp-q svg{width:16px;height:16px;flex:none;} .lk-tp-q input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#ececf1;font:inherit;font-size:14px;}
.lk-tp-tabs{display:flex;gap:6px;margin:14px 0;}
.lk-tp-tabs button{height:32px;padding:0 14px;border:0;border-radius:999px;background:#1c1c1f;color:#ececf1;font:inherit;font-size:13px;font-weight:600;cursor:pointer;}
.lk-tp-tabs button:hover{background:#26262a;} .lk-tp-tabs button.on{background:#fff;color:#111;}
.lk-tp-grid{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px 12px;align-content:start;padding:0 4px 18px 0;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:transparent transparent;}
.lk-tp-grid:hover{scrollbar-color:rgba(255,255,255,.22) transparent;}
.lk-tp-it{display:flex;flex-direction:column;align-items:stretch;gap:2px;min-width:0;padding:0;border:0;background:transparent;color:#ececf1;text-align:left;font:inherit;cursor:pointer;}
.lk-tp-th{position:relative;display:grid;place-items:center;aspect-ratio:16/9;margin-bottom:6px;border-radius:8px;overflow:hidden;background:#1c1c1f;}
.lk-tp-it:hover .lk-tp-th{box-shadow:0 0 0 1px rgba(255,255,255,.5);}
.lk-tp-th img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;}
.lk-tp-play{position:relative;width:46px;height:46px;border-radius:50%;background:#000;display:grid;place-items:center;color:#fff;}
.lk-tp-play svg{width:18px;height:18px;margin-left:2px;}
.lk-tp-n{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.lk-tp-s{font-size:12px;color:#8b8b93;}
.lk-tp-up .lk-tp-th{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px;border:1px dashed rgba(255,255,255,.25);background:transparent;text-align:center;}
.lk-tp-up .lk-tp-th svg{width:20px;height:20px;margin-bottom:4px;} .lk-tp-up b{font-size:13px;} .lk-tp-up small{font-size:11.5px;color:#a1a1a8;line-height:1.35;}
.lk-tp-none{grid-column:1/-1;padding:30px 0;text-align:center;color:#8b8b93;font-size:13px;}

/* Studio's voice list = the Agent page's (Lucas 20 Nov: "use the one from agent page not the full voiceover waveforms"): a compact list –
   orb, name + its line, the flag + accent, ▶ on the right. No waveforms, no category column, no extra Use icon (a tap on a row picks it). */
html.lk-new .gpk.is-voice{width:min(560px,94vw)!important;height:min(680px,88vh)!important;}
html.lk-new .gpk.is-voice :is(.vr-cat, .vr-wave, .vr-use){display:none!important;}
html.lk-new .gpk.is-voice .vr-row{display:flex!important;align-items:center;gap:12px;min-height:58px;padding:8px 12px!important;border-radius:8px;cursor:pointer;}
html.lk-new .gpk.is-voice .vr-row:hover{background:#1c1c1f;}
html.lk-new .gpk.is-voice .vr-orb{flex:none;width:36px;height:36px;}
html.lk-new .gpk.is-voice .vr-orb .vx-orb{width:36px!important;height:36px!important;}
html.lk-new .gpk.is-voice .vr-who{flex:1;min-width:0;order:1;}
html.lk-new .gpk.is-voice .vr-who b, html.lk-new .gpk.is-voice .vr-who span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html.lk-new .gpk.is-voice .vr-lang{order:2;flex:none;display:flex;align-items:center;gap:6px;width:auto!important;font-size:0!important;}
html.lk-new .gpk.is-voice .vr-lang em{font-size:12px;font-style:normal;color:var(--text-muted);}
html.lk-new .gpk.is-voice .vr-play{order:3;flex:none;}
html.lk-new .gpk.is-voice .vr-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;}
html.lk-new .gpk.is-voice{grid-template-rows:minmax(0,1fr)!important;overflow:hidden!important;}
html.lk-new .gpk.is-voice .gpk-main{min-height:0!important;overflow:hidden!important;flex-direction:column;}
html.lk-new .gpk.is-voice #gpkList{flex:1;min-height:0!important;overflow-y:auto!important;}
html.lk-new .lk-g2b{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;order:1;position:relative;}
html.lk-new .lk-g2b > .lk-tagwrap, html.lk-new .lk-g2b > #genProps{position:static!important;min-width:0;}
html.lk-new .lk-g2b:has(#genTags[style*="none"]) > #genProps, html.lk-new .lk-g2b:not(:has(#genTags)) > #genProps{grid-column:1/-1;}
html.lk-new .lk-g2b .lk-tagwrap.lk-open > #genTags, html.lk-new .lk-g2b .gen-props.lk-open #gpRow{left:0!important;right:0!important;top:50px!important;}
html.lk-new .lk-g2b .lk-tagsum, html.lk-new .lk-g2b .lk-sum{grid-template-columns:max-content minmax(0,1fr) 15px!important;}
html.lk-new .lk-g2b .lk-tagsum span, html.lk-new .lk-g2b .lk-sum span{text-align:right!important;justify-self:end;max-width:100%;}

/* TRIAL (Sound effects): the Settings chip inside the prompt box */
html.lk-new.lk-gchip .gen-box{position:relative;padding-bottom:40px!important;}
html.lk-new.lk-gchip .gen-box > #genProps{position:absolute!important;left:6px;bottom:6px;right:76px;margin:0!important;display:block!important;}
html.lk-new.lk-gchip .gen-box > #genProps > .gen-lbl{display:none!important;}
html.lk-new.lk-gchip .gen-box .lk-sum{display:inline-flex!important;width:auto!important;max-width:100%;height:28px!important;padding:0 8px!important;gap:6px!important;border-radius:7px!important;background:transparent!important;font-size:12.5px!important;color:var(--text-secondary)!important;}
html.lk-new.lk-gchip .gen-box .lk-sum:hover, html.lk-new.lk-gchip .gen-box .gen-props.lk-open .lk-sum{background:var(--lk-fill-hi)!important;color:#fff!important;}
html.lk-new.lk-gchip .gen-box .lk-sum b{display:none!important;}
html.lk-new.lk-gchip .gen-box .lk-sum span{font-weight:600!important;text-align:left!important;}
html.lk-new.lk-gchip .gen-box .lk-sum svg{width:13px!important;height:13px!important;}
html.lk-new.lk-gchip .gen-box .gen-props.lk-open #gpRow{position:absolute!important;left:-6px!important;right:-70px!important;top:34px!important;}
/* the chip on every tab, his look ("5s / Loose"): a filled pill, a sliders icon, the words, ⌄; its menu opens UP over the prompt */
html.lk-new.lk-gchip .gen-box .lk-sum{background:#26262a!important;color:#ececf1!important;height:26px!important;padding:0 8px 0 7px!important;border-radius:6px!important;}
html.lk-new.lk-gchip .gen-box .lk-sum:hover, html.lk-new.lk-gchip .gen-box .gen-props.lk-open .lk-sum{background:#303035!important;}
html.lk-new.lk-gchip .gen-box .lk-sum::before{content:"";flex:none;width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h9M17 7h3M4 17h3M11 17h9'/%3E%3Ccircle cx='15' cy='7' r='2'/%3E%3Ccircle cx='9' cy='17' r='2'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h9M17 7h3M4 17h3M11 17h9'/%3E%3Ccircle cx='15' cy='7' r='2'/%3E%3Ccircle cx='9' cy='17' r='2'/%3E%3C/svg%3E") center/contain no-repeat;}
html.lk-new.lk-gchip .gen-box .lk-sum span{color:#ececf1!important;}
html.lk-new.lk-gchip .gen-box .gen-props.lk-open #gpRow{top:auto!important;bottom:32px!important;}
html.lk-new .lk-g2b:not(:has(> #genProps)) > .lk-tagwrap{grid-column:1/-1;}
html.lk-new .lk-g2b:not(:has(> #genProps)):has(#genTags[style*="none"]){display:none;}
/* the chip = plain, like his example: no fill, no outline, no hover change (Lucas 20 Nov) */
html.lk-new.lk-gchip .gen-box .lk-sum, html.lk-new.lk-gchip .gen-box .lk-sum:hover, html.lk-new.lk-gchip .gen-box .gen-props.lk-open .lk-sum{background:transparent!important;box-shadow:none!important;border:0!important;outline:0!important;padding:0 4px!important;}
html.lk-new.lk-gchip .gen-box .lk-sum span{font-weight:500!important;color:#d4d4d9!important;}
html.lk-new.lk-gchip .gen-box .lk-sum, html.lk-new.lk-gchip .gen-box .lk-sum svg{color:#d4d4d9!important;}
/* the "Use voice" icon back, right of ▶ (Lucas 20 Nov) – a tap on the row still picks too */
html.lk-new .gpk.is-voice .vr-use{display:grid!important;order:4;flex:none;}
html.lk-new .gpk.is-voice{width:min(620px,94vw)!important;}
html.lk-new .gpk.is-voice .vr-more{order:5;flex:none;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:6px;background:transparent;color:#a1a1a8;cursor:pointer;}
html.lk-new .gpk.is-voice .vr-more:hover{background:#26262a;color:#fff;}
html.lk-new .gpk.is-voice .vr-more svg{width:16px;height:16px;}
.vr-moremenu .cm-item{display:flex;align-items:center;gap:10px;}
.vr-moremenu .cm-item svg{width:15px;height:15px;flex:none;}
/* Mureka hearing your song: the prompt isn't used – the box dims and says so */
html.lk-new.lk-hear .gen-box > :not(#genProps):not(.gen-lbl){visibility:hidden;pointer-events:none;}
html.lk-new.lk-hear .gen-box::after{content:"Mureka hears your song, so this prompt isn’t used";position:absolute;left:12px;right:12px;top:38px;font-size:12.5px;color:#a1a1a8;pointer-events:none;}
/* the Uploads row: All · Videos · Pictures · Sounds instead of Create's kinds (Lucas 20 Nov) */
.lk-upk{display:none;}
html.lk-new.lk-up-mode .lk-upk{display:flex;gap:6px;padding:4px 0 12px;}
html.lk-new.lk-up-mode #libChips{display:none!important;}
html.lk-new .lk-upk button{height:30px;padding:0 13px;border:0;border-radius:999px;background:#1c1c1f;color:#a1a1a8;font:inherit;font-size:13px;font-weight:600;cursor:pointer;}
html.lk-new .lk-upk button:hover{background:#26262a;color:#fff;}
html.lk-new .lk-upk button.on{background:#fff;color:#111;}
/* Looks: the "+" (its own layer) shows on hover, top right; no lift on hover (it blurred the picture) */
.lut-chip .lut-add{position:absolute;top:5px;right:5px;z-index:2;width:24px;height:24px;display:grid;place-items:center;padding:0;border:0;border-radius:6px;background:rgba(0,0,0,.6);color:#fff;cursor:pointer;opacity:0;transition:opacity .12s;}
.lut-chip .lut-add svg{width:14px;height:14px;}
.lut-chip:hover .lut-add{opacity:1;} .lut-chip .lut-add:hover{background:#fff;color:#111;}
html.lk-new .lut-chip:hover{transform:none!important;}
html.lk-new .lut-chip img{-webkit-user-drag:none;user-select:none;}
/* no picture in Studio can be dragged out by the browser (Lucas 20 Nov sweep): Studio moves things with its own mouse handling, so a browser
   drag only ever caused trouble – a Look tile became 3 uploads, the preview picture could paste its link into a text box */
html.lk-new img{-webkit-user-drag:none;}

/* the sound viewer = option C (Lucas 20 Nov): a big cover + the name in the middle, the real wave as a strip along the bottom with ▶, the time
   and the buttons. Music + sound effects use the whole width; a voiceover keeps its left panel (its words + Generate). */
.lr-ov.lk-snd-wide .lr{grid-template-columns:1fr!important;}
.lr-ov.lk-snd-wide .lr-left{display:none!important;}
.lr-ov.lk-snd .lr-ctrls{display:none!important;}
.lr-ov.lk-snd .lks-stage{flex:1;display:flex;align-items:center;justify-content:center;background:#0d0d0f;cursor:pointer;}
.lks-mid{display:flex;flex-direction:column;align-items:center;}
.lks-cover{width:min(300px,38vh);aspect-ratio:1/1;border-radius:10px;display:grid;place-items:center;color:rgba(255,255,255,.92);background-size:cover;background-position:center;}
.lks-cover svg{width:34%;height:34%;}
.lks-title{text-align:center;margin-top:18px;max-width:520px;}
.lks-title b{display:block;font-size:17px;font-weight:700;color:#ececf1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.lks-title small{font-size:12.5px;color:#8b8b93;}
.lks-dock{display:flex;align-items:center;gap:16px;padding:16px 26px 20px;border-top:1px solid rgba(255,255,255,.06);background:#0d0d0f;}
.lks-play{width:46px;height:46px;flex:none;border-radius:50%;border:0;background:#fff;color:#111;display:grid;place-items:center;cursor:pointer;}
.lks-play svg{width:18px;height:18px;}
.lks-wave{flex:1;min-width:0;height:56px;cursor:pointer;display:block;}
.lks-t{flex:none;font-variant-numeric:tabular-nums;color:#a1a1a8;font-size:12.5px;} .lks-t b{color:#fff;font-weight:600;}
.lks-dock .lr-btn{flex:none;}
/* the account menu: no dark blurred screen behind it (a click outside still closes it) – Lucas 20 Nov */
html.lk-new .profile-menu-overlay, html.lk-new .profile-menu-overlay.active{background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;}
html.lk-new .profile-menu{background:#1e1e21!important;border:0!important;border-radius:8px!important;box-shadow:0 16px 40px rgba(0,0,0,.5)!important;}

/* the account menu = the main site's (client/src/styles/profile-menu.css, copied for Studio – keep the two together) */
.lk-pfm-ov{position:fixed;inset:0;z-index:10099;background:rgba(0,0,0,.55);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);animation:pfm-fade .16s ease both;}
.lk-pfm{position:fixed;z-index:10100;width:272px;padding:8px;box-sizing:border-box;background:#09090a;color:#fff;border:1px solid rgba(255,255,255,.13);border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.6);font-family:'DM Sans',system-ui,sans-serif;font-size:13.5px;transform-origin:bottom left;animation:pfm-pop .18s cubic-bezier(.2,.9,.3,1.2) both;}
@keyframes pfm-pop{from{opacity:0;transform:translateY(6px) scale(.97);}to{opacity:1;transform:none;}}
@keyframes pfm-fade{from{opacity:0;}to{opacity:1;}}
.lk-pfm .pfm-head{display:flex;align-items:center;gap:10px;padding:8px 8px 12px;}
.lk-pfm .pfm-avatar{width:36px;height:36px;flex:none;border-radius:50%;display:grid;place-items:center;font-size:14px;font-weight:700;color:#fff;background:#2a2a2e center/cover no-repeat;box-shadow:0 0 0 1px rgba(255,255,255,.12);}
.lk-pfm .pfm-who{flex:1;min-width:0;}
.lk-pfm .pfm-name{font-size:14px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.lk-pfm .pfm-email{font-size:12px;color:rgba(255,255,255,.5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px;}
.lk-pfm .pfm-credits{display:block;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;padding:12px 14px 13px;border-radius:13px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);transition:border-color .15s,background .15s;}
.lk-pfm .pfm-credits:hover{border-color:rgba(255,255,255,.2);}
.lk-pfm .pfm-credits-top{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.lk-pfm .pfm-credits-label{font-size:12px;color:rgba(255,255,255,.6);font-weight:500;}
.lk-pfm .pfm-plan{font-size:11px;font-weight:600;padding:3px 9px;border-radius:99px;color:rgba(255,255,255,.75);background:rgba(255,255,255,.1);}
.lk-pfm .pfm-plan--pro{color:#f6cf55;background:rgba(246,207,85,.14);}
.lk-pfm .pfm-plan--enterprise{color:#fff;background:rgba(255,255,255,.12);}
.lk-pfm .pfm-credits-amount{font-size:26px;font-weight:700;letter-spacing:-.02em;line-height:1.15;margin:4px 0 10px;font-variant-numeric:tabular-nums;}
.lk-pfm .pfm-bar{height:4px;border-radius:4px;background:rgba(255,255,255,.1);overflow:hidden;}
.lk-pfm .pfm-bar span{display:block;height:100%;border-radius:inherit;background:#fff;min-width:3px;}
.lk-pfm .pfm-bar.is-low span{background:#f59e0b;}
.lk-pfm .pfm-upgrade{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;height:40px;margin-top:8px;border:none;border-radius:99px;cursor:pointer;font:inherit;font-size:13.5px;font-weight:600;color:#1d1600;background:radial-gradient(at 50% 110%,rgb(252,214,92) 33%,rgba(240,190,40,.92) 66%,rgba(214,160,22,.9) 100%);box-shadow:inset 0 1px 8px -3px rgba(255,250,225,.95),inset 0 -2px 4px -1px rgba(140,95,10,.45),0 3px 12px rgba(233,185,35,.2);}
.lk-pfm .pfm-upgrade:hover{filter:brightness(1.05);}
.lk-pfm .pfm-upgrade svg{width:14px;height:14px;}
.lk-pfm .pfm-list{margin-top:6px;}
.lk-pfm .pfm-item{display:flex;align-items:center;gap:11px;width:100%;padding:10px;border:none;border-radius:10px;background:transparent;font:inherit;font-size:13.5px;font-weight:500;color:rgba(255,255,255,.85);text-align:left;cursor:pointer;}
.lk-pfm .pfm-item svg{width:17px;height:17px;flex:none;color:rgba(255,255,255,.55);}
.lk-pfm .pfm-item:hover{background:rgba(255,255,255,.07);color:#fff;} .lk-pfm .pfm-item:hover svg{color:#fff;}
.lk-pfm .pfm-sep{height:1px;margin:6px;background:rgba(255,255,255,.09);}
.lk-pfm .pfm-signout:hover{background:rgba(239,68,68,.12);color:#fca5a5;} .lk-pfm .pfm-signout:hover svg{color:#fca5a5;}

/* live: the "anything to prompt" wand stays hidden until its Write it reads pictures for real (its mock-up only fills in a stand-in line) */
.lk-a2p-btn{display:none!important;}
html.lk-new .gen-box .gen-prompt{padding-right:36px!important;}

/* (Lucas 21 Nov, session 34) the side menu's foot = the main site's: their picture, name + credits, not "Your account" (studio-new.js meRow) */
.lk-drawer .lk-di.lk-dme{height:52px;gap:10px;padding:0 8px;}
.lk-drawer .lk-dav{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#2a2a2e center/cover no-repeat;color:#fff;font:600 13px/1 'DM Sans',system-ui,sans-serif;}
.lk-drawer .lk-dwho{display:flex;flex-direction:column;gap:3px;min-width:0;}
.lk-drawer .lk-dname{font:600 13.5px/1.2 'DM Sans',system-ui,sans-serif;color:#f2f2f4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.lk-drawer .lk-dcr{font:500 12px/1.2 'DM Sans',system-ui,sans-serif;color:#9a9aa2;}

/* (Lucas 21 Nov) the picked clip's toolbar floats at the top of the preview again, as it was – no band taking room from the preview (he
   tried a band under it, then above it: "don't cap the height … they can shift the vid down then cut it down that way"). Slimmer, 38 px. */
html.lk-new #clipDock #clipTb{min-height:0!important;height:38px!important;padding-top:0!important;padding-bottom:0!important;align-items:center;}
html.lk-new #clipDock #clipTb button{height:30px;}

/* (Lucas 21 Nov: "make it a different colour … blue neon or something, u decide") sound blocks on the timeline (voiceover, music, sound
   effects): deep blue with a neon-blue wave – dim ahead of the playhead, bright behind it. Colours only on the wave's bars (no glow per bar:
   there are thousands); the soft glow is one inset shadow on the block. */
html.lk-new .block.aud{background:linear-gradient(180deg,#0c1d3a,#07142a)!important;box-shadow:inset 0 0 0 1px rgba(77,166,255,.32), inset 0 0 22px rgba(40,140,255,.16)!important;}
html.lk-new .block.aud .wf span{background:#2f6fbf;}
html.lk-new .block.aud:hover .wf span{background:#2f6fbf;}   /* (Lucas 21 Nov) the same blue under the mouse – no colour change */
html.lk-new .block.aud .wf-played span{background:#fff;}   /* the part already played: white ("leave the white fill if it's passing it") */
html.lk-new .block.aud.selected{box-shadow:0 0 0 1px #f5c84c, 0 0 0 3px rgba(245,200,76,.18), inset 0 0 22px rgba(40,140,255,.16)!important;}

/* (Lucas 21 Nov, ElevenLabs' way) the timeline dragged up past the smallest preview covers the library + preview like a veil – it grows
   upward over them (a negative top margin on a stretched grid item = taller), on top of them; the chat column is a separate column, untouched */
html.lk-new .timeline{margin-top:calc(-1 * var(--lk-veil, 0px));}
html.lk-new.lk-veiled .timeline{position:relative;z-index:60;box-shadow:0 -14px 30px rgba(0,0,0,.45);}

/* (Lucas 21 Nov: "audio rows … 55, like eleven labs") – the wave is drawn to fit (fillAudioWave) */
html.lk-new .track-row.r-audio{height:55px;}
html.lk-new .track-row.r-audio .block{top:5px;bottom:5px;}

/* (Lucas 21 Nov: "lift up the video and audio … to a higher row") the rows start near the top – one empty 44 px row above them stays as the
   place to drop a new text / picture layer – instead of floating in the middle of a tall timeline (was justify-content: center) */
html.lk-new #tlTracks{justify-content:flex-start!important;padding-top:44px;}   /* one spare 44 px row above the top row (Lucas: "leave 1 spare row above the text row") – a text dropped there becomes a new top row and the spare row is there again */

/* (Lucas 21 Nov) the clip toolbar in the top bar, left of 9:16 (studio-new.js moves it): plain icon buttons like the bar's own, only while a clip is picked */
html.lk-new #clipTb.lk-tb-top{order:0;display:none;align-items:center;gap:2px;height:30px;margin:0 6px 0 0;padding:0 6px 0 0;border:0;border-right:1px solid rgba(255,255,255,.1);border-radius:0;background:none;box-shadow:none;opacity:1;transform:none;position:static;}
html.lk-new body.clip-sel #clipTb.lk-tb-top{display:flex;}
html.lk-new #clipTb.lk-tb-top .ctb-tabs button[data-ctab]:not([data-ctab="__batch"]), html.lk-new #clipTb.lk-tb-top .ctb-sep{display:none!important;}
html.lk-new #clipTb.lk-tb-top button{height:30px;min-width:30px;padding:0 7px;border:0;border-radius:7px;background:none;color:var(--text-secondary);display:inline-flex;align-items:center;gap:6px;font-size:12.5px;white-space:nowrap;cursor:pointer;}
html.lk-new #clipTb.lk-tb-top button:hover{background:var(--lk-fill);color:#fff;}
html.lk-new #clipTb.lk-tb-top button svg{width:16px;height:16px;flex:none;}
html.lk-new #clipTb.lk-tb-top .ctb-tabs{display:flex;align-items:center;gap:2px;}

/* (Lucas 21 Nov: "bring the shifting colour animation") the Agent's making look – parts kit 14 – in Studio: ONE spinner (15 px, two coloured
   quarters, a soft 1.1 s turn) whose colour shifts purple → pink → orange; the "Making…" words + the icon's thin glowing outline shift with it;
   no bar under a tile. Same values as client/src/styles/lk-spin.css + loop2/agent-tidy.css. */
@keyframes lk-shift{0%,100%{color:#a78bfa}33%{color:#f472b6}66%{color:#fb923c}}
@keyframes lk-spin{to{transform:rotate(360deg)}}
html.lk-new .mk-spin{width:15px;height:15px;border:2px solid rgba(255,255,255,.1);border-top-color:currentColor;border-right-color:currentColor;
  animation:lk-spin 1.1s cubic-bezier(.5,.15,.5,.85) infinite, lk-shift 4.5s ease-in-out infinite;}
html.lk-new .sc-gen .mk-spin{border-color:rgba(29,22,0,.25);border-top-color:#1d1600;border-right-color:rgba(29,22,0,.25);animation:lk-spin 1.1s cubic-bezier(.5,.15,.5,.85) infinite;}   /* on the gold button: dark, no colours */
/* the "Making your video" pill (top bar) + its list */
html.lk-new .mk-pill #mkT, html.lk-new .mk-pill .mk-t{animation:lk-shift 4.5s ease-in-out infinite;}
html.lk-new .mk-thumb{width:38px;height:38px;border-radius:8px;background:#131315;box-shadow:0 0 0 1px currentColor, 0 0 14px -3px currentColor;animation:lk-shift 4.5s ease-in-out infinite;}
html.lk-new .mk-thumb::after{display:none;}
html.lk-new .mk-row .mk-bar{display:none!important;}
/* the preview while the playhead is over a spot being made */
html.lk-new .pv-gen .pg-t{animation:lk-shift 4.5s ease-in-out infinite;}
html.lk-new .pv-gen .pg-bar{display:none;}
/* a block on the timeline being made: its icon square glows in the shifting colour */
html.lk-new .ph-slot.busy .ph-ic{background:#131315;box-shadow:0 0 0 1px currentColor, 0 0 10px -3px currentColor;animation:lk-shift 4.5s ease-in-out infinite;}
html.lk-new .ph-slot.busy .ph-ic svg{color:#ececf1;}
/* the chat's "Thinking…" line: grey words beside the shifting spinner */
html.lk-new .ag-live{color:#a1a1a8;}
html.lk-new .pv-gen .pg-orb::after{width:24px;height:24px;border:2.5px solid rgba(255,255,255,.1);border-top-color:currentColor;border-right-color:currentColor;
  animation:lk-spin 1.1s cubic-bezier(.5,.15,.5,.85) infinite, lk-shift 4.5s ease-in-out infinite;}   /* the preview's spinner: the same one, bigger */

/* (Lucas 21 Nov) a Look tile whose look is downloading after a click: the Agent's spinner over it (parts kit 14) */
html.lk-new .lut-chip.lut-loading{pointer-events:none;}
html.lk-new .lut-chip.lut-loading::after{content:"";position:absolute;left:50%;top:42%;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;box-sizing:border-box;z-index:3;
  border:2.5px solid rgba(255,255,255,.15);border-top-color:currentColor;border-right-color:currentColor;animation:lk-spin 1.1s cubic-bezier(.5,.15,.5,.85) infinite, lk-shift 4.5s ease-in-out infinite;}


/* (Lucas 21 Nov: "when click to drag on the timeline … ours is white. make it like a red") the drag-a-box select on the timeline: red */
html.lk-new .tl-marquee{border-color:#ff4d5e!important;background:rgba(255,77,94,.12)!important;}
html.lk-new .block .blk-handle.l{border-radius:4px 0 0 4px;} html.lk-new .block .blk-handle.r{border-radius:0 4px 4px 0;}   /* the trim handles follow the 4 px corners */

/* (Lucas 21 Nov) while a block is dragged, the floor line of the row it will land on lights up (he asked for the line, not the row) */
.drop-row-hl{position:absolute;left:0;right:0;z-index:25;pointer-events:none;display:none;background:#3b82f6;}   /* the floor line of the row it lands on – blue, like the picked box (his ElevenLabs screenshot) */
.drop-row-hl i{position:absolute;top:-2px;height:6px;border-radius:3px;background:#3b82f6;}   /* thicker under the block's own span */

/* (Lucas 21 Nov: "make this breathing room") the upload box's ↑ icon: more room above it and between it and the words under it */
html.lk-new .hp-t{padding-top:22px!important;padding-bottom:20px!important;min-height:fit-content!important;}   /* never shorter than what's in it (it was squeezed to 118 px and squashed the icon to 40×34) */
html.lk-new .hp-t .lk-up{margin-bottom:12px;flex:none;}

/* (Lucas 21 Nov: "the hairline around media explore … a half px up") the picked tab's hairline 1 → 1.5 px: the browser rounds a 1.5 px
   border down to 1, so the extra half pixel is a 0.5 px ring just outside it */
html.lk-new #libScope > button.active, html.lk-new #libScope > button.active:hover{box-shadow:0 0 0 .5px rgba(255,255,255,.5)!important;}

/* (Lucas 21 Nov) the credits ring round the picture in the side menu's foot – the main sidebar's (white, amber under 10 %), the % on hover */
html.lk-new .lk-drawer .lk-dav-ring{position:relative;overflow:visible;}
html.lk-new .lk-drawer .lk-ring{position:absolute;left:50%;top:50%;width:80px;height:80px;transform:translate(-50%,-50%) rotate(-90deg) scale(.5);pointer-events:none;overflow:visible;}
html.lk-new .lk-drawer .lk-ring-t{fill:none;stroke:rgba(255,255,255,.4);stroke-width:5;}
html.lk-new .lk-drawer .lk-ring-f{fill:none;stroke:#fff;stroke-width:5;stroke-dasharray:157.08;transition:stroke-dashoffset .4s ease;}
html.lk-new .lk-drawer .lk-dav-ring.is-low .lk-ring-f{stroke:#f59e0b;}
html.lk-new .lk-drawer .lk-dav-ring::after{content:attr(data-credits-tip);position:absolute;inset:0;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;font:600 10.5px/1 'DM Sans',system-ui,sans-serif;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s ease;}
html.lk-new .lk-drawer .lk-dme:hover .lk-dav-ring::after{opacity:1;}
/* (Lucas 21 Nov: "the hover margin looks off") the ring (40 px) was bigger than its row (36 px – the menu rows' height won): the foot row is 52 px
   with room round the ring, so the hover box sits evenly around it */
html.lk-new .lk-drawer .lk-di.lk-dme{height:52px!important;min-height:52px!important;padding:0 10px!important;gap:12px!important;}

/* (Lucas 21 Nov) dragging the chat column past 300 px: it slides off – its insides keep 300 px and are cut on the right, like ElevenLabs' */
html.lk-new.lk-cw-slide .inspector{min-width:0!important;}
html.lk-new.lk-cw-slide .inspector > *{min-width:300px;}
html.lk-rp-wide .ed-col{width:max(300px, var(--lk-cw));}   /* the Edit column never follows the chat below 300 */

/* (Lucas 21 Nov) the clip settings + the chat sharing one column: half and half (--lk-eds, dragged), split by a 6 px black gap like the
   other boxes – its ::before / ::after round the corners on both sides of the gap */
html.lk-rp-stack #inspector > .ed-pane:not(.is-fold){flex:0 0 calc(var(--lk-eds, 50%) - 3px)!important;border-bottom:0!important;min-height:0;}
html.lk-rp-stack #inspector.chat-fold > .ed-pane{flex:1 1 0!important;}
html.lk-rp-stack #inspector > .ed-split{position:relative;flex:none;height:6px;background:var(--lk-page);cursor:ns-resize;z-index:6;}
html.lk-rp-stack #inspector > .ed-split::before, html.lk-rp-stack #inspector > .ed-split::after{content:"";position:absolute;left:0;right:0;height:var(--lk-r);pointer-events:none;}
html.lk-rp-stack #inspector > .ed-split::before{top:calc(-1 * var(--lk-r));background:radial-gradient(circle at 100% 0, transparent calc(var(--lk-r) - .5px), var(--lk-page) var(--lk-r)) left bottom / var(--lk-r) var(--lk-r) no-repeat, radial-gradient(circle at 0 0, transparent calc(var(--lk-r) - .5px), var(--lk-page) var(--lk-r)) right bottom / var(--lk-r) var(--lk-r) no-repeat;}
html.lk-rp-stack #inspector > .ed-split::after{bottom:calc(-1 * var(--lk-r));background:radial-gradient(circle at 100% 100%, transparent calc(var(--lk-r) - .5px), var(--lk-page) var(--lk-r)) left top / var(--lk-r) var(--lk-r) no-repeat, radial-gradient(circle at 0 100%, transparent calc(var(--lk-r) - .5px), var(--lk-page) var(--lk-r)) right top / var(--lk-r) var(--lk-r) no-repeat;}

/* after a video is made the Export button hides (Save / Download / Keep editing sit beside the video) – its ▾ goes with it (Lucas 21 Nov: a lone grey box) */
html.lk-new #exportBtn[style*="none"] + .lk-exp-more{display:none!important;}

/* (session 44 – "the image colour one everywhere") Studio's sidebar = the site's sidebar colour, docked or floating */
html.lk-new .lk-drawer{background:#151515 !important;}
/* the Agent row's gold + (= New chat) at its right end – the site's sidebar */
.lk-drawer .lk-di-wrap{position:relative;}
.lk-drawer .lk-di-wrap > .lk-di{padding-right:40px;}
.lk-drawer .lk-di-plus{position:absolute;top:50%;right:8px;transform:translateY(-50%);display:grid;place-items:center;width:26px;height:26px;border-radius:7px;}
.lk-drawer .lk-di-plus svg{width:20px;height:20px;}
.lk-drawer .lk-di-plus:hover{filter:brightness(1.06);}
