:root{color-scheme:dark;--bg:#101116;--surface:#18191f;--raised:#22232c;--line:#2a2b34;--text:#f4f3f8;--muted:#92929f;--accent:#b8b4ff;--pink:#ff1258;--font:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px var(--font);min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;color:inherit;background:none}button:disabled{opacity:.35;cursor:not-allowed}button,input,select,textarea,a{outline-offset:4px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--accent)}button svg,span[data-icon] svg{width:21px;height:21px;display:block}button{touch-action:manipulation}button:hover{filter:brightness(1.12)}[hidden]{display:none!important}.topbar{height:85px;display:flex;align-items:center;padding:0 30px;border-bottom:1px solid var(--line);gap:30px}.brand{display:flex;align-items:center;gap:12px;font:800 30px 'Manrope',var(--font);letter-spacing:-1.7px;min-width:185px;padding:0}.brand-symbol{width:37px;height:37px;border-radius:12px;color:#191924;background:var(--accent);font:bold 27px 'Manrope',var(--font);letter-spacing:-1px;display:grid;place-items:center;transform:rotate(-7deg)}.brand>span:last-child{display:flex;align-items:center;gap:12px}.studio-label{font:600 10px var(--font);letter-spacing:2px;color:var(--accent);border:1px solid #b8b4ff40;border-radius:5px;padding:5px 7px}.project-heading{display:flex;flex-direction:column;gap:5px;flex:1}.project-name{align-self:flex-start;font-weight:600;font-size:15px;padding:0}.save-state{font-size:12px;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;padding:11px 18px;font-weight:600;font-size:14px;min-height:42px;transition:.2s}.primary{background:var(--accent);color:#242233}.ghost{border:1px solid #353641;background:#1c1d24}.small{padding:7px 12px;min-height:34px;font-size:13px}.icon-button{width:36px;height:36px;display:grid;place-items:center;color:var(--muted);border-radius:8px;flex-shrink:0}.icon-button:hover{background:#ffffff09;color:white}.editor{display:grid;grid-template-columns:218px minmax(330px,1fr) 306px;grid-template-rows:minmax(560px,calc(100vh - 302px)) auto;max-width:1900px;margin:auto}.source-sidebar{border-right:1px solid var(--line);padding:30px 16px 22px;display:flex;flex-direction:column;gap:6px}.section-title{font-size:10px;letter-spacing:1.8px;font-weight:600;color:#7e7e90;margin:0 12px 13px}.source-item{display:flex;gap:12px;align-items:center;width:100%;text-align:left;border-radius:9px;padding:12px;color:#aaaab8;font-size:14px}.source-item>span:nth-child(2){flex:1}.source-item.active{background:#b8b4ff12;color:var(--accent)}.source-item.active:before{content:'';position:absolute;width:3px;height:19px;background:var(--accent);left:0;border-radius:0 3px 3px 0}.source-item:hover{background:#ffffff06}.source-item>span:last-child:not(:nth-child(2)) svg{width:15px;height:15px;color:#777789}.shortcut{font-size:11px;color:#717180;border:1px solid #3a3b47;padding:1px 4px;border-radius:4px}.sidebar-divider{height:1px;background:var(--line);margin:20px 12px 18px}.sidebar-footer{margin-top:auto;padding:35px 10px 0}.local-badge{display:flex;align-items:center;gap:7px;font-size:11px;color:#888897}.local-badge svg{width:14px!important;height:14px!important}.help-link{font-size:12px;color:#b7b4d0;display:flex;align-items:center;gap:7px;padding:18px 0 0}.help-link svg{width:13px;height:13px}.workspace{padding:23px 28px 0;display:flex;flex-direction:column;align-items:center;min-width:0;background:radial-gradient(ellipse at 50% 42%,#22222e44,transparent 65%)}.preview-top{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:19px}.mode-switch{display:flex;padding:4px;background:#1e1f27;border-radius:9px;border:1px solid #272832}.mode-switch button{padding:7px 18px;color:var(--muted);font-size:12px;font-weight:500;border-radius:6px}.mode-switch button.active{background:#34343f;color:#fff;box-shadow:0 1px 4px #0004}.ratio-button{display:flex;align-items:center;gap:8px;color:#b7b7c3;font-size:12px;padding:8px 0}.ratio-button svg{width:15px;height:15px}.preview-area{flex:1;min-height:220px;width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}.canvas-wrap{height:100%;max-height:430px;aspect-ratio:1;max-width:100%;position:relative;overflow:hidden;background:#20212a;border-radius:13px;box-shadow:0 12px 60px #0005;display:flex}.canvas-wrap canvas{width:100%;height:100%;object-fit:fill;display:block;touch-action:none}.preview-label{position:absolute;top:14px;left:14px;background:#0003;backdrop-filter:none;border:1px solid #ffffff20;border-radius:5px;padding:4px 6px;font-size:8px;letter-spacing:1.5px;color:#fffc;pointer-events:none}.preview-state{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;text-align:center}.preview-state:empty{display:none}.preview-state .camera-empty{max-width:270px;display:flex;flex-direction:column;align-items:center;gap:15px;pointer-events:auto;font-size:14px;color:#c7c6d7;line-height:1.5}.camera-empty svg{width:43px;height:43px;color:var(--accent)}.playback-controls{display:flex;align-items:center;gap:11px;height:67px;position:relative;justify-content:center;width:100%;flex-shrink:0}.play-button{border:1px solid #3a3a48;background:#272733;width:40px;height:40px;display:grid;place-items:center;border-radius:50%}.play-button svg{width:18px;height:18px}.time-display{font-variant-numeric:tabular-nums;font-size:12px;color:#dddde6;position:absolute;left:0}.time-display span{color:#777786;margin-left:4px}.audio-button{position:absolute;right:0}.effect-dock{width:100%;max-width:410px;display:flex;justify-content:center;gap:22px;padding:12px 0 19px;border-top:1px solid #2a2b3470;flex-shrink:0}.effect-dock button{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:10px;color:#9797a7;min-width:45px}.effect-dock button.active{color:var(--accent)}.effect-dock button svg{width:23px;height:23px}.inspector{border-left:1px solid var(--line);padding:28px 23px 0;display:flex;flex-direction:column;background:#14151b}.inspector-heading{display:flex;align-items:center;justify-content:space-between}.inspector-heading .section-title{margin:0 0 9px;font-size:9px}.inspector h1{font:650 23px 'Manrope',var(--font);letter-spacing:-.8px;margin:0}.mobile-close{display:none}.panel-body{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#444452 transparent;padding-bottom:18px;flex:1}.panel-intro{font-size:12px;color:#8c8c9c;margin:13px 0 23px;line-height:1.6}.filter-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:19px 13px}.filter-card{display:flex;flex-direction:column;gap:8px;text-align:left;position:relative;font-size:12px;color:#bcbccb;padding:0}.filter-thumbnail{aspect-ratio:1.14;display:block;width:100%;background:linear-gradient(135deg,#355962,#b3bc92);border-radius:8px;overflow:hidden;outline:2px solid transparent;outline-offset:3px}.filter-thumbnail img{width:100%;height:100%;object-fit:cover}.filter-thumbnail>span{display:flex;align-items:center;height:100%;justify-content:center;text-align:center;font:700 19px 'Manrope',var(--font);color:#fff}.filter-card.selected{color:var(--accent)}.filter-card.selected .filter-thumbnail{outline-color:var(--accent)}.filter-card i{position:absolute;right:5px;bottom:26px;background:var(--accent);color:#20202c;border-radius:50%;width:18px;height:18px;display:grid;place-items:center}.filter-card i svg{width:12px;height:12px}.setting-row{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#bebecd;margin:26px 0 12px;gap:12px}.setting-row label{flex:1}.setting-row span{color:#868694;font-variant-numeric:tabular-nums}input[type=range]{accent-color:var(--accent);width:100%;cursor:pointer;height:4px;display:block;margin:12px 0}input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:3px}input[type=range]::-webkit-slider-thumb{margin-top:-6px}.panel-note{border:1px solid #30313b;border-radius:8px;font-size:11px;color:#898998;line-height:1.6;padding:12px;margin-top:27px}.inspector-bottom{display:flex;align-items:flex-start;gap:10px;border-top:1px solid var(--line);font-size:11px;line-height:1.6;color:#818191;padding:19px 0;flex-shrink:0}.inspector-bottom svg{width:17px;height:17px;color:#8883c4}.timeline-section{grid-column:1/-1;padding:21px 30px 17px;border-top:1px solid var(--line);background:#16171e;min-width:0}.timeline-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px;gap:16px}.timeline-title{display:flex;align-items:center;gap:10px}.timeline-title>span[data-icon]{color:var(--accent)}.timeline-title strong{font-size:14px;font-weight:500}.timeline-title #clip-count{color:#7f7f90;font-size:11px;margin-left:5px}.timeline-actions{display:flex;gap:5px;align-items:center}.timeline-actions .button{margin-left:10px}.timeline-actions .icon-button{width:30px;height:30px}.timeline-actions .icon-button svg{width:16px;height:16px}.timeline-scroll{overflow-x:auto;scrollbar-width:thin;scrollbar-color:#4b4b5d transparent;padding:3px 3px 9px}.timeline-clips{display:flex;align-items:center;gap:12px;min-height:79px}.timeline-clip{height:79px;width:134px;flex-shrink:0;border-radius:7px;position:relative;padding:0;outline:2px solid transparent;outline-offset:3px;overflow:hidden}.timeline-clip.selected{outline-color:var(--accent)}.timeline-clip.drag-over{outline-color:var(--pink)}.clip-visual{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;color:#fff;padding:10px;text-align:center;overflow:hidden}.clip-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.clip-visual canvas{width:100%;height:100%;object-fit:cover}.clip-duration{position:absolute;bottom:7px;right:7px;font-size:9px;padding:3px 5px;background:#0008;border-radius:4px}.clip-number{position:absolute;left:7px;bottom:7px;font-size:10px;color:#fff9}.clip-type{position:absolute;top:6px;left:6px;color:#fff9}.clip-type svg{width:12px;height:12px}.clip-progress{position:absolute;top:0;bottom:0;width:2px;background:transparent;pointer-events:none}.add-clip{height:79px;width:109px;border:1px dashed #41414f;border-radius:7px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;color:#9393a5;flex-shrink:0}.add-clip svg{width:20px;height:20px}.add-clip span{font-size:9px}.clip-toolbar{display:flex;align-items:center;gap:26px;margin-top:12px;font-size:10px;color:#777787}.clip-toolbar>div{display:flex;gap:19px;flex:1}.tool-button{display:flex;align-items:center;gap:6px;font-size:11px;color:#b2b2c2;padding:4px 0}.tool-button svg{width:14px;height:14px}.tool-button.danger{color:var(--pink)}.timeline-help{font-size:10px}.capture-controls{height:101px;position:relative;display:flex;justify-content:center;align-items:flex-start;padding-top:12px;gap:30px;width:100%}.record-button{width:60px;height:60px;border-radius:50%;border:3px solid var(--pink);padding:5px;display:grid;place-items:center;background:#251e2a}.record-button>span{display:block;width:100%;height:100%;background:var(--pink);border-radius:50%;transition:.2s}.record-button.recording>span{width:22px;height:22px;border-radius:5px}.capture-controls>.icon-button{margin-top:12px}.record-hint{position:absolute;bottom:5px;font-size:10px;color:#9b9aaa}.recording #preview-label{background:var(--pink);color:#fff}dialog{background:#1b1c24;color:var(--text);border:1px solid #3a3a49;border-radius:17px;padding:0;max-width:min(650px,calc(var(--ui-width,100vw) - 32px));max-height:85vh;box-shadow:0 25px 100px #0009}dialog::backdrop{background:#05050bbd;backdrop-filter:none}.modal-head{padding:22px 25px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.modal-head h2{margin:0;font:650 21px 'Manrope',var(--font);letter-spacing:-.5px}.modal-body{padding:24px 25px;overflow:auto;max-height:65vh;min-width:min(430px,calc(var(--ui-width,100vw) - 34px));line-height:1.7}.modal-body p{color:#a8a8b9;font-size:14px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:17px;font-size:13px;color:#b5b5c7}input[type=text],input[type=number],input[type=password],select,textarea{border:1px solid #3a3a49;background:#242530;color:var(--text);border-radius:8px;padding:11px 12px;width:100%;font-size:14px;min-height:42px}textarea{resize:vertical;min-height:83px}input[type=checkbox]{accent-color:var(--accent)}.field input[type=color]{width:100%;height:37px;border:1px solid #3a3a49;border-radius:7px;background:transparent;padding:2px}.inline-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:99;background:#333241;border:1px solid #68637f;border-radius:10px;padding:12px 20px;font-size:13px;box-shadow:0 10px 30px #0005;max-width:calc(var(--ui-width,100vw) - 32px);transition:.2s;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}.tab-row{margin:20px 0 17px}.emoji-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.emoji-grid button{font-size:29px;border:1px solid #2f303a;border-radius:9px;aspect-ratio:1;background:#20212a}.emoji-grid button:hover{border-color:var(--accent);background:#b8b4ff11}.full{width:100%}.empty-message{font-size:13px;color:#858597;text-align:center;padding:23px 5px;line-height:1.7}.progress-bar{width:100%;height:6px;background:#373744;border-radius:6px;overflow:hidden}.progress-bar>span{height:100%;display:block;background:var(--accent);transition:width .2s}.export-preview{width:90px;height:90px;border-radius:8px;object-fit:cover}.export-summary{display:flex;gap:18px;align-items:center;margin-bottom:22px}.export-summary strong{font-size:17px}.export-summary p{margin:3px 0}.project-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.project-card{border:1px solid #3b3b49;border-radius:10px;overflow:hidden;position:relative}.project-card>button{width:100%;text-align:left;padding:0}.project-card img,.project-placeholder{width:100%;height:130px;object-fit:cover;background:linear-gradient(135deg,#424064,#a97e90);display:grid;place-items:center}.project-card strong{display:block;padding:12px 12px 0;font-size:14px}.project-card small{display:block;color:#9090a2;padding:5px 12px 12px}.project-card .project-card-tools{display:flex;justify-content:flex-end;border-top:1px solid #33343e;padding:3px 7px}.project-card-tools .icon-button{width:28px;height:28px}.project-card-tools svg{width:14px;height:14px}.help-content h3{font-size:16px;color:#deddea;margin:23px 0 5px}.help-content p,.help-content li{font-size:14px;color:#a5a5b8}.help-content a{color:var(--accent)}.kbd{font-size:11px;background:#2d2d3b;border:1px solid #454553;padding:2px 5px;border-radius:4px}.giphy-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.giphy-grid button{aspect-ratio:1;background:#24242f;border-radius:7px;overflow:hidden;padding:7px}.giphy-grid img{width:100%;height:100%;object-fit:contain}.giphy-brand{font-size:10px;letter-spacing:.7px;display:flex;align-items:center;gap:6px;color:#d0cfda;margin:14px 0}.giphy-logo{background:linear-gradient(0deg,#00ff99,#00ccff,#9933ff,#ff6666);padding:2px;width:14px;height:17px}.giphy-logo:after{content:'';display:block;background:#111;width:100%;height:100%}.form-check{display:flex;align-items:flex-start;gap:10px;color:#a3a3b5;font-size:12px;line-height:1.6}.giphy-search{display:flex;gap:7px;margin:15px 0}.giphy-search .button{padding:7px 10px}.warning-note{border:1px solid #79642f;background:#77602519;border-radius:8px;padding:12px;font-size:12px;color:#d2c295;line-height:1.6}.crop-settings{margin-top:24px;border-top:1px solid var(--line);padding-top:5px}.trim-preview{width:100%;max-height:180px;object-fit:contain;border-radius:8px;background:#111}.clip-inspector-head{display:flex;gap:10px;align-items:center;margin-top:20px;color:#c7c6d4;font-size:12px}.info-chip{border:1px solid #373744;border-radius:4px;font-size:10px;color:#9493a4;padding:3px 6px}.mobile-only{display:none}
@media(min-width:1600px){.editor{grid-template-columns:240px minmax(330px,1fr) 350px}.canvas-wrap{max-height:600px}.inspector{padding:30px}.filter-grid{gap:21px 17px}}@media(max-width:1100px){.topbar{padding:0 20px;gap:20px}.brand{min-width:150px}.studio-label{display:none}.editor{grid-template-columns:175px minmax(300px,1fr) 260px}.source-sidebar{padding:25px 10px}.source-item{font-size:13px;gap:10px;padding:11px 10px}.workspace{padding:20px 20px 0}.inspector{padding:25px 18px 0}.timeline-section{padding:20px}.source-item .shortcut{display:none}.sidebar-footer{padding:30px 3px 0}.local-badge{font-size:10px}.timeline-help{display:none}.canvas-wrap{max-height:390px}}@media(max-width:850px){.editor{grid-template-columns:1fr 255px;grid-template-rows:minmax(500px,calc(100vh - 280px)) auto}.source-sidebar{display:none}.brand{min-width:auto}.project-heading{margin-left:10px}.topbar{height:72px}.canvas-wrap{max-height:420px}.workspace{padding:17px 20px 0}.effect-dock{gap:20px}.timeline-section{padding:17px 20px}.clip-toolbar{gap:16px}.clip-toolbar>div{gap:15px}.header-actions{gap:6px}}
@media(max-width:620px){.topbar{height:64px;padding:0 14px;gap:12px}.brand{font-size:24px;gap:8px}.brand-symbol{height:29px;width:29px;font-size:22px;border-radius:9px}.project-heading{margin-left:0;min-width:0}.project-name{font-size:12px;max-width:120px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.save-state{font-size:9px}.header-actions{gap:3px}.header-actions>.icon-button{display:none}.header-actions .button{padding:8px 11px;font-size:11px;min-height:34px}.header-actions #projects-button{width:33px;padding:8px;font-size:0;border:0;background:none}.editor{display:flex;flex-direction:column}.workspace{padding:13px 16px 0;min-height:510px;height:calc(100svh - 247px);max-height:760px}.preview-top{margin-bottom:12px}.mode-switch button{font-size:11px;padding:6px 13px}.preview-area{min-height:200px}.canvas-wrap{height:100%;max-height:100%;border-radius:10px}.preview-label{font-size:7px;padding:3px 5px;top:10px;left:10px}.playback-controls{height:56px}.effect-dock{padding:10px 0 14px;gap:32px;max-width:none}.effect-dock button{font-size:9px}.effect-dock button svg{width:22px;height:22px}.inspector{display:none;position:fixed;z-index:20;bottom:0;left:0;right:0;border-radius:19px 19px 0 0;max-height:68svh;padding:23px 23px 0;box-shadow:0 -20px 90px #0009;border:1px solid #383845;min-height:260px}.inspector.open{display:flex}.inspector .mobile-close{display:grid}.inspector h1{font-size:21px}.inspector .filter-grid{grid-template-columns:repeat(3,1fr)}.inspector-bottom{display:none}.panel-intro{margin:10px 0 15px}.filter-card{gap:5px}.filter-thumbnail{aspect-ratio:1.25}.timeline-section{padding:15px 16px 12px}.timeline-heading{margin-bottom:11px}.timeline-title{gap:7px}.timeline-title strong{font-size:12px}.timeline-title #clip-count{font-size:9px;margin-left:0}.timeline-title svg{width:17px!important;height:17px!important}.timeline-actions .button{font-size:0;margin-left:3px;padding:6px;min-height:26px;border:0}.timeline-actions .button svg{width:17px;height:17px}.timeline-actions .icon-button{height:27px;width:27px}.timeline-clips{gap:9px}.timeline-clip{height:66px;width:108px}.add-clip{height:66px;width:75px}.add-clip span{display:none}.clip-toolbar{margin-top:8px;gap:10px}.clip-toolbar>span:first-child{display:none}.clip-toolbar>div{justify-content:space-between;gap:12px}.tool-button{font-size:10px}.tool-button svg{width:12px;height:12px}.timeline-help{display:none}.capture-controls{height:90px}.record-button{width:55px;height:55px}.modal-head{padding:18px}.modal-body{padding:18px}.modal-head h2{font-size:18px}.project-grid{gap:11px}.project-card img,.project-placeholder{height:110px}.emoji-grid{grid-template-columns:repeat(6,1fr)}.giphy-grid{grid-template-columns:repeat(3,1fr)}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-width:360px){.project-heading{display:none}.header-actions{margin-left:auto}.effect-dock{gap:22px}.clip-toolbar>div{gap:8px}}
/* One mobile app surface on every screen. */
body{background:#08090d;max-width:480px;margin:0 auto;height:var(--ui-height,100dvh);overflow:hidden;position:relative;border-left:1px solid #24242c;border-right:1px solid #24242c;box-shadow:0 0 90px #0009}.topbar{height:68px;padding:12px 14px 8px;gap:9px;position:relative;border:0;background:var(--bg)}.brand{min-width:0;width:38px;height:38px;justify-content:center;font-size:0;letter-spacing:0}.brand-symbol{display:none}.brand>span:last-child{font-size:0}.studio-label{display:none}.project-heading{align-items:center;margin:0;min-width:0;gap:3px}.project-name{align-self:center;font-size:14px;font-weight:600;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.save-state{font-size:10px}.header-actions{gap:0}.header-actions>.icon-button,#projects-button{display:none}.header-actions #export-button{background:none;color:var(--accent);border:0;padding:8px;width:38px;height:38px;min-height:38px;font-size:0}.header-actions #export-button:before{content:'↥';font-size:31px;font-weight:400;line-height:1}.editor{display:flex;flex-direction:column;height:calc(var(--ui-height,100dvh) - 68px);max-width:none}.source-sidebar{display:none}.workspace{flex:1;min-height:0;height:auto;max-height:none;padding:9px 16px 0;background:var(--bg);overflow:hidden}.preview-top{margin-bottom:11px}.mode-switch{padding:3px}.mode-switch button{font-size:11px;padding:6px 16px}.ratio-button{font-size:11px}.preview-area{min-height:130px;flex:1;overflow:hidden}.canvas-wrap{height:100%;max-height:100%;max-width:100%;border-radius:12px;aspect-ratio:1;box-shadow:none}.preview-label{font-size:7px;padding:3px 5px;top:10px;left:10px}.playback-controls{height:55px;gap:18px}.play-button{width:39px;height:39px}.time-display{font-size:11px}.effect-dock{padding:9px 0 13px;gap:35px;max-width:none;border:0}.effect-dock button{font-size:10px;gap:7px;min-width:48px}.effect-dock button svg{width:25px;height:25px}.effect-dock button.active svg{filter:drop-shadow(0 0 6px #b8b4ff33)}.inspector{display:none;position:absolute;z-index:20;bottom:0;left:0;right:0;max-height:64dvh;min-height:280px;padding:25px 20px max(18px,var(--ui-safe-bottom));border:1px solid #3b3b49;border-bottom:0;border-radius:22px 22px 0 0;background:#1b1c24;box-shadow:0 -30px 100px #0009}.inspector:before{content:'';height:4px;width:32px;position:absolute;top:9px;left:calc(50% - 16px);background:#555563;border-radius:5px}.inspector.open{display:flex}.inspector-heading{margin-bottom:4px}.inspector .mobile-close{display:grid}.inspector h1{font-size:21px}.inspector-heading .section-title{font-size:9px;margin-bottom:5px}.panel-intro{margin:7px 0 17px;font-size:12px}.panel-body{padding:0 3px 8px}.filter-grid{grid-template-columns:repeat(3,1fr);gap:15px 13px}.filter-thumbnail{aspect-ratio:1.2}.filter-card{font-size:11px;gap:7px}.inspector-bottom{display:none}.timeline-section{flex:none;height:160px;padding:11px 16px 9px;background:#171820;border-top:1px solid #292a34;overflow:hidden}.timeline-heading{margin-bottom:8px;gap:5px}.timeline-title{gap:6px}.timeline-title strong{font-size:11px}.timeline-title #clip-count{font-size:9px;margin-left:0}.timeline-title>span[data-icon] svg{width:15px;height:15px}.timeline-actions{gap:0}.timeline-actions .icon-button{width:25px;height:25px}.timeline-actions .icon-button svg{width:14px;height:14px}.timeline-actions .button{font-size:0;padding:5px;margin-left:4px;min-height:25px;border:0;background:none}.timeline-actions .button svg{width:17px;height:17px}.timeline-clips{gap:10px;min-height:63px}.timeline-clip{height:63px;width:101px;border-radius:7px}.add-clip{height:63px;width:64px}.add-clip span{display:none}.clip-toolbar{gap:10px;margin-top:7px}.clip-toolbar>span:first-child{display:none}.clip-toolbar>div{justify-content:space-between;gap:10px}.tool-button{font-size:10px;gap:5px}.tool-button svg{width:12px;height:12px}.timeline-help{display:none}.capture-controls{height:99px;padding-top:8px;gap:30px}.record-button{width:61px;height:61px}.capture-controls>.icon-button{margin-top:12px}.record-hint{bottom:9px;font-size:10px}.panel-note{margin-top:20px}.emoji-grid{grid-template-columns:repeat(6,1fr)}.emoji-grid button{font-size:25px}.giphy-grid{grid-template-columns:repeat(3,1fr)}dialog{max-width:min(444px,calc(var(--ui-width,100vw) - 28px));border-radius:19px}.modal-body{min-width:min(390px,calc(var(--ui-width,100vw) - 30px));padding:21px}.modal-head{padding:18px 21px}.modal-head h2{font-size:19px}.modal-actions{flex-wrap:wrap}.project-grid{gap:12px}.project-card img,.project-placeholder{height:112px}.toast{font-size:12px;bottom:20px;width:max-content;max-width:min(430px,calc(var(--ui-width,100vw) - 32px))}.setting-row{font-size:12px}.sheet-backdrop{position:absolute;inset:0;background:#05050b65;z-index:19;backdrop-filter:none}.seek-slider{position:absolute;bottom:0;left:0;width:100%;height:14px;margin:0!important;opacity:.75;z-index:3;accent-color:var(--accent)}.preview-area .canvas-wrap{flex-shrink:0}.empty-project{max-width:270px;pointer-events:auto;display:flex;flex-direction:column;align-items:center;gap:15px;color:#aeacbe;font-size:13px;line-height:1.5}.empty-project strong{font:700 23px Manrope,system-ui;color:#eeedf5}.empty-project>svg{width:45px;height:45px;color:var(--accent)}.empty-project .button{font-size:13px;min-width:175px}.export-status{text-align:center}.export-status strong{display:block;font-size:19px;margin:18px 0 8px}.moving-overlay{cursor:grabbing}.source-actions{display:flex;gap:8px;margin-bottom:18px}.source-actions .button{flex:1;font-size:12px;padding:8px}.mobile-only{display:inline-flex}.help-link{font-size:13px}.danger-primary{background:var(--pink);color:#fff}.overlay-transform-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.source-label{font-size:10px;color:#9d9bad;margin-left:10px}.camera-switches{display:flex;justify-content:center;gap:22px;margin:15px 0}.camera-switches label{font-size:12px;color:#a3a2b5;display:flex;gap:6px;align-items:center}
@media(max-height:700px){.topbar{height:57px}.editor{height:calc(var(--ui-height,100dvh) - 57px)}.timeline-section{height:142px;padding:8px 13px}.timeline-clip,.add-clip{height:53px}.timeline-clips{min-height:53px}.workspace{padding:4px 13px 0}.preview-top{margin-bottom:7px}.playback-controls{height:46px}.effect-dock{padding:6px 0 10px}.effect-dock button svg{width:22px;height:22px}.capture-controls{height:85px}.record-button{width:53px;height:53px}.clip-toolbar{margin-top:4px}.timeline-heading{margin-bottom:6px}}

html{height:100%;display:grid;place-items:center;background:#08090d}body{height:min(var(--ui-height,100dvh),900px);max-height:900px;margin:0}.editor{height:calc(100% - 68px)}.save-state{display:none}.topbar{background:#101116}.project-name{font-weight:550}.timeline-title strong,.timeline-title>span[data-icon]{display:none}.timeline-title #clip-count{font-size:10px;color:#a8a6b7}.timeline-section{height:150px}.effect-dock button{color:#dbd9e4}.effect-dock button.active{color:var(--accent)}.filter-thumbnail,.timeline-clip,.canvas-wrap{border-radius:8px}.mode-switch{background:transparent;border:0}.mode-switch button.active{background:#2a2933}.mode-switch button{font-size:12px}.record-button{border-color:var(--pink)}.recording .canvas-wrap{outline:2px solid var(--pink);outline-offset:3px}.section-title{display:none}.panel-body .panel-intro{font-size:12px}.timeline-actions .button{color:var(--accent)}
@media(max-height:700px){.editor{height:calc(100% - 57px)}.timeline-section{height:135px}}

body{min-height:0}.topbar .brand:after,.header-actions #export-button:before{content:none}.brand svg,.header-actions #export-button svg{width:24px;height:24px}.project-heading{gap:0}.preview-label{display:none}.timeline-clip .clip-visual{font-size:10px}.timeline-clip .clip-visual>span{line-height:1.05;padding:8px 10px 17px!important}.tool-button{min-height:28px}.effect-dock button{padding:0}.sheet-backdrop{touch-action:none}

.effect-dock{gap:35px;padding:5px 0 7px}.effect-dock button{width:44px;height:44px;justify-content:center}.effect-dock button>span:last-child{display:none}.effect-dock button svg{width:26px;height:26px}.clip-toolbar{margin-top:3px}.clip-toolbar>div{gap:18px;justify-content:space-between}.tool-button{font-size:0;width:44px;height:36px;padding:0;justify-content:center}.tool-button svg{width:19px;height:19px}.timeline-section{height:162px;padding-bottom:max(8px,var(--ui-safe-bottom))}.topbar{padding-top:max(10px,var(--ui-safe-top))}.brand,.header-actions #export-button{width:44px;height:44px}.mode-switch button{min-height:32px}.ratio-button{min-width:48px;min-height:38px}.icon-button{min-height:36px}.timeline-actions .icon-button{min-height:27px}.recording .effect-dock{opacity:.3}.modal-head .icon-button{width:42px;height:42px}@media(max-height:700px){.timeline-section{height:153px}.effect-dock{padding:1px 0 5px}.effect-dock button{height:35px}}
.native-trim{position:absolute;inset:0;background:#fff;color:#111;z-index:80;display:flex;flex-direction:column;padding:15px 16px max(20px,var(--ui-safe-bottom));font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;overflow:hidden}.trim-header{display:flex;justify-content:space-between;align-items:center;min-height:43px;padding:0 7px 8px;flex-shrink:0}.trim-header button{border-radius:22px;font-weight:650;font-size:15px;padding:8px 14px;line-height:1;min-height:34px}.trim-cancel{background:#f9f9f9;border:1px solid #e7e7e7;color:#151515}.trim-done{background:#ffd400;color:#000}.trim-info{display:flex;align-items:center;justify-content:space-between;height:55px;flex-shrink:0;padding:0 1px;color:#8c8c90;font-size:15px;letter-spacing:.4px}.trim-circle{width:44px;height:44px;display:grid;place-items:center;border:1px solid #ededed;border-radius:50%;background:#fcfcfc;color:#151515}.trim-circle svg{width:25px;height:25px}.trim-view{flex:1;display:flex;align-items:center;justify-content:center;min-height:120px;overflow:hidden;margin:7px 2px 17px}.trim-view canvas{display:block;max-height:100%;max-width:100%;border-radius:0;object-fit:contain}.trim-film{display:flex;height:56px;margin:0 1px;flex-shrink:0;gap:1px;background:#bababe;border-radius:5px;overflow:hidden;padding:4px}.trim-play{width:44px;flex-shrink:0;display:grid;place-items:center;color:#fff}.trim-play svg{width:23px;height:23px;fill:white;stroke:none}.trim-rail{flex:1;min-width:0;position:relative;touch-action:none;margin-left:2px}.trim-thumbnails{position:absolute;inset:0;display:flex;overflow:hidden;background:#c2c2c7}.trim-thumbnails canvas{width:10%;height:100%;object-fit:cover;flex-shrink:0}.trim-selection{position:absolute;top:-4px;bottom:-4px;left:0;width:100%;border-top:5px solid #ffd400;border-bottom:5px solid #ffd400;pointer-events:none;z-index:3}.trim-handle{position:absolute;top:-5px;bottom:-5px;width:20px;background:#ffd400;color:#171700;pointer-events:auto;touch-action:none;cursor:ew-resize;border-radius:3px;display:grid;place-items:center;padding:0;outline-offset:2px}.trim-handle.start{left:0}.trim-handle.end{right:0}.trim-handle span{font:700 35px system-ui;line-height:1;transform:scaleX(.7);pointer-events:none}.trim-excluded{position:absolute;top:0;bottom:0;background:#1c1c206f;z-index:2;pointer-events:none}.trim-excluded.before{left:0}.trim-excluded.after{right:0}.trim-cursor{position:absolute;top:3px;bottom:3px;width:2px;background:#fff;box-shadow:0 0 3px #0008;pointer-events:none;z-index:4;max-width:100%;}.trim-times{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;font-variant-numeric:tabular-nums;font-size:11px;color:#8b8b90;padding:8px 6px 0;height:24px}.trim-duration-time{color:#55555b}.trim-bottom{display:flex;align-items:center;justify-content:space-around;gap:0;width:min(320px,100%);margin:23px auto 0;padding:8px 10px;border:1px solid #eeeeef;border-radius:40px;background:#ffffff;box-shadow:0 4px 25px #00000005;flex-shrink:0;min-height:67px}.trim-bottom button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#949497;min-height:47px;min-width:50px;font-size:10px;padding:0;position:relative}.trim-bottom button svg{width:25px;height:25px;stroke-width:1.6}.trim-bottom button.selected{color:#111}.trim-bottom button.selected:before{content:'';position:absolute;top:-6px;border-left:3px solid transparent;border-right:3px solid transparent;border-top:5px solid #ffd400}.trim-bottom button.selected svg{stroke-width:2}.trim-adjustments{flex-shrink:0;margin:10px 0 0;max-height:140px;overflow:auto;color:#222}.trim-filter-row{display:flex;gap:12px;overflow-x:auto;padding:7px}.trim-filter-row button{font-size:11px;flex-shrink:0;color:#666;min-width:62px;text-align:center}.trim-filter-row button>span{display:block;width:62px;height:58px;border-radius:7px;margin-bottom:6px}.trim-filter-row button.active>span{outline:2px solid #e6bd00;outline-offset:2px}.trim-filter-row button.active{color:#111}.trim-range-label{display:block;color:#666;font-size:12px;padding:6px 10px}.trim-range-label input{accent-color:#f1c900;height:5px;margin:17px 0 11px}.trim-crop-actions{display:flex;justify-content:center;gap:25px}.trim-crop-actions button,.trim-setting-toggle{font-size:13px;display:inline-flex;align-items:center;gap:9px;border:1px solid #e9e9eb;background:#f9f9fa;border-radius:20px;padding:9px 13px;min-height:38px}.trim-crop-actions svg,.trim-setting-toggle svg{width:19px;height:19px}.trim-setting-toggle{margin:8px auto;display:flex;width:max-content}.native-trim button:focus-visible{outline:2px solid #b79800}.native-trim button:hover{filter:brightness(.96)}@media(max-height:700px){.native-trim{padding:8px 12px 13px}.trim-header{min-height:40px}.trim-info{height:43px}.trim-view{margin:4px 0 12px}.trim-bottom{margin-top:12px;min-height:61px;padding:5px 10px}.trim-film{height:52px}.trim-adjustments{max-height:110px}}

.native-trim{background:#1b1b1b;color:#fff;padding:0 0 max(7px,var(--ui-safe-bottom))}.trim-view{margin:16px 16px 24px;flex:1;min-height:100px}.trim-view canvas{border-radius:0}.trim-film{height:78px;padding:0;background:#171717;border-radius:0;margin:0 0 0 0;overflow:visible}.trim-rail{margin:0}.trim-thumbnails{background:#202024}.trim-thumbnails canvas{width:10%;filter:brightness(.9)}.trim-selection{top:0;bottom:0;border-top:2px solid #ffdf4f;border-bottom:2px solid #ffdf4f}.trim-handle{top:-2px;bottom:-2px;background:#ffdf4f;color:#0c0c0c;border-radius:0;width:17px}.trim-handle.start{left:0}.trim-handle.end{right:0}.trim-handle span{font:700 42px system-ui;transform:scaleX(.65)}.trim-excluded{background:#0a0d18aa}.trim-cursor{background:#fff;width:5px;top:2px;bottom:2px;border-radius:3px;box-shadow:0 0 0 1px #888}.trim-actions{height:82px;min-height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;flex-shrink:0}.trim-actions .trim-cancel,.trim-actions .trim-done{background:none;border:0;border-radius:0;font-size:21px;font-weight:500;padding:12px 0;min-width:75px;text-align:left;line-height:1.1;min-height:48px}.trim-actions .trim-cancel{color:var(--pink)}.trim-actions .trim-done{color:#ffdc46;text-align:right}.trim-actions .trim-play{width:52px;height:52px;background:none;border:0;color:#fff}.trim-actions .trim-play svg{width:31px;height:31px}.native-trim button:focus-visible{outline:2px solid #ffdf4f}.trim-times{display:none}.native-trim .trim-adjustments{display:none}@media(max-height:700px){.native-trim{padding:0 0 5px}.trim-view{margin:12px 12px 20px}.trim-film{height:68px}.trim-actions{height:77px;min-height:77px}}

.trim-duration-readout{font-size:23px;line-height:1.3;color:white;text-align:center;padding:4px 0 12px;flex-shrink:0;font-weight:400;font-variant-numeric:tabular-nums}.trim-times{display:flex!important;order:0;position:absolute;bottom:90px;left:21px;right:21px;color:#a7a7ab;font-size:10px;height:18px;padding:0;pointer-events:none}.trim-actions{height:93px;min-height:93px;align-items:flex-end;padding-bottom:16px}.trim-actions .trim-done:disabled{color:#676767;opacity:1}.trim-view{position:relative}.trim-crop-toggle{position:absolute;right:4px;top:4px;width:42px;height:42px;background:#151515b0;backdrop-filter:none;color:#fff;border:1px solid #ffffff25;border-radius:50%;display:grid;place-items:center;z-index:2}.trim-crop-toggle.active{color:#ffdf4f}.trim-crop-toggle svg{width:24px;height:24px}.trim-crop-frame{position:absolute;border:1px solid #fffc;touch-action:none;cursor:move;background:linear-gradient(to right,transparent 33.1%,#ffffff70 33.1%,#ffffff70 33.4%,transparent 33.4%,transparent 66.4%,#ffffff70 66.4%,#ffffff70 66.7%,transparent 66.7%),linear-gradient(to bottom,transparent 33.1%,#ffffff70 33.1%,#ffffff70 33.4%,transparent 33.4%,transparent 66.4%,#ffffff70 66.4%,#ffffff70 66.7%,transparent 66.7%);z-index:1}.trim-crop-frame:before,.trim-crop-frame:after{content:'';position:absolute;inset:-3px;border:3px solid #fff;clip-path:polygon(0 0,20px 0,20px 3px,3px 3px,3px 20px,0 20px,0 0,100% 0,100% 20px,calc(100% - 3px) 20px,calc(100% - 3px) 3px,calc(100% - 20px) 3px,calc(100% - 20px) 0)}.trim-crop-frame:after{transform:rotate(180deg)}.native-trim.crop-active .trim-adjustments{display:flex;align-items:center;justify-content:center;gap:8px;padding:0 18px 5px;margin:0;height:48px;max-height:48px;flex-shrink:0}.trim-adjustments .trim-range-label{display:flex;align-items:center;gap:10px;flex:1;color:#ccc;font-size:11px;padding:0}.trim-adjustments input{accent-color:#ffdf4f;margin:0!important;flex:1}.trim-crop-rotate{width:37px;height:37px;display:grid;place-items:center;color:#fff}.trim-crop-reset{font-size:11px;color:#fff;padding:9px 0}.trim-crop-rotate svg{width:21px;height:21px}.trim-selection{border-top:5px solid #ffdf4f;border-bottom:5px solid #ffdf4f}.trim-handle{top:-5px;bottom:-5px;width:19px}.trim-duration-readout{padding-bottom:10px}@media(max-height:700px){.trim-duration-readout{font-size:20px;padding-bottom:8px}.trim-actions{height:85px;min-height:85px;padding-bottom:12px}.trim-times{bottom:82px}.trim-crop-toggle{width:38px;height:38px}}

.trim-view{order:0}.trim-adjustments{order:1}.trim-duration-readout{order:2}.trim-film{order:3;margin-inline:24px}.trim-times{order:4;position:static;left:auto;right:auto;bottom:auto;height:20px;min-height:20px;padding:5px 20px 0}.trim-actions{order:5;height:79px;min-height:79px;align-items:center;padding-bottom:3px}.record-button{position:relative;touch-action:none}.record-lock-indicator{position:absolute;right:-13px;top:-7px;border-radius:50%;background:var(--pink);color:#fff;width:24px;height:24px;display:grid;place-items:center;box-shadow:0 0 0 3px #101116}.record-lock-indicator svg{width:14px;height:14px}.record-button.locked{border-color:var(--pink)}@media(max-height:700px){.trim-actions{height:70px;min-height:70px;padding-bottom:0}.trim-times{position:static;bottom:auto}}
.record-button>.record-lock-indicator,.record-button.recording>.record-lock-indicator{position:absolute;right:-13px;top:-7px;bottom:auto;left:auto;border-radius:50%;width:24px;height:24px;background:var(--pink);color:#fff}

.trim-gesture-hint{font-size:11px;line-height:1.5;color:#c1c1c5;flex:1;text-align:left}.trim-crop-frame{cursor:ns-resize}.trim-adjustments .trim-crop-reset{padding:10px 0 10px 10px}.native-trim.crop-active .trim-adjustments{height:39px;max-height:39px}

/* Apple Clips capture layout: the same compact mobile surface everywhere. */
:root{--bg:#000;--surface:#18181a;--accent:#fff}.topbar{height:53px;padding:3px 16px;background:#000;justify-content:space-between}.project-heading{display:none}.brand{justify-content:flex-start;width:44px}.brand svg{color:#fff;fill:#fff;width:24px;height:24px}.header-actions{gap:17px;margin-left:auto;display:flex}.header-actions .ratio-button{color:#fff;padding:0;gap:5px;min-width:41px;min-height:42px}.ratio-button svg{width:23px;height:23px}.ratio-button [data-icon=chevron]{display:none}.ratio-button #ratio-label{font-size:10px;color:#aaa}.editor{height:calc(100% - 53px)}.workspace{padding:0 10px;min-height:0;background:#000;position:relative}.preview-top,.effect-dock,.playback-controls{display:none!important}.preview-area{width:100%;height:100%;min-height:180px;flex:1}.canvas-wrap{position:relative;border-radius:0;box-shadow:none;overflow:visible}.canvas-wrap canvas{border-radius:0}.preview-state{z-index:3}.preview-state:not(:empty)~#capture-controls,.preview-state:not(:empty)~.native-camera-options{opacity:.3}.seek-slider{bottom:0;z-index:2;height:4px;opacity:.35}.capture-controls{position:absolute;bottom:23px;left:0;right:0;height:66px;padding:0;display:flex!important;justify-content:center;align-items:center;gap:19px;z-index:4}.record-button{width:var(--round-button-size);height:var(--round-button-size);border-radius:50%;border:0;padding:0;background:var(--pink);box-shadow:0 3px 12px #0002;flex-shrink:0}.record-button>span:first-child{background:var(--pink);width:100%;height:100%;border-radius:inherit}.record-button.recording>span:first-child{width:24px;height:24px;border-radius:5px;background:#fff}.record-button.recording{display:grid;place-items:center;background:var(--pink)}.record-hint{position:absolute;bottom:-18px;font-size:9px;color:#fff;text-shadow:0 1px 3px #000;background:#0003;line-height:1.3;pointer-events:none;border-radius:3px;padding:2px 5px}.native-side-button{height:49px;width:49px;display:grid;place-items:center;background:#27272bab;backdrop-filter:none;color:#fff;border:1px solid #ffffff19;border-radius:50%;flex-shrink:0}.native-side-button svg{width:27px;height:27px}.native-side-button[data-action=effect-menu]{color:#e5baff}.native-camera-options{position:absolute;bottom:119px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:20px;background:#2b2b2b55;backdrop-filter:none;padding:5px 8px 5px 5px;border-radius:30px;z-index:4}.native-camera-options .icon-button{background:#1119;border-radius:50%;width:36px;height:36px;color:#fff}.native-photo-shutter{width:40px;height:40px;border-radius:50%;background:#fff;border:2px solid #b8b8b8;box-shadow:0 0 0 2px #ffffffbb;flex-shrink:0}.native-preview-close{position:absolute;top:11px;left:11px;border-radius:50%;background:#25252570;backdrop-filter:none;width:33px;height:33px;color:#fff;display:grid;place-items:center;z-index:4}.native-preview-close svg{height:22px;width:22px}.timeline-section{height:106px;flex-shrink:0;background:#000;padding:8px 10px 15px;border:0;overflow:visible}.native-filmstrip-row{height:68px;display:flex;align-items:center;gap:10px}.native-filmstrip-row #play-button{width:41px;height:52px;background:none;border:0;border-radius:0;color:#fff;flex-shrink:0}.native-filmstrip-row #play-button svg{width:27px;height:27px;fill:white;stroke:none}.native-filmstrip-row .timeline-scroll{padding:3px 3px 3px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}.native-filmstrip-row .timeline-clips{gap:4px;min-height:58px}.native-filmstrip-row .timeline-clip{height:58px;width:58px;border-radius:0;outline:2px solid transparent;outline-offset:0}.native-filmstrip-row .timeline-clip.selected{outline-color:#ffcc35}.clip-visual{font-size:8px;padding:3px}.clip-duration,.clip-number,.clip-type{display:none}.clip-progress{width:2px}.add-clip{height:58px;width:46px;border-radius:0;border:1px solid #444;color:#fff}.native-filmstrip-row #export-button{background:none;color:#fff;font-size:0;width:41px;height:52px;padding:0;display:grid;place-items:center;flex-shrink:0}.native-filmstrip-row #export-button:before{content:none}.native-filmstrip-row #export-button svg{height:26px;width:26px}.timeline-heading{display:none}.clip-toolbar{display:none!important}.native-effect-options{display:flex;justify-content:space-around;gap:15px;padding:22px 0 16px}.native-effect-options button{display:flex;flex-direction:column;align-items:center;gap:11px;width:90px;font-size:12px;color:#dedde3}.native-effect-options button svg{width:35px;height:35px;color:#fff}.inspector{background:#202023;border-color:#444}.inspector .section-title{display:none}.inspector h1{font-size:19px}.inspector .filter-card.selected .filter-thumbnail{outline-color:#ffcc35}.inspector .filter-card.selected{color:#ffcc35}.inspector .filter-card i{background:#ffcc35}.recording .canvas-wrap{outline:none}.record-lock-indicator{background:var(--pink)}.empty-project .button.primary{color:#111}.button.primary{background:#ffcc35;color:#141414}.toast{z-index:100;background:#303034;border-color:#555}.inspector .native-effect-options{margin-top:10px}.inspector .source-actions{flex-wrap:wrap}.native-trim{z-index:80}.native-trim .trim-view{margin-top:16px}@media(max-height:700px){.topbar{height:48px}.editor{height:calc(100% - 48px)}.timeline-section{height:93px;padding-bottom:10px}.capture-controls{bottom:22px;gap:14px}.record-button{width:var(--round-button-size);height:var(--round-button-size)}.native-side-button{width:45px;height:45px}.native-camera-options{bottom:104px}.record-hint{font-size:8px}.native-filmstrip-row{height:62px}.native-filmstrip-row .timeline-clip{height:54px;width:54px}.add-clip{height:54px}.native-filmstrip-row .timeline-clips{min-height:54px}}

/* Clips: controls belong to the screen, independent of the preview ratio. */
.editor{position:relative}.workspace{padding:0;overflow:hidden}.preview-area{position:absolute;inset:0;width:100%;height:100%}body:not([data-ratio="9:16"]) .preview-area{height:calc(100% - 225px)}.canvas-wrap{overflow:hidden}.capture-controls{bottom:119px;left:22px;right:22px;gap:0;justify-content:space-between}.capture-controls[hidden],.native-camera-options[hidden],.native-clip-tools[hidden],.native-done[hidden],.native-clip-counter[hidden],.native-effect-tabs[hidden],.ratio-button[hidden],.brand[hidden]{display:none!important}.record-button{width:var(--round-button-size);min-width:var(--round-button-size);max-width:var(--round-button-size)}.native-camera-options{bottom:210px}.native-side-button{width:55px;height:55px;background:#242424c9;border:0}.native-side-button svg{width:30px;height:30px}.native-preview-close{display:none!important}.timeline-section{position:absolute;bottom:24px;left:0;right:0;height:75px;padding:5px 18px;background:#0006;z-index:5}.native-filmstrip-row{height:65px;gap:15px}.native-filmstrip-row .timeline-clip{width:61px;height:61px;outline-width:2px}.native-filmstrip-row .timeline-clip.selected{outline-color:white}.native-filmstrip-row .timeline-clips{min-height:61px;gap:2px}.native-filmstrip-row .add-clip{width:38px;height:61px;background:#1116}.native-filmstrip-row #play-button,.native-filmstrip-row #export-button{width:35px}.native-clip-tools{position:absolute;bottom:120px;left:9px;right:9px;display:flex;justify-content:space-around;gap:4px;z-index:5}.native-clip-tools button{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;color:#c1c1c4;font-size:12px;flex:1}.native-tool-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#242424b8;color:#fff}.native-tool-icon svg{width:29px;height:29px}.native-clip-tools button:disabled{opacity:.4}.native-done{font-size:19px;font-weight:500;color:var(--pink);padding:8px 0;min-width:56px}.native-clip-counter{position:absolute;left:50%;transform:translateX(-50%);font-size:18px;font-weight:500;pointer-events:none}.topbar{position:relative;z-index:6}.topbar .header-actions [data-action=help],.topbar #projects-button{display:none}.brand{min-width:40px}.ratio-button #ratio-label{display:none}.ratio-button svg{width:28px;height:28px}.native-camera-options{background:#242424b8;gap:19px}.native-photo-shutter{height:42px;width:42px;border:2px solid #fff;box-shadow:inset 0 0 0 2px #333,0 0 0 2px #fff}.record-hint{bottom:-21px;font-size:9px}.inspector{padding:27px 0 max(10px,var(--ui-safe-bottom));height:var(--sheet-height,324px);max-height:calc(100% - 64px);min-height:0;z-index:25;overflow:visible;box-shadow:none;background:#2b2b2e;border:0;border-radius:13px 13px 0 0;transition:height .22s cubic-bezier(.2,.8,.2,1)}.inspector.sheet-dragging{transition:none}.inspector:before{display:none}.sheet-grip{position:absolute;left:0;right:0;top:0;width:100%;height:23px;display:flex;align-items:center;justify-content:center;touch-action:none;cursor:ns-resize}.sheet-grip span{height:5px;width:38px;border-radius:8px;background:#727276}.inspector-heading{padding:0 18px 14px;min-height:44px;touch-action:none;cursor:ns-resize;flex-shrink:0}.inspector h1{font-size:23px;font-weight:600}.mobile-close{background:#404044;width:34px;height:34px;border-radius:50%;color:#b9b9bd}.mobile-close svg{width:23px;height:23px}.panel-body{padding:0 18px 12px;min-height:0;overflow:auto}.inspector-bottom{display:none}.sheet-backdrop{background:none;backdrop-filter:none;pointer-events:none}.native-effect-tabs{position:absolute;left:15px;right:15px;top:-53px;height:41px;display:flex;gap:16px;align-items:center;justify-content:flex-start}.native-effect-tabs button{width:39px;height:39px;display:grid;place-items:center;background:#232326e6;border-radius:50%;border:2px solid transparent}.native-effect-tabs button.active{border-color:#fff}.native-effect-tabs svg{width:24px;height:24px}.native-effect-tabs [data-effect-category=text]{color:#35c9f7}.native-effect-tabs [data-effect-category=giphy]{color:var(--pink)}.native-effect-tabs [data-effect-category=emoji]{color:#ffd336}.effects-open .native-clip-tools,.effects-open .capture-controls,.effects-open .native-camera-options{visibility:hidden}.inspector .filter-grid{display:flex;overflow-x:auto;gap:15px;margin:12px -18px 0!important;padding:0 18px 15px;scrollbar-width:none}.filter-card{width:86px;flex:0 0 86px;font-size:13px;position:relative}.filter-thumbnail{height:86px;width:86px;border-radius:11px}.filter-thumbnail canvas{width:100%;height:100%;object-fit:cover;border-radius:11px}.filter-card.selected .filter-thumbnail{outline:3px solid #ffce00;outline-offset:4px}.filter-card i{display:none}.filter-card>span:last-of-type{display:block;margin-top:11px}.inspector .tab-row{display:none}.emoji-grid{grid-template-columns:repeat(3,1fr);gap:22px;margin:14px 0}.emoji-grid button{font-size:45px;height:80px}.giphy-grid{grid-template-columns:repeat(3,1fr);gap:18px}.giphy-grid button{background:none;border:0;aspect-ratio:1}.giphy-search{margin:8px 0 20px}.giphy-brand{margin-top:18px}.giphy-grid img{max-height:95px}.preview-label{display:none}.film-playing #capture-controls{display:none!important}@media(max-width:380px){.native-tool-icon{width:50px;height:50px}.native-clip-tools button{font-size:10px}.native-side-button{width:48px;height:48px}.capture-controls{left:16px;right:16px}.record-button{min-width:var(--round-button-size)}}@media(max-height:700px){.capture-controls{bottom:98px}.native-camera-options{bottom:183px}.native-clip-tools{bottom:100px}.timeline-section{bottom:12px}.native-tool-icon{width:49px;height:49px}body:not([data-ratio="9:16"]) .preview-area{height:calc(100% - 190px)}}
.header-actions #export-button{display:grid;place-items:center;width:35px;height:42px;background:none;color:#fff;font-size:0;padding:0}.header-actions #export-button:before{content:none}.header-actions #export-button svg{width:25px;height:25px}.header-actions{gap:13px}.clip-selected .native-camera-options{display:none!important}.native-side-button[data-action=import]{color:#fff}.native-filmstrip-row .timeline-scroll{padding-right:4px}.native-effect-tabs [data-effect-category=filters] svg{color:#75bafc}.native-tool-icon svg{filter:none}
/* A centered grid item must have an explicit width; max-width alone shrinks it. */
body{width:min(var(--ui-width,100vw),480px);min-width:0;box-sizing:border-box}.topbar,.editor,.workspace{width:100%;box-sizing:border-box}.topbar{padding-left:18px;padding-right:18px}.native-clip-tools{width:auto}.native-filmstrip-row .timeline-scroll{align-self:stretch;display:flex;align-items:center}.native-filmstrip-row .timeline-clips{flex:0 0 auto}.native-clip-counter{white-space:nowrap}.native-tool-label{white-space:nowrap}.header-actions{flex-shrink:0}
.inspector{max-height:calc(100% - 112px)}.native-flash svg{height:27px;width:27px}.native-flash.active{color:#ffe000}.native-camera-options .native-flash:disabled{opacity:.45}.topbar{height:calc(53px + var(--ui-safe-top));padding-top:var(--ui-safe-top)}.editor{height:calc(100% - 53px - var(--ui-safe-top))}.timeline-section{bottom:max(24px,var(--ui-safe-bottom))}@media(max-height:700px){.topbar{height:calc(48px + var(--ui-safe-top))}.editor{height:calc(100% - 48px - var(--ui-safe-top))}.timeline-section{bottom:max(12px,var(--ui-safe-bottom))}}
.inspector{max-height:calc(100% - 59px)}
.record-timer{display:none;position:absolute;left:50%;transform:translateX(-50%);font-size:20px;font-weight:600;line-height:1;border-radius:5px;padding:7px 10px;background:var(--pink);color:#fff;font-variant-numeric:tabular-nums}.recording .record-timer{display:block}.recording .brand,.recording .header-actions,.recording .native-camera-options,.recording .native-side-button,.recording .timeline-section{visibility:hidden}.recording .record-hint{display:none}.record-button.recording{width:var(--round-button-size);min-width:var(--round-button-size);max-width:var(--round-button-size);height:var(--round-button-size);border-radius:50%;background:var(--pink);display:block}.record-button.recording>span:first-child{width:100%;height:100%;background:var(--pink);border-radius:inherit}.record-button.recording.locked{width:var(--round-button-size);min-width:var(--round-button-size);max-width:var(--round-button-size);border-radius:13px;margin-left:auto;margin-right:auto}.record-lock-indicator{display:none!important}.record-lock-guide{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(100% + 7px);width:30px;display:none;flex-direction:column;align-items:center;gap:6px;pointer-events:none;color:#bababc}.record-lock-guide>span{display:grid;place-items:center;width:28px;height:28px;border:2px solid currentColor;border-radius:50%}.record-lock-guide svg{height:18px;width:18px}.record-lock-guide i{width:1px;height:31px;background:#bababc}.recording .record-lock-guide{display:flex}.record-button.locked~.record-lock-guide{display:none}
.trim-crop-frame{cursor:grab}.trim-crop-frame:active{cursor:grabbing}
.giphy-brand img{width:200px;max-width:100%;height:auto}
@media(max-width:330px){.topbar{padding-left:13px;padding-right:13px}.header-actions{gap:8px}.native-clip-counter{font-size:16px}.native-done{font-size:17px}.header-actions #export-button{width:29px}.capture-controls{left:12px;right:12px}.native-tool-icon{width:45px;height:45px}.native-clip-tools{left:3px;right:3px}}
.native-trim .trim-times{display:none}.native-trim .trim-actions{margin-top:18px}

/* Focused timeline playback. Keep the header geometry stable when controls disappear. */
.native-playback-time{display:none;position:absolute;left:50%;transform:translateX(-50%);font-size:20px;font-weight:500;line-height:1;color:#fff;font-variant-numeric:tabular-nums;pointer-events:none}
.film-playing .native-playback-time{display:block}
.film-playing .brand,.film-playing .native-done,.film-playing .native-clip-counter,.film-playing .header-actions,.film-playing .native-clip-tools,.film-playing .native-camera-options,.film-playing .inspector,.film-playing .seek-slider{visibility:hidden}
.film-playing .timeline-clip.selected{outline-color:transparent}
.film-playing .timeline-clip{opacity:1}
.film-playing .clip-progress{left:0;right:0;width:auto;background:#0009;z-index:5}
.app-update-notice{position:fixed;top:var(--toast-top,80px);left:50%;right:auto;bottom:auto;margin:0;transform:translateX(-50%);box-sizing:border-box;width:max-content;max-width:min(430px,calc(var(--ui-width,100vw) - 24px));padding:10px 14px;display:flex;gap:16px;align-items:center;border:0;border-radius:var(--popup-radius,18px);background:var(--popup-surface,#393b3eef);color:#fff;font-size:13px;z-index:120;box-shadow:0 12px 45px #0005}
.app-update-notice button{padding:8px 12px;border:0;border-radius:10px;background:#ffd539;color:#111;font:inherit;font-weight:600;white-space:nowrap}
.app-update-notice button:disabled{opacity:.6}
.app-version{color:#aaa;font-size:12px}
.native-camera-flip{position:absolute;left:61px;top:50%;transform:translateY(-50%);width:32px;height:32px;margin:0!important;background:#242424c9;border-radius:50%;color:#fff;display:grid;place-items:center}
.native-camera-flip svg{width:23px;height:23px}
.native-camera-options{padding:0;background:none;gap:0;backdrop-filter:none;-webkit-backdrop-filter:none}
.native-camera-options .native-flash:disabled{display:none}
.recording .native-camera-flip{visibility:hidden}
@media(max-width:380px){.record-button:not(.recording){width:36vw;min-width:108px}.native-camera-flip{left:54px;width:28px;height:28px}.native-camera-flip svg{width:21px;height:21px}}

.capture-controls{width:auto;box-sizing:border-box}

.native-filmstrip-row .timeline-clip{width:61px;height:61px;flex:0 0 61px;outline:none!important;box-shadow:none}
.native-filmstrip-row .timeline-clip .clip-visual{padding:0}
.native-filmstrip-row .clip-visual canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.native-filmstrip-row .timeline-clip.selected:after{content:'';position:absolute;inset:0;border:3px solid #fff;box-sizing:border-box;pointer-events:none;z-index:6}
.film-playing .native-filmstrip-row .timeline-clip.selected:after{border-color:transparent}
.native-split .trim-selection,.native-split .trim-handle,.native-split .trim-excluded{display:none}
.native-split .trim-cursor{top:-3px;bottom:-3px;width:6px;border-radius:5px}
.native-split .trim-rail{outline-offset:6px}

.seek-slider{display:none}

dialog.native-delete-sheet{position:fixed;left:50%;top:auto;bottom:max(24px,calc((var(--ui-height,100dvh) - 900px)/2 + 24px));transform:translateX(-50%);margin:0;padding:0;width:calc(min(var(--ui-width,100vw),480px) - 24px);max-width:none;border:0;border-radius:0;box-shadow:none;background:none;overflow:visible}
.native-delete-sheet .modal-head{display:none}
.native-delete-sheet .modal-body{padding:0;min-width:0;display:flex;flex-direction:column;gap:10px}
.native-delete-sheet .modal-body button{display:block;width:100%;min-height:68px;padding:14px 20px;border-radius:15px;background:#2b2b2ee8;backdrop-filter:none;color:var(--pink);font-size:25px;line-height:1.2;text-align:center}
.native-delete-sheet .modal-body .native-delete-confirm{color:#ffdc46}
.native-delete-sheet .native-delete-cancel{font-weight:600;background:#2b2b2e}
.native-delete-sheet::backdrop{background:#0008}

dialog.native-delete-sheet{bottom:var(--delete-sheet-bottom,24px)}
.native-delete-sheet::backdrop{backdrop-filter:none}

:root{--control-icon-size:28px}
button svg,button span[data-icon] svg{width:var(--control-icon-size)!important;height:var(--control-icon-size)!important}

html{height:100%;min-height:100%;place-items:start center}
body{height:var(--ui-height,100dvh);max-height:none;min-height:0}

/* Shared circular controls and centered, consistently sized glyphs. */
:root{--round-button-size:46.8px}
.native-side-button,.native-camera-flip,.native-effect-tabs button,.mobile-close,.trim-crop-toggle,.native-flash,.record-lock-guide>span{width:var(--round-button-size);height:var(--round-button-size);min-width:var(--round-button-size);min-height:var(--round-button-size);padding:0;display:grid;place-items:center;flex-shrink:0;border-radius:50%}
.native-tool-icon{width:var(--round-button-size);height:var(--round-button-size);display:grid;place-items:center;padding:0;flex-shrink:0}
.native-clip-tools button{padding:0}
.native-clip-tools .native-tool-label{display:none}
.icon-button,.ratio-button,.brand{padding:0;align-items:center;justify-content:center}
button svg{flex-shrink:0;margin:0}
.capture-controls,.native-clip-tools{--round-button-size:calc(var(--action-slot,72px)*.9);--action-menu-gap:14px;--action-menu-padding:max(12px,calc((100% - 5*var(--round-button-size) - 4*var(--action-menu-gap))/2));padding:0 var(--action-menu-padding);gap:var(--action-menu-gap)}
.capture-controls{--capture-record-width:var(--round-button-size);left:0;right:0;height:var(--round-button-size);display:grid!important;grid-template-columns:repeat(5,var(--round-button-size));align-items:center;justify-content:center;justify-items:center}
.capture-controls>.native-side-button[data-action=import]{grid-column:1;grid-row:1;justify-self:start}
.capture-controls>.native-camera-flip{grid-column:4;grid-row:1;position:static;left:auto;top:auto;transform:none;width:var(--round-button-size);min-width:var(--round-button-size);height:var(--round-button-size);min-height:var(--round-button-size);padding:0;margin:0!important;background:none;border:0;border-radius:50%;backdrop-filter:none;box-shadow:none;color:#fff}
.capture-controls>.record-button{grid-column:3;grid-row:1;width:var(--round-button-size);min-width:var(--round-button-size);max-width:var(--round-button-size);height:var(--round-button-size);border-radius:50%;justify-self:center}
.capture-controls>.native-side-button[data-action=effect-menu]{grid-column:2;grid-row:1;justify-self:center;margin:0}
.capture-controls>.native-camera-zoom{position:absolute;left:var(--record-origin-x,50%);top:calc(var(--record-origin-y,50%) - var(--record-zoom-height,var(--round-button-size))/2 - 7px);transform:translate(-50%,-100%) translateY(var(--record-drag-y,0px));min-width:32px;padding:3px 4px;border-radius:5px;background:#171719;color:#fff;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.5;text-align:center;white-space:nowrap;z-index:4;touch-action:manipulation}
.record-button.record-returning~.native-camera-zoom{transition:transform .3s cubic-bezier(.2,.8,.2,1),top .3s cubic-bezier(.2,.8,.2,1)}
@media(prefers-reduced-motion:reduce){.record-button.record-returning~.native-camera-zoom{transition-duration:.01s}}
.capture-controls>.native-flash{grid-column:5;grid-row:1;position:static;left:auto;top:auto;transform:none;width:var(--round-button-size);min-width:var(--round-button-size);height:var(--round-button-size);min-height:var(--round-button-size);padding:0;margin:0!important;background:none;border:0;border-radius:50%;backdrop-filter:none;box-shadow:none;color:#fff}
.capture-controls>.native-side-button svg,.capture-controls>.native-camera-flip svg,.capture-controls>.native-flash svg,.native-tool-icon svg{width:calc((var(--round-button-size) - 12px)*.8);height:calc((var(--round-button-size) - 12px)*.8)}
.capture-controls>.native-flash.active{color:#ffe000}
.capture-controls>.native-flash:disabled{display:none}
.recording .capture-controls{display:flex!important;justify-content:center}
.recording .capture-controls>.native-side-button,.recording .capture-controls>.native-camera-flip,.recording .capture-controls>.native-flash{display:none}
.recording .capture-controls>.record-button{width:var(--round-button-size);min-width:var(--round-button-size);max-width:var(--round-button-size);height:var(--round-button-size);border-radius:50%}
.recording .capture-controls>.record-button.locked{width:var(--round-button-size);min-width:var(--round-button-size);max-width:var(--round-button-size);height:var(--round-button-size);border-radius:13px}
.native-effect-tabs{top:calc(-1 * var(--round-button-size) - 12px);height:var(--round-button-size);gap:16px}
.inspector{max-height:var(--ui-height,100dvh)}
.inspector.sheet-full{padding-top:calc(var(--round-button-size) + 38px);border-radius:0}
.inspector.sheet-full .native-effect-tabs{top:25px}
.inspector-heading{align-items:center;min-height:var(--round-button-size)}
.record-lock-guide{width:var(--round-button-size);height:calc(var(--round-button-size) + 37px);gap:0;justify-content:flex-start}
.record-lock-guide i{position:absolute;left:50%;top:var(--round-button-size);transform:translateX(-50%);height:var(--record-lock-line-height,0px);flex-shrink:0}
.effect-settings{margin-top:0;padding-top:0}
.effect-settings .setting-row{margin-top:17px}
.effect-settings output{color:#aaa9b1;font-variant-numeric:tabular-nums}
.effect-settings .field{margin-top:18px}
.effect-switches{margin-top:24px}
.effect-switch{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;border-bottom:1px solid #ffffff10}
.effect-switch:has(input:disabled){opacity:.4}
.inline-setting-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.inline-setting-heading button{color:#ffd336;padding:8px 0}
.overlay-settings{border-top:1px solid #ffffff15;padding-top:20px}
dialog.native-ratio-dialog{position:fixed;left:var(--ratio-left);top:var(--ratio-top);margin:0;transform:none;width:calc(min(var(--ui-width,100vw),364px) - 24px);max-width:none;padding:0;border:0;border-radius:16px;background:var(--popup-surface);backdrop-filter:var(--popup-filter);box-shadow:0 12px 45px #0005;overflow:hidden}
.native-ratio-dialog .modal-head{padding:18px 22px;border-bottom:1px solid #ffffff22}
.native-ratio-dialog .modal-head h2{font-size:17px;font-weight:400;color:#aaaab1;letter-spacing:0}
.native-ratio-dialog .modal-head button{display:none}
.native-ratio-dialog .modal-body{padding:0}
.native-ratio-option{width:100%;display:flex;align-items:center;justify-content:space-between;padding:18px 22px;min-height:63px;border-bottom:1px solid #ffffff22;font-size:24px;text-align:left}
.native-ratio-option:last-child{border-bottom:0}
.native-ratio-dialog::backdrop{background:transparent;backdrop-filter:none}
@media(max-width:380px){:root{--round-button-size:43.2px}.capture-controls>.record-button:not(.recording){width:var(--round-button-size);min-width:var(--round-button-size)}.native-effect-tabs{gap:12px}}
@media(max-width:330px){:root{--round-button-size:39.6px}.native-effect-tabs{gap:10px}}

/* Every timeline menu follows the capture grid, whose third target stays centered. */
.native-clip-tools{left:0;right:0;display:grid;grid-auto-flow:column;grid-auto-columns:var(--round-button-size);align-items:center;justify-content:start;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;touch-action:pan-x}
.native-clip-tools.scrollable-actions{justify-content:start}
.native-clip-tools::-webkit-scrollbar{display:none}
.native-clip-tools button{flex:0 0 var(--round-button-size);width:var(--round-button-size);height:var(--round-button-size);font-size:11px}
.inspector.sheet-full{max-height:var(--ui-height,100dvh);z-index:35;padding-top:calc(var(--round-button-size) + 38px + var(--ui-safe-top))}
.inspector.sheet-full .sheet-grip{top:var(--ui-safe-top)}
.inspector.sheet-full .native-effect-tabs{top:calc(25px + var(--ui-safe-top))}
.native-crop .trim-crop-reset{font-size:inherit;color:#fff;padding:12px 5px}
.native-crop .trim-actions{gap:16px}

/* The held record control follows the finger; committing a lock returns it home. */
/* Drag coordinates use the whole controls, so absolute placement must leave the middle grid cell. */
.recording .capture-controls>.record-button.record-positioned,
.capture-controls>.record-button.record-positioned:not(.recording){position:absolute;grid-column:auto;grid-row:auto;left:var(--record-origin-x);top:var(--record-origin-y);width:var(--round-button-size);min-width:var(--round-button-size);max-width:var(--round-button-size);height:var(--round-button-size);margin:0;border-radius:13px;display:grid;place-items:center;transform:translate(-50%,-50%) translateY(var(--record-drag-y,0px));z-index:3;touch-action:none}
.capture-controls>.record-button.record-positioned.record-held{width:var(--round-button-size);min-width:var(--round-button-size);max-width:var(--round-button-size);height:var(--round-button-size);border-radius:50%;transition:none;will-change:transform}
.recording .capture-controls{height:var(--record-controls-height,var(--round-button-size))}
.record-button.record-positioned.record-returning{transition:transform .3s cubic-bezier(.2,.8,.2,1),width .3s cubic-bezier(.2,.8,.2,1),min-width .3s cubic-bezier(.2,.8,.2,1),max-width .3s cubic-bezier(.2,.8,.2,1),height .3s cubic-bezier(.2,.8,.2,1),border-radius .3s cubic-bezier(.2,.8,.2,1);will-change:transform,width}
.record-button>.record-control-glyph,.record-button.recording>.record-control-glyph{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;display:grid;place-items:center;background:transparent;color:#fff;pointer-events:none}
.record-button.record-positioned>span:first-child{width:100%;height:100%;border-radius:inherit;background:var(--pink)}
.recording .record-button.record-held~.record-lock-guide{display:flex}
.recording .record-button.record-held.record-lock-ready~.record-lock-guide{visibility:hidden}
.record-button.locked{touch-action:manipulation}
@media(prefers-reduced-motion:reduce){.record-button.record-positioned.record-returning{transition-duration:.01s}}

/* Keep selection rings inside the horizontal filter scroller. */
.inspector .filter-grid{padding-top:8px;padding-bottom:18px}

.inspector-heading>div:first-child{margin-right:auto}
.inspector-heading{gap:12px}
.native-color-pipette{width:var(--round-button-size);height:var(--round-button-size);min-width:var(--round-button-size);min-height:var(--round-button-size);border-radius:50%;padding:0;display:grid;place-items:center;background:#404044;color:#c8c8cd}

.native-project-done{color:var(--pink);font-size:18px;font-weight:600;padding:10px 0}

.record-hint{display:none!important}

.native-crop .trim-actions button{font-size:21px;font-weight:500}
/* Compact sticker search keeps the input and page controls stable while results update. */
.giphy-search{display:block;margin:8px 0 12px}.giphy-search input{appearance:none;width:100%;min-width:0;min-height:40px;padding:9px 12px;border:1px solid #41414d;border-radius:9px;background:#25252f;color:var(--text);font-size:16px;line-height:20px}.giphy-search input::placeholder{color:#aaaab0}.giphy-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.giphy-grid button{min-width:0;aspect-ratio:1;padding:3px;display:grid;place-items:center}.giphy-grid img{width:100%;height:100%;max-height:none;object-fit:contain}.giphy-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.giphy-pagination button{min-height:38px;padding:7px 10px;font-size:12px;color:#fff}.giphy-brand{margin-top:12px}@media(max-width:360px){.giphy-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Export uses the same dark popover surface as the format menu. */
dialog:is(.native-export-dialog,.native-form-dialog){position:fixed;left:var(--export-left);top:var(--export-top);margin:0;transform:none;width:var(--export-width,340px);max-width:none;max-height:var(--export-max-height,calc(var(--ui-height,100dvh) - 24px));padding:0;border:0;border-radius:16px;background:var(--popup-surface);backdrop-filter:var(--popup-filter);box-shadow:0 12px 45px #0005;overflow:hidden;color:#fff;color-scheme:dark}
:is(.native-export-dialog,.native-form-dialog) .modal-head{padding:18px 22px;border-bottom:1px solid #ffffff22}
:is(.native-export-dialog,.native-form-dialog) .modal-head h2{font-size:17px;font-weight:400;color:#aaaab1;letter-spacing:0;margin:0}
:is(.native-export-dialog,.native-form-dialog) .modal-head button{display:none}
:is(.native-export-dialog,.native-form-dialog) .modal-body{min-width:0;padding:18px 22px;max-height:calc(var(--export-max-height,var(--ui-height,100dvh)) - 61px);overflow:auto;line-height:1.5}
.native-export-dialog .export-summary{gap:12px;margin-bottom:18px}
.native-export-dialog .export-preview{width:56px;height:56px;border-radius:9px;object-fit:cover;flex-shrink:0}
.native-export-dialog .export-summary>div{min-width:0;flex:1}
.native-export-dialog .export-summary strong{display:block;font-size:16px;font-weight:500;overflow-wrap:anywhere;line-height:1.3}
.native-export-dialog p{font-size:13px;color:#c1c2c7;margin:8px 0 16px}
.native-export-dialog .export-summary p{margin:4px 0 0;font-variant-numeric:tabular-nums}
:is(.native-export-dialog,.native-form-dialog) .field{color:#c1c2c7;font-size:13px;margin-bottom:16px}
.native-export-dialog select{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #ffffff1c;border-radius:9px;background:#292b2e;color:#fff;font-size:16px;color-scheme:dark}
:is(.native-export-dialog,.native-form-dialog) .modal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}
:is(.native-export-dialog,.native-form-dialog) .button{min-width:0;min-height:46px;padding:10px 9px;font-size:14px;font-weight:500;border:0;border-radius:10px;background:#292b2e;color:#fff}
:is(.native-export-dialog,.native-form-dialog) .button.primary{background:#56595e;color:#fff}
.native-export-dialog .button svg{width:18px;height:18px;flex-shrink:0}
.native-export-dialog .export-status>svg{width:28px;height:28px;margin:auto;color:#fff}
.native-export-dialog .export-status strong{font-size:18px;font-weight:500;margin:14px 0 8px}
.native-export-dialog .export-status .button{width:100%;margin-top:8px}
.native-export-dialog .progress-bar{height:5px;background:#ffffff1c;margin:18px 0;border-radius:5px}
.native-export-dialog .progress-bar span{background:#fff}
:is(.native-export-dialog,.native-form-dialog)::backdrop{background:transparent;backdrop-filter:none}
.native-export-dialog .modal-actions>.button:only-child{grid-column:1/-1}
.native-export-dialog.native-export-running{height:fit-content;bottom:auto}
.native-export-running #modal-content{display:flex;flex-direction:column}
.native-export-running .modal-head{display:none}
.native-export-running .modal-body{flex:none;min-height:0;max-height:var(--export-max-height,calc(var(--ui-height,100dvh) - 24px))}
.native-export-running .export-status{display:flex;flex-direction:column;align-items:stretch;gap:10px;text-align:center}
.native-export-running .export-status p{margin:0;line-height:1.5}
.native-export-running .export-status .progress-bar{margin:0}
.native-export-running .export-status .button{margin:0;color:var(--pink)}
.native-export-dialog .export-status>svg{width:32px;height:32px;flex-shrink:0}
.native-export-running .export-status .progress-bar{width:100%;flex-shrink:0}

/* Center fitting media above the filmstrip; tall media starts below the header
   and keeps the full preview height available behind the filmstrip. */
.editor{--timeline-height:calc(75px + var(--ui-safe-bottom))}
.preview-area{inset:0;height:auto!important;padding-bottom:var(--timeline-height);align-items:safe center}
body[data-device="mobile"] .preview-area{touch-action:none}
.preview-area>.canvas-wrap{max-height:none}
/* Extend the filmstrip to the window edge; keep its controls above the home indicator. */
.timeline-section{bottom:0;height:var(--timeline-height);padding-bottom:calc(5px + var(--ui-safe-bottom))}
.capture-controls{bottom:calc(96px + var(--ui-safe-bottom))}
.native-clip-tools{bottom:calc(96px + var(--ui-safe-bottom))}
.native-camera-options{bottom:calc(186px + var(--ui-safe-bottom))}
.native-filmstrip-row .timeline-scroll{overflow-y:hidden;overscroll-behavior-y:none;padding:0 4px 0 0}
/* A single frosted surface keeps the picture visible through the effect sheet. */
.inspector{background:var(--popup-surface);backdrop-filter:var(--popup-filter);-webkit-backdrop-filter:var(--popup-filter);box-shadow:inset 0 1px 0 #ffffff18}

.inspector .filter-grid{overflow-y:hidden;overscroll-behavior-x:contain;touch-action:auto}

/* Long presses belong to the app; native selection remains available in editors. */
html,body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,[contenteditable="true"],[contenteditable="plaintext-only"],[contenteditable=""]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}

/* Keep mobile form controls at the browser's comfortable editing size. */
@media (hover:none),(pointer:coarse){
  input,textarea,select{font-size:16px!important}
}

:root{--popup-surface:#3032388c;--popup-blur:8px;--popup-radius:16px;--popup-filter:blur(var(--popup-blur)) saturate(1.15)}
dialog.native-ratio-dialog,dialog.native-export-dialog,dialog.native-form-dialog,body .projects-menu-list{background:var(--popup-surface);backdrop-filter:blur(var(--popup-blur));-webkit-backdrop-filter:blur(var(--popup-blur));border:0;border-radius:var(--popup-radius);box-shadow:0 12px 45px #0005}
.native-form-dialog input{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #ffffff1c;border-radius:9px;background:#292b2e;color:#fff;font-size:16px;color-scheme:dark}
.native-form-dialog .modal-actions{grid-template-columns:1fr}

/* A shared type and spacing scale for sheets, menus and dialogs. */
:root{--button-text-size:21px;--button-label-size:14px;--popup-width:300px;--popup-heading-size:15px;--popup-label-size:13px;--popup-text-size:16px;--popup-padding:14px;--popup-control-height:44px}
.preview-state:has(.capture-error){background:#0009}
.preview-state .camera-empty.capture-error,.preview-state .camera-empty.camera-preview-warning{width:min(300px,calc(100% - 36px));max-width:none;gap:16px;margin:18px;color:var(--text);font-size:var(--popup-text-size);line-height:1.5}
.camera-empty.capture-error>svg{width:36px;height:36px;color:var(--text)}
.camera-empty.capture-error .button,.camera-empty.camera-preview-warning .button{width:100%;min-height:48px;padding:12px var(--popup-padding);border:0;border-radius:15px;background:#2b2b2ee8;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);color:var(--pink);font-size:var(--button-text-size);font-weight:500;line-height:1.2}
.toast{top:var(--toast-top,calc(var(--ui-safe-top) + 76px));bottom:auto;right:auto;left:50%;margin:0;width:max-content;max-width:min(430px,calc(var(--ui-width,100vw) - 24px));padding:12px 16px;background:var(--popup-surface);backdrop-filter:blur(var(--popup-blur));-webkit-backdrop-filter:blur(var(--popup-blur));border:0;border-radius:var(--popup-radius);font-size:var(--popup-label-size);line-height:1.45;color:#fff;transform:translate(-50%,-12px);box-shadow:0 12px 45px #0005;transition:opacity .2s,transform .2s;overflow-wrap:anywhere}
.toast.visible{opacity:1;transform:translate(-50%,0)}
@starting-style{.toast.visible{opacity:0;transform:translate(-50%,-12px)}}
dialog:not(.native-delete-sheet){--control-icon-size:20px;background:var(--popup-surface);backdrop-filter:blur(var(--popup-blur));-webkit-backdrop-filter:blur(var(--popup-blur));width:min(var(--popup-width),calc(var(--ui-width,100vw) - 24px));max-height:calc(var(--ui-height,100dvh) - 24px);padding:0;border-radius:var(--popup-radius);color-scheme:dark}
dialog:not(.native-delete-sheet) .modal-head{padding:12px var(--popup-padding);border-bottom:1px solid #ffffff22}
dialog:not(.native-delete-sheet) .modal-head h2{font-size:var(--popup-heading-size);font-weight:500;line-height:1.35;letter-spacing:0;color:#c1c2c7}
dialog:not(.native-delete-sheet) .modal-body{padding:var(--popup-padding);font-size:var(--popup-label-size);min-width:0;overflow:auto}
dialog:not(.native-delete-sheet) .field{font-size:var(--popup-label-size)}
dialog:not(.native-delete-sheet) :is(input,select,textarea){font-size:var(--popup-text-size);min-height:var(--popup-control-height)}
dialog:not(.native-delete-sheet) .button{font-size:var(--button-text-size);min-height:48px;padding:12px;line-height:1.25;overflow-wrap:normal}
dialog.native-ratio-dialog .modal-body{padding:0}
.native-ratio-option{font-size:var(--button-text-size);min-height:var(--popup-control-height);padding:12px var(--popup-padding);line-height:1.25}
.native-ratio-option svg{width:20px;height:20px}
.native-delete-sheet .modal-body button{font-size:var(--button-text-size);min-height:48px;padding:12px var(--popup-padding)}
body .projects-menu-action{--control-icon-size:22px;font-size:var(--button-text-size);min-height:48px;padding:12px var(--popup-padding);gap:12px;line-height:1.35}
body .projects-menu-action svg{width:22px;height:22px}
body .projects-options-preview{width:min(96px,100%);margin-bottom:10px}
.inspector-heading{--control-icon-size:22px}
.inspector-heading :is(h1,h2){font-size:18px;line-height:1.35}
.inspector-heading :is(.mobile-close,.native-color-pipette){width:39.6px;height:39.6px;min-width:39.6px;min-height:39.6px}
.inspector-heading :is(.mobile-close,.native-color-pipette) svg{width:22.08px;height:22.08px}
.inspector .field,.inspector .setting-row,.inspector .effect-setting>label{font-size:var(--popup-label-size)}
.inspector input:not([type=range]),.inspector select,.inspector textarea{font-size:var(--popup-text-size)}
body .color-tabs{margin:10px 0 16px}
body .color-opacity{margin-top:16px}body .color-saved{padding-top:16px;margin-top:16px;gap:12px}body .color-current{width:44px;height:44px}body .color-opacity>label{font-size:var(--popup-label-size)}
body .trim-actions button{font-size:var(--button-text-size);min-height:48px}

/* Text actions share the editing controls’ readable size; icon captions use a compact shared size. */
body :is(.button,.native-done,.native-project-done,.trim-actions .trim-cancel,.trim-actions .trim-done,.trim-crop-reset,.giphy-pagination button,.tab-row button){font-size:var(--button-text-size);line-height:1.25}
body .native-clip-tools button,body .filter-card,body .native-effect-options button{font-size:var(--button-label-size);line-height:1.25}
body .native-tool-label{white-space:nowrap}
body .projects-name{font-size:var(--button-text-size)}
body .giphy-pagination button{min-height:44px;padding:9px 10px}

/* Native focus rings and touch highlights must not appear over the editor. */
:is(button,a,input,select,textarea,[role=button],[tabindex]){-webkit-tap-highlight-color:transparent}
:is(button,a,input,select,textarea,[role=button],[tabindex]):is(:focus,:focus-visible){outline:none!important}

.native-export-dialog .modal-actions{grid-template-columns:1fr}

/* Keep a portrait app coordinate system even when the mobile browser turns. */
:root{--ui-safe-top:env(safe-area-inset-top);--ui-safe-bottom:env(safe-area-inset-bottom)}
body[data-device="mobile"]{width:min(var(--ui-width,100vw),480px)}
body[data-ui-rotation="90"],body[data-ui-rotation="-90"]{position:fixed;left:0;top:0;width:var(--ui-width);height:var(--ui-height);margin:0;border:0;max-width:none;transform-origin:0 0;transform:translate(var(--ui-translate-x),var(--ui-translate-y)) rotate(var(--ui-angle))}
body[data-ui-rotation="90"]{--ui-safe-top:env(safe-area-inset-right);--ui-safe-bottom:env(safe-area-inset-left)}
body[data-ui-rotation="-90"]{--ui-safe-top:env(safe-area-inset-left);--ui-safe-bottom:env(safe-area-inset-right)}
[data-ui-popup-rotation]{left:var(--ui-popup-x)!important;top:var(--ui-popup-y)!important;right:auto!important;bottom:auto!important;margin:0!important;transform-origin:0 0!important;transform:rotate(var(--ui-angle))!important}

.native-clip-tools button[hidden]{display:none!important}

.clip-volume-badge{display:block;pointer-events:none;z-index:2}
.clip-volume-badge[hidden]{display:none}
.topbar:has(.clip-volume-badge:not([hidden])) .native-clip-counter,.topbar:has(.clip-volume-badge:not([hidden])) .native-playback-time{visibility:hidden}
body[data-ui-rotation="90"] .native-clip-tools [data-action="mute"],body[data-ui-rotation="-90"] .native-clip-tools [data-action="mute"]{touch-action:pan-y!important}

.giphy-pagination{margin:28px 0 24px}
.giphy-brand{display:flex;justify-content:center;margin:0}
.giphy-settings-link{width:100%;justify-content:center;padding:6px 0 0;margin:0;text-align:center}

/* The sticker and emoji searches use the same pill and search symbol. */
.effect-search{display:flex;align-items:center;position:relative;flex-shrink:0;margin:5px 0 0;min-height:36px}
.effect-search input{appearance:none;border:0;border-radius:999px;background:#76768045;color:var(--text);width:100%;min-width:0;height:36px;min-height:36px;padding:7px 12px 7px 35px;font-size:16px;line-height:22px;outline-offset:-2px}
.effect-search input::placeholder{color:#aaaab0}
.effect-search-icon{position:absolute;left:11px;top:10px;color:#aaaab0;pointer-events:none}
.effect-search-icon svg{width:17px;height:17px;display:block}
.giphy-search.effect-search{margin-bottom:12px}
/* Keep the sticker search outside the results scroller, like the emoji picker. */
.panel-body:has(.giphy-picker){display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
#sticker-content:has(>.giphy-picker){display:flex;flex:1;min-height:0}
.giphy-picker{display:flex;flex-direction:column;width:100%;height:100%;min-height:0}
.giphy-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#555 transparent;padding-bottom:12px}

/* Let the page color show through the complete app shell. */
body,.topbar,.editor,.workspace,.preview-area,.canvas-wrap,.timeline-section{background:transparent;border:0;box-shadow:none}

dialog.native-export-dialog select{border-radius:999px}
.native-export-dialog .modal-actions .button,.native-export-dialog .export-status .button{background:#292b2e;color:var(--pink)}
.native-export-dialog .modal-actions [data-action="start-export"]{color:#ffdc46}
.native-export-dialog::backdrop{background:#08090d33;backdrop-filter:none;-webkit-backdrop-filter:none}
body.projects-open .sheet-backdrop{background:#08090d33;backdrop-filter:none;-webkit-backdrop-filter:none;pointer-events:auto}
body.effects-open .sheet-backdrop{pointer-events:auto}
body .projects-menu-list{box-shadow:none}
.native-project-delete-sheet::backdrop{background:#08090d22;backdrop-filter:none;-webkit-backdrop-filter:none}

/* Project sheets have no effect tabs above their heading. */
.inspector.sheet-full:has(.native-effect-tabs[hidden]){padding-top:calc(27px + var(--ui-safe-top));border-radius:13px 13px 0 0}

/* Round menu glyphs leave a consistent six-pixel inset. */
:is(.native-side-button,.native-camera-flip,.native-effect-tabs button,.mobile-close,.trim-crop-toggle,.native-flash,.record-lock-guide>span,.native-color-pipette,.color-save) svg{width:calc((var(--round-button-size) - 12px)*.8);height:calc((var(--round-button-size) - 12px)*.8)}
:is(.native-tool-icon,.native-side-button,.native-camera-flip,.native-effect-tabs button,.mobile-close,.trim-crop-toggle,.native-flash,.record-lock-guide>span,.native-color-pipette,.color-save){--control-icon-size:calc((var(--round-button-size) - 12px)*.8)}
.inspector-heading :is(.mobile-close,.native-color-pipette,.native-effect-tabs button){--control-icon-size:22.08px}

.trim-circle{width:39.6px;height:39.6px;--control-icon-size:22.08px}

/* Editing views expose the website background while keeping the app beneath hidden. */
.native-trim{background:transparent}
body:has(>.native-trim)>:is(.editor,.topbar,.text-editor-format,.text-editor-toolbar,.text-editor-layer){visibility:hidden}
.trim-result-readout{order:-1;flex-shrink:0;text-align:center;color:#fff;font-size:23px;line-height:1.3;font-weight:400;font-variant-numeric:tabular-nums;padding:calc(12px + var(--ui-safe-top)) 16px 0}
@media(max-height:700px){.trim-result-readout{font-size:20px;padding-top:calc(8px + var(--ui-safe-top))}}

/* Visible editor controls own input above even an oversized object selection. */
.native-clip-tools,.capture-controls,.native-camera-options,.timeline-section{z-index:13}

/* Frame rounding may leave a hairline at the physical handle stop. */
.trim-selection[data-contact="true"]{background:#ffdf4f}

.giphy-load-more{min-height:1px;text-align:center;margin:12px 0}.giphy-load-more p{font-size:13px;color:var(--muted);margin:8px 0}.giphy-load-more .button{margin:6px auto 12px}

/* While playing, horizontal filmstrip drags scrub instead of browser panning. */
.film-playing .timeline-section,.film-playing .timeline-scroll{touch-action:none}

/* One glass material for app-owned sheets, menus, dialogs and floating editors. */
body :is(.inspector,dialog:not(.native-delete-sheet),.projects-menu-list,.toast,.app-update-notice,.text-editor-toolbar,.text-editor-format,.text-editor-layer.editing-layer .text-editor-selection,.native-delete-sheet .modal-body button,.camera-empty.capture-error .button,.camera-empty.camera-preview-warning .button){background:var(--popup-surface);backdrop-filter:var(--popup-filter);-webkit-backdrop-filter:var(--popup-filter)}
.text-editor-format{border-radius:var(--popup-radius)}
/* Blur the glass itself once; overlay dimmers must not blur the picture again. */
body dialog::backdrop,body.projects-open .sheet-backdrop{background:#08090d22;backdrop-filter:none;-webkit-backdrop-filter:none}
body .projects-options-overlay{backdrop-filter:none;-webkit-backdrop-filter:none}

/* Keep desktop content width stable when a panel starts or stops scrolling. */
@media (hover:hover) and (pointer:fine){.panel-body,.modal-body,.trim-adjustments,.giphy-scroll,.projects-options-panel,.emoji-picker-scroll{scrollbar-gutter:stable}}

/* Playback uses the same cursor surface as the clip editors. */
.native-filmstrip-track{position:relative;display:flex;flex:1;min-width:0;align-self:stretch}
.timeline-playhead{display:none;left:0;z-index:6}
.film-playing .timeline-playhead{display:block}

/* Broad marker hit areas keep the visible filmstrip and grips unchanged. */
.trim-cursor{pointer-events:auto;touch-action:none;cursor:ew-resize}
.trim-handle::before,.trim-cursor::before{content:'';position:absolute;left:50%;top:0;bottom:0;width:44px;transform:translateX(-50%)}

/* Effect categories share the title row, with the same glyph size as Close. */
.inspector-heading:has(>.native-effect-tabs:not([hidden])){display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:6px}
.inspector-heading>.native-effect-tabs{position:static;inset:auto;height:var(--round-button-size);min-width:0;display:flex;gap:0;justify-content:center;align-items:center;justify-self:stretch;touch-action:manipulation}
.inspector-heading>.native-effect-tabs button{width:var(--round-button-size);min-width:0;height:var(--round-button-size);min-height:var(--round-button-size);flex:0 1 var(--round-button-size);padding:0;border:0;border-radius:0;background:transparent;color:#a4a4ad;filter:none}
.inspector-heading>.native-effect-tabs button svg{width:var(--control-icon-size);height:var(--control-icon-size);color:inherit}
.inspector-heading>.native-effect-tabs button:is(:hover,.active,[aria-pressed=true]){color:#fff;background:transparent}
.inspector.sheet-full{padding-top:calc(27px + var(--ui-safe-top))}

/* Crop uses the same source-range filmstrip and playhead as Split. */
.native-crop .trim-cursor{top:-3px;bottom:-3px;width:6px;border-radius:5px}
.native-crop .trim-rail{outline-offset:6px}
.native-crop .trim-actions{position:relative;gap:0;padding-inline:12px}
.native-crop .trim-actions :is(.trim-cancel,.trim-done){min-width:0}
.native-crop .trim-actions>.trim-play{position:absolute;left:50%;transform:translateX(-50%);display:grid;place-items:center;width:48px;min-width:48px;height:48px;min-height:48px;padding:0;border:0;background:none;color:#fff}
.native-crop .trim-actions>.trim-play svg{width:25px;height:25px}
@media(max-width:350px){.native-crop .trim-actions :is(.trim-cancel,.trim-done){font-size:19px}}

.native-trim{--trim-clock-size:23px;--trim-clock-top:calc(12px + var(--ui-safe-top))}
.native-crop .trim-preview-heading{position:relative;order:-1;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;flex-shrink:0;padding:0}
.native-crop .trim-preview-heading .trim-result-readout{grid-column:2;grid-row:1;order:0;padding:var(--trim-clock-top) 16px 0}
.native-crop .trim-preview-heading .trim-crop-reset{position:absolute;left:16px;top:calc(50% + var(--trim-clock-top)*.5);transform:translateY(-50%);min-width:56px;min-height:44px;padding:8px 0;border:0;border-radius:0;background:none;color:var(--pink);font-size:var(--button-text-size);font-weight:500;line-height:1.25;text-align:left}

@media(max-height:700px){.native-trim{--trim-clock-size:20px;--trim-clock-top:calc(8px + var(--ui-safe-top))}}

/* The minimized sheet shows only its grip and heading. */
.inspector.sheet-collapsed .panel-body{visibility:hidden;pointer-events:none}

/* Keep the same sheet silhouette in every full-screen category. */
.inspector.sheet-full{border-radius:13px 13px 0 0}
.timeline-clips,.timeline-clip{touch-action:none;-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
.timeline-scroll{overflow-anchor:none}
.timeline-sorting .timeline-clip{overflow:visible}
.timeline-sorting .clip-number,.timeline-sort-ghost .clip-number{display:grid!important;place-items:center;position:absolute;top:2px;left:auto;right:2px;bottom:auto;transform:none;width:26px;min-width:26px;height:26px;padding:0;border-radius:50%;background:#fff;color:#111;font-size:17px;font-weight:750;line-height:1;font-variant-numeric:tabular-nums;box-shadow:none;z-index:4}
.timeline-sorting .sort-source{opacity:1}
.timeline-sorting .sort-source .clip-number{display:none!important}
.timeline-sort-insertion{position:fixed!important;bottom:auto!important;z-index:89!important;pointer-events:none!important;max-width:none!important}
.timeline-sort-ghost{position:fixed!important;z-index:90!important;pointer-events:none!important;opacity:1!important;margin:0!important;padding:0!important;overflow:visible!important;border-radius:0!important;border:0!important;outline:none!important;box-shadow:none!important;background:transparent;transform:none!important}
.timeline-sort-ghost .clip-visual,.timeline-sort-ghost canvas{display:block;width:100%;height:100%;border-radius:0!important}
.timeline-sort-ghost .clip-duration,.timeline-sort-ghost .clip-type,.timeline-sort-ghost .clip-progress{display:none!important}

:root{--effect-thumbnail-size:86px}
.inspector .filter-card{width:var(--effect-thumbnail-size);flex-basis:var(--effect-thumbnail-size)}
.inspector .filter-thumbnail{width:var(--effect-thumbnail-size);height:var(--effect-thumbnail-size)}
body .projects-name{font-size:var(--button-text-size);font-weight:400}

.filter-card{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}

/* One connected action list for project, clip, object and filter confirmations. */
.native-delete-sheet .modal-body{gap:0;overflow:hidden;border-radius:var(--popup-radius,18px);background:var(--popup-surface);backdrop-filter:var(--popup-filter);-webkit-backdrop-filter:var(--popup-filter)}
body .native-delete-sheet .modal-body button{border-radius:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
.native-delete-sheet .modal-body button+button{border-top:1px solid #ffffff22}

/* Action lists size to their labels, while retaining mobile edge clearance. */
dialog.native-delete-sheet,dialog.native-ratio-dialog{width:max-content;max-width:calc(min(var(--ui-width,100vw),480px) - 24px)}
.native-delete-sheet .modal-body button{white-space:nowrap}
.native-ratio-option{gap:18px;white-space:nowrap}
.native-ratio-option>span:last-child:empty{width:20px;flex:0 0 20px}

.native-delete-sheet .modal-body,.native-ratio-dialog .modal-body,.projects-options-panel{scrollbar-gutter:auto}

/* Match the selected filter outline; keep the status above the thumbnail. */
.filter-thumbnail{position:relative}
.filter-thumbnail>.filter-modified-dot{display:block;position:absolute;right:5px;top:5px;width:9px;height:9px;border-radius:50%;background:#ffcc35;pointer-events:none;z-index:1}
.filter-modified-dot[hidden]{display:none}

.setting-row .filter-setting-changed{color:#ffcc35;margin-left:.25em;font-weight:inherit}

/* Keep the original picture opaque and dim it; only the lifted card uses glass. */
.timeline-sorting .sort-source .clip-visual{filter:brightness(.4)}
.timeline-sort-ghost{background:transparent;filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.timeline-sort-ghost .clip-visual{opacity:1;background:transparent}

.timeline-sort-ghost .clip-number[hidden]{display:none!important}

.header-actions .microphone-button{display:grid;color:#fff;width:44px;min-width:44px;height:44px;padding:0;border-radius:0}
.header-actions .microphone-button svg{width:28px;height:28px}
.native-microphone-dialog .native-ratio-option{color:#fff;white-space:normal;gap:18px}
.native-microphone-dialog .native-ratio-option>span:first-child{min-width:0;overflow-wrap:anywhere}
.native-microphone-dialog .native-ratio-option>svg{flex:0 0 20px}
.native-microphone-dialog .modal-body{max-height:calc(var(--ui-height,100dvh) - 100px);overflow-y:auto}
.microphone-status{padding:12px var(--popup-padding);margin:0;color:#fff;max-width:340px}

/* Equal header control slots keep icon centers evenly spaced. */
.header-actions{gap:12px}
.header-actions .ratio-button,.header-actions #export-button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0}
