@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=DM+Sans:wght@400;500;600;700&family=Pacifico&family=UnifrakturCook:wght@700&display=swap');
:root{color-scheme:dark;--bg:#141517;--panel:#202124;--line:#38393d;--text:#f3f1eb;--muted:#afb1b7;--accent:#f59a70}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px 'DM Sans',system-ui,sans-serif}button,input,textarea,select{font:inherit}button{min-height:46px;padding:11px 16px;background:#303135;color:var(--text);border:1px solid var(--line);border-radius:12px;cursor:pointer;font-weight:600;touch-action:manipulation}button:hover{background:#3d3e42}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.primary{background:var(--accent);color:#24180f;border-color:var(--accent)}.primary:hover{background:#ffb48d}.quiet{border:0;background:none;color:#c9cacf;font-size:13px}.danger{color:#ffb6ad}.wide{width:100%}[hidden]{display:none!important}header{display:flex;align-items:center;gap:12px;max-width:820px;margin:auto;padding:20px 24px}.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;margin-right:auto}.brandmark{background:var(--accent);color:#211b16;border-radius:12px;padding:5px 10px;font:800 italic 30px 'Barlow Condensed',Impact,sans-serif}.wordmark{font:800 25px/.9 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px}.wordmark small{display:block;font:8px 'DM Sans',sans-serif;letter-spacing:2.8px;margin-top:7px}.workspace{max-width:720px;margin:0 auto;padding:0 24px 22px}.welcome{margin:21px 0 22px}.welcome h1{font-size:27px;letter-spacing:-.8px;margin:0 0 7px}.welcome p{margin:0;color:var(--muted);font-size:14px}main{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#101113}.previewhead{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;font-size:12px;color:var(--muted)}select{border:1px solid var(--line);border-radius:9px;background:#292a2d;color:var(--text);padding:10px;min-height:44px;max-width:100%}.previewhead select{font-size:12px;padding:7px;min-height:36px}.stage{height:340px;display:flex;align-items:center;justify-content:center;background:#101214;position:relative;padding:0 12px}.stage canvas{display:block;max-height:100%;max-width:100%;object-fit:contain;aspect-ratio:9/16}#emptyState{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px;background:radial-gradient(ellipse at 50% 120%,#3e3c33,#191c1e 80%)}.emptyicon{border:1px solid #d8ae8d44;background:#ed9a6a12;border-radius:20px;padding:10px 21px;color:var(--accent);font-size:45px}#emptyState h2{font-size:21px;margin:20px 0 6px}#emptyState p{color:var(--muted);font-size:13px;margin:0;line-height:1.6}.is-empty .stage{height:230px}.transport{display:flex;align-items:center;justify-content:space-between;padding:11px 13px;gap:9px}.play{border:0;border-radius:28px;background:#efeee9;color:#222;min-width:100px}.play:hover{background:white}#timeDisplay{font:11px ui-monospace,monospace;color:#ddd;font-variant-numeric:tabular-nums}#timeDisplay em{font-style:normal;color:#8f929a}#scrubber{width:calc(100% - 36px);margin:0 18px 10px;accent-color:var(--accent);height:34px;cursor:ew-resize}.addmedia{width:100%;margin:15px 0 6px;min-height:56px;font-size:16px}.sectionhead{display:flex;align-items:center;justify-content:space-between;margin:18px 0 12px;gap:8px}.sectionhead h2{font-size:15px;margin:0}.sectionhead>span{font-size:11px;color:var(--muted)}#sceneCount{font-size:11px;color:var(--muted);margin-left:6px}.clips{display:flex;gap:9px;overflow-x:auto;scroll-padding:3px;padding:3px 2px 9px;scrollbar-width:thin}.clip{flex:0 0 108px!important;min-height:86px;max-width:108px;text-align:left;overflow:hidden;background:linear-gradient(135deg,#4e4c3c,#292f2e);padding:10px;color:#f3e1ce;border:2px solid transparent;position:relative}.clip.image{background:#3a3345}.clip.video{background:#2c4141}.clip.selected{border-color:var(--accent)}.clip span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.4}.clip small{display:block;margin-top:9px;font-size:11px;opacity:.75}.tools{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0 18px}.tools button{background:#232427;border-color:#343539;display:flex;flex-direction:column;align-items:center;gap:7px;min-height:76px;font-size:12px;padding:10px 4px}.tools button b{font-size:22px;line-height:26px;font-weight:500}.tools button.active{color:var(--accent);border-color:var(--accent);background:#f59a700c}.library,.inspector{background:var(--panel);border:1px solid var(--line);border-radius:16px;margin:8px 0 15px;overflow:hidden}.panelheading{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:9px 17px;border-bottom:1px solid #343539}.panelheading h2{font-size:15px;margin:0}.panelheading #sceneTag{font-size:11px;color:var(--muted);margin-right:auto}.panelheading .quiet{padding:7px 0}#panelContent,#inspectorContent{padding:18px}.field{display:block;margin-bottom:18px}.field>span{display:flex;justify-content:space-between;gap:8px;font-size:13px;margin-bottom:9px;color:#d5d6da}.field input:not([type=range]):not([type=color]),.field textarea,.field select{width:100%;border:1px solid #4b4c50;background:#17181b;color:var(--text);border-radius:10px;padding:12px;min-height:47px}.field textarea{resize:vertical;min-height:94px;line-height:1.6}.field input[type=range]{width:100%;height:36px;accent-color:var(--accent)}.field input[type=color]{width:100%;height:46px;border:1px solid #4b4c50;border-radius:10px;padding:5px;background:#17181b}.fieldrow{display:grid;grid-template-columns:1fr 1fr;gap:15px}.smallnote{color:var(--muted);font-size:13px;line-height:1.7;margin:0 0 14px}.clipactions{display:flex;gap:8px;padding:0 18px 18px;flex-wrap:wrap}.clipactions button{flex:1;font-size:13px;padding:10px}.advanced{border-top:1px solid #393a3d;margin:0;padding:0 18px}.advanced summary{padding:18px 0;font-size:13px;color:#c4c6cb;cursor:pointer}.advanced .clipactions{padding:0 0 18px}.advanced .field:last-child{margin-bottom:18px}.assetgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.asset{padding:0;text-align:left;overflow:hidden}.assetart{height:70px;background:#303e3f;display:flex;align-items:center;justify-content:center;font-size:25px}.assetart img{width:100%;height:100%;object-fit:cover}.assetname{display:block;padding:10px;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sectionlabel{font-size:12px;color:var(--muted);margin:20px 0 12px}.preset{width:100%;text-align:left;margin-bottom:9px}.preset strong{display:block}.preset small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.look{padding:7px;text-align:left;font-size:12px}.lookswatch{display:flex;align-items:center;justify-content:center;height:60px;font:800 27px 'Barlow Condensed',Impact,sans-serif;border-radius:7px;margin-bottom:8px}.chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:18px}.chips button{font-size:12px}.chips button.active{border-color:var(--accent);color:var(--accent)}.morelist{display:grid;gap:10px}.morelist button{text-align:left}.morelist .danger{margin-top:10px}.morelist .field{margin-top:6px;margin-bottom:5px}.tipcard{font-size:13px;color:var(--muted);line-height:1.7;margin:15px 0}.tipcard strong{display:block;color:#eee}.tag{font-size:11px;color:var(--accent);letter-spacing:1px}footer{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;padding:0 2px}.progress{height:6px;background:#424347;border-radius:10px;overflow:hidden;margin:20px 0}.progress>div{height:100%;width:0;background:var(--accent)}dialog{background:#242528;color:var(--text);border:1px solid #4b4c50;border-radius:20px;padding:24px;width:min(470px,calc(100vw - 28px));box-shadow:0 20px 100px #0009}dialog::backdrop{background:#000b}dialog h2{font-size:24px;letter-spacing:-.5px;margin:10px 0}dialog p{font-size:14px;color:#c2c3c8;line-height:1.7}.modalactions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;flex-wrap:wrap}.modalactions button{flex:1}.devnote{font-size:12px;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);width:max-content;max-width:90vw;z-index:100;background:#ece9e0;color:#222;padding:15px 20px;border-radius:12px;opacity:0;pointer-events:none;font-size:13px;box-shadow:0 5px 30px #0006}#toast.show{opacity:1}.dragover{outline:2px dashed var(--accent);outline-offset:5px}.is-empty .timeline,.is-empty .tools,.is-empty .transport,.is-empty #scrubber{display:none}.library[hidden],.inspector[hidden]{display:none}.emptyCreate{background:none;border:0;color:var(--accent);width:100%;font-size:13px}.steps{display:flex;gap:12px;color:var(--muted);font-size:13px;line-height:1.8}.steps b{color:var(--accent)}
@media(max-width:500px){header{padding:15px 16px;gap:5px}header #undo{font-size:11px;padding:8px}header #export{font-size:13px;padding:11px 13px}.wordmark{font-size:22px}.wordmark small{font-size:7px}.brandmark{font-size:27px;padding:6px 8px}.brand{gap:8px}.workspace{padding:0 16px 20px}.welcome{margin:14px 0 18px}.welcome h1{font-size:24px}.welcome p{font-size:13px}.stage{height:290px}.is-empty .stage{height:205px}.transport{padding:8px}.transport .quiet{font-size:11px;padding:8px}.play{min-width:92px;font-size:13px}#timeDisplay{font-size:10px}.assetgrid{grid-template-columns:repeat(2,1fr)}#panelContent,#inspectorContent{padding:16px}.panelheading{padding:7px 16px}button{min-height:48px}.sectionhead>span{font-size:10px}.tools{gap:7px}.fieldrow{gap:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.musicLibraryButton{width:100%;margin:9px 0 3px;min-height:58px;padding:13px 16px;background:#203033;border:1px solid #43888c;color:#c5f6f5;text-align:left;font-size:16px}.musicLibraryButton span{display:block;font-size:11px;font-weight:400;color:#a6c8cb;margin-top:5px}.musicLibraryButton[aria-expanded=true]{border-color:#62e4e9}.musicLibraryButton+.library{margin-top:12px}.musicIntro{margin:22px 0 17px}.musicIntro strong{font-size:17px}.musicIntro p,.musicLicenseNote{font-size:12px;line-height:1.7;color:var(--muted);margin:8px 0 0}.musicSearch{margin-bottom:14px}.musicFilters{gap:10px}.musicFilters .field{min-width:0;margin-bottom:12px}.musicFilters select{font-size:12px;padding:10px 6px}.musicCount{font-size:12px;color:#b7dada;margin:20px 0 12px}.musicCard{padding:15px 12px;margin:0 0 12px;background:#191d20;border:1px solid #3d4648;border-radius:13px}.musicSongInfo strong{display:block;font-size:15px;overflow-wrap:anywhere}.musicSongInfo>span:not(.musicBadge){display:block;font-size:12px;color:#c5c6c8;margin:7px 0}.musicSongInfo small{display:block;font-size:11px;color:var(--muted);line-height:1.5}.musicBadge{display:inline-block;margin-top:9px;padding:4px 7px;border:1px solid #37685d;border-radius:6px;background:#183129;color:#a2dfbd;font-size:10px}.musicBadge.needsCredit{border-color:#766246;background:#2e291f;color:#e6cfaa}.musicSongActions{display:grid;grid-template-columns:1.2fr 1fr 46px;gap:8px;margin-top:12px}.musicSongActions button{padding:9px 7px;font-size:12px;min-height:46px}.musicDetails{margin-top:13px;border-top:1px solid #343c3e;padding-top:11px}.musicDetails summary{font-size:11px;color:#bbc4c5;cursor:pointer;min-height:24px}.musicDetails p,.musicDetails button{font-size:11px}.musicDetails a{color:#86d4dc}.musicDetails button{margin:5px 5px 0 0;min-height:40px}.musicDetails pre,.exportMusicCredit pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.7 ui-monospace,monospace;color:#c2cbcf}.musicStatus{color:#d7ebe5;font-size:12px;line-height:1.7;margin-top:12px}.selectedMusic{background:#17282a;border:1px solid #3c6b70;border-radius:12px;padding:14px;margin-bottom:16px}.selectedMusic>strong{display:block;overflow-wrap:anywhere;font-size:14px}.selectedMusic .field{margin:16px 0 10px}.selectedMusic button{font-size:12px}#currentMusicCreditStatus,#exportMusicCreditStatus{font-size:12px;line-height:1.6;color:#c2e1d9}.exportMusicCredit{padding:12px;background:#171b20;border:1px solid #50545a;border-radius:10px}.exportMusicCredit button{font-size:12px;margin:4px 0}.musicStatus textarea{min-height:140px}

.brandlogo{display:block;width:112px;height:112px;object-fit:contain}.appSharing{margin:18px 0 14px}.shareApp{width:100%;border-color:#3b9a9e;color:#68edf1;background:#18292c}.shareApp:hover{background:#203a3e}.appSharing p{margin:9px 0 0;color:var(--muted);font-size:11px;text-align:center;line-height:1.6}#shareStatus:not(:empty){display:block;margin-top:10px;color:#68edf1;font-size:12px;line-height:1.6}#shareAppLink{font-size:13px}@media(max-width:500px){.brandlogo{width:90px;height:90px}header{padding-top:10px;padding-bottom:10px}}@media(max-width:350px){.brandlogo{width:76px;height:76px}header #export{padding:10px;font-size:12px}header #undo{padding:6px}}

.addbuttons{display:grid;gap:9px;margin:15px 0 6px}.addbuttons .addmedia{margin:0}.titlepagebutton{width:100%;min-height:52px;background:#272a2c;border:1px solid #a78b73;color:#f9d8bd;font-size:15px}.titlepagebutton:hover{background:#383c3d}.pagehint{font-size:12px;color:var(--muted);margin:0 0 16px;line-height:1.6}.titlecontrols .field{margin-bottom:17px}.titlecontrols .fieldrow{gap:12px}.titlecontrols textarea{min-height:100px}.previewmotion{width:100%;margin:0 0 16px}.clip.title .pageicon{color:var(--accent)}.pageplacement{margin:0 0 18px}.pageplacement select{width:100%}

.stage canvas.has-editable-text{touch-action:none;cursor:grab}#textSelection{position:absolute;border:1.5px dashed #ffd0ad;box-shadow:0 0 0 1px #0004;touch-action:none;cursor:move;z-index:3;user-select:none}#textSelection:focus-visible{outline:2px solid #fff;outline-offset:4px}.resizeGrip{position:absolute;padding:0;border:0;border-radius:50%;width:34px;height:34px;min-height:34px;background:transparent;touch-action:none}.resizeGrip::after{content:'';position:absolute;inset:10px;background:#ffcfaa;border:1.5px solid #422d23;border-radius:50%;box-shadow:0 1px 4px #0007}.resizeGrip:hover{background:#ffffff18}.resizeGrip.nw{top:-17px;left:-17px;cursor:nwse-resize}.resizeGrip.ne{top:-17px;right:-17px;cursor:nesw-resize}.resizeGrip.sw{bottom:-17px;left:-17px;cursor:nesw-resize}.resizeGrip.se{bottom:-17px;right:-17px;cursor:nwse-resize}.textTapHint{color:var(--muted);font-size:12px;text-align:center;margin:10px 0 0}.textEditBar{border:1px solid #63503f;background:#242423;border-radius:12px;padding:11px 12px;margin:10px 0 0}.textEditBar>span{display:block;font-size:12px;color:#f1c6a4;margin-bottom:8px}.textEditBar>div{display:flex;gap:8px}.textEditBar button{flex:1;min-height:42px;font-size:12px;padding:8px}.stage{isolation:isolate}

.cinematicButton{width:100%;margin:9px 0 3px;min-height:58px;background:linear-gradient(115deg,#34342d,#243639);border:1px solid #64817b;text-align:left;font-size:16px;padding:13px 16px;color:#e5f2e8}.cinematicButton span{display:block;font-size:11px;font-weight:400;color:#b3cac4;margin-top:5px}.cinematicButton:hover{background:#344846}.cameraGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.cameraCard{text-align:left;min-height:120px;padding:13px 10px;background:#292c2c;border:1px solid #454c49;display:flex;flex-direction:column}.cameraCard.active{border-color:var(--accent);background:#f59a7012}.cameraIcon{font-size:25px;line-height:28px;margin-bottom:8px;color:#c6d9c6}.cameraCard strong{font-size:12px;line-height:1.4}.cameraCard small{font-size:10px;line-height:1.4;color:#afb8b4;margin-top:5px}.cameraClip{font-size:12px;color:var(--muted);line-height:1.6;margin:0 0 11px;overflow-wrap:anywhere}.cameraClip strong{color:#e4e9e1;font-weight:500}.cameraCurrent{font-size:12px;color:var(--muted);margin:20px 0}.cameraCurrent b{color:var(--accent)}.cameraToggle{display:flex;align-items:center;gap:10px;min-height:48px;cursor:pointer;font-size:14px}.cameraToggle input{width:20px;height:20px;accent-color:var(--accent)}.cameraAtmosphere{margin-top:16px}.cameraExplain{font-size:11px;margin:16px 0 0}@media(max-width:500px){.cameraGrid{grid-template-columns:repeat(2,1fr)}.cameraCard{min-height:114px;padding:12px}.cameraCard strong{font-size:13px}.cameraCard small{font-size:11px}.cinematicButton{font-size:15px}}

.library,.inspector{scroll-margin-top:14px}.cinematicButton[aria-expanded="true"]{border-color:var(--accent);background:#344846}.cinematicButton+.library{margin-top:12px;margin-bottom:22px}

.motionSlots{display:grid;gap:8px;margin:14px 0}.motionSlot{display:flex;align-items:center;border:1px solid #515a55;border-radius:10px;overflow:hidden;background:#292f2d}.motionSlot.active{border-color:var(--accent);background:#ed9a7012}.motionSlot button{background:none;border:0;text-align:left;font-size:13px;min-height:46px}.motionSlot button:first-child{flex:1}.motionSlot b{display:inline-flex;justify-content:center;align-items:center;width:22px;height:22px;border-radius:50%;background:#ffffff15;color:var(--accent);font-size:11px;margin-right:9px}.motionSlot button:last-child:not(:first-child){font-size:22px;color:#c8c5bc}.addMove{border-style:dashed;font-size:13px;min-height:46px}.motionPick{color:var(--accent);font-size:12px;line-height:1.6;margin:12px 0}.motionGroups{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:12px 0}.motionGroups button{padding:9px 3px;font-size:11px;border-radius:8px}.motionGroups button.active,.durationChoices button.active{color:var(--accent);border-color:var(--accent);background:#ed9a7012}.durationChoices{display:flex;gap:6px;margin:0 0 14px}.durationChoices button{flex:1;padding:8px 5px;min-width:0;min-height:44px;font-size:12px}.motionLength{font-size:13px;color:var(--muted);margin:16px 0}.motionLength b{color:#eee}#longTitleMotion{margin-bottom:10px;text-align:left;font-size:14px}
