:root{--bg: #f4f5f7;--surface: #ffffff;--surface-2: #eceef2;--border: #d9dce3;--text: #1c1f26;--muted: #6b7280;--accent: #6d4aff;--accent-text: #ffffff;--danger: #d93838;--clip-video: #6d4aff;--clip-audio: #16a34a;font-family:system-ui,Noto Sans Thai,sans-serif;line-height:1.5;color:var(--text);background:var(--bg);color-scheme:light dark}@media(prefers-color-scheme:dark){:root{--bg: #121317;--surface: #1b1d23;--surface-2: #252830;--border: #2f333c;--text: #e8e9ec;--muted: #9097a3;--accent: #8b6dff;--danger: #f06262;--clip-video: #6d4aff;--clip-audio: #15803d}}*{box-sizing:border-box}body{margin:0;background:var(--bg);min-height:100vh}h1,h2{margin:0 0 12px}h2{font-size:1.15rem}a{color:var(--accent);text-decoration:none}button{font:inherit;padding:6px 14px;border-radius:8px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);cursor:pointer}button:hover:not(:disabled){border-color:var(--accent)}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}button.link{background:none;border:none;padding:2px 6px;color:var(--muted)}button.link:hover{color:var(--text)}button.danger,.danger{color:var(--danger)}input{font:inherit;padding:8px 10px;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text)}.muted{color:var(--muted)}.small{font-size:.85rem}.error{color:var(--danger);white-space:pre-line}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.grow{flex:1;display:flex;align-items:center;gap:10px;min-width:0}.center{min-height:100vh;display:grid;place-items:center;padding:16px}.card{background:var(--surface);border:1px solid var(--border);border-radius:12px}.auth{width:min(380px,100%);padding:28px;display:flex;flex-direction:column;gap:14px}.auth h1{font-size:1.5rem;text-align:center}.auth label{display:flex;flex-direction:column;gap:4px;font-size:.9rem}.google-btn{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:44px}.divider{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.85rem}.divider:before,.divider:after{content:"";flex:1;border-top:1px solid var(--border)}.tabs{display:flex;background:var(--surface-2);border-radius:10px;padding:3px}.tabs button{flex:1;border:none;background:none}.tabs button.on{background:var(--surface);box-shadow:0 1px 2px #00000026}.topbar{display:flex;align-items:center;gap:14px;padding:10px 16px;background:var(--surface);border-bottom:1px solid var(--border)}.brand{font-weight:700;color:var(--text);white-space:nowrap;display:flex;align-items:center}.brand img{height:34px;width:auto;display:block}.auth-logo{margin:0;display:flex;justify-content:center}.auth-logo img{width:min(240px,70%);height:auto}.page{max-width:1200px;margin:0 auto;padding:20px 16px;display:flex;flex-direction:column;gap:28px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}.project{padding:14px;display:flex;flex-direction:column;gap:4px}.project button{align-self:flex-start}.dropzone{border:2px dashed var(--border);border-radius:14px;padding:16px}.media-item{overflow:hidden;display:flex;flex-direction:column;cursor:default}.media-item[draggable=true]{cursor:grab}.media-item.selected{outline:2px solid var(--accent)}.media-item>button{align-self:flex-end}.thumb{position:relative;aspect-ratio:16 / 9;background:#000;display:grid;place-items:center}.thumb video,.thumb img{width:100%;height:100%;object-fit:cover;pointer-events:none}.thumb .icon{font-size:2rem}.badge{position:absolute;right:6px;bottom:6px;background:#000000b3;color:#fff;font-size:.75rem;padding:0 6px;border-radius:4px}.meta{padding:6px 10px;display:flex;flex-direction:column;min-width:0}.name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.uploads{list-style:none;padding:0;display:flex;flex-direction:column;gap:6px}.uploads li{display:flex;gap:10px;align-items:center}.uploads progress{flex:1}.editor,.m-editor{--bg: #121214;--surface: #1c1c1f;--surface-2: #26262a;--surface-3: #303036;--border: #2c2c31;--text: #e9e9ec;--muted: #8b8b94;--accent: #00c8d4;--accent-text: #001417;--clip-video: #1f5f6b;--clip-image: #34506e;--clip-text: #9a5a1c;--clip-audio: #2d6b3c;color-scheme:dark;color:var(--text);background:var(--bg);height:100vh;display:grid;grid-template-columns:340px minmax(0,1fr) 320px;grid-template-rows:auto minmax(0,1fr) minmax(220px,38vh);grid-template-areas:"top top top" "assets player inspector" "timeline timeline timeline";gap:2px;font-size:14px;-webkit-user-select:none;user-select:none}:is(.editor,.m-editor) .topbar{grid-area:top;padding:6px 14px;background:var(--surface);border:none}:is(.editor,.m-editor) input,.editor select,.editor textarea{background:var(--surface-2);border-color:var(--border);color:var(--text)}:is(.editor,.m-editor) textarea{width:100%;font:inherit;padding:8px;border-radius:8px;border:1px solid var(--border);resize:vertical;-webkit-user-select:text;user-select:text}:is(.editor,.m-editor) select{font:inherit;padding:5px 8px;border-radius:6px;border:1px solid var(--border)}:is(.editor,.m-editor) button{background:var(--surface-2);border-color:transparent;padding:5px 12px}:is(.editor,.m-editor) button:hover:not(:disabled){border-color:var(--surface-3);background:var(--surface-3)}:is(.editor,.m-editor) button.on{background:#00c8d426;color:var(--accent);border-color:var(--accent)}:is(.editor,.m-editor) button.link{background:none}:is(.editor,.m-editor) input[type=range]{accent-color:var(--accent);padding:0;border:none;background:none}:is(.editor,.m-editor) input[type=color]{width:44px;height:28px;padding:2px}button.accent,a.button.accent{background:var(--accent);color:var(--accent-text);border-color:var(--accent);font-weight:600}:is(.editor,.m-editor) button.accent:hover:not(:disabled){background:#2ee0ea;border-color:#2ee0ea}button.icon{padding:4px 9px;min-width:32px}button.big,a.big{padding:10px 18px;font-size:1rem}a.button{display:inline-block;text-align:center;border-radius:8px;padding:6px 14px;text-decoration:none}.title-input{max-width:260px;padding:4px 8px}.seg{display:inline-flex;background:var(--surface-2);border-radius:8px;padding:2px;gap:2px}.seg button{padding:3px 10px;background:none;border:1px solid transparent}.chips{display:flex;flex-wrap:wrap;gap:6px}.chips button{padding:4px 10px;font-size:.85rem;border:1px solid transparent}:is(.editor,.m-editor) h4{margin:14px 0 6px;font-size:.85rem;color:var(--muted);font-weight:500}.hint{background:#00c8d414;border:1px dashed rgb(0 200 212 / .4);color:var(--accent);padding:8px 10px;border-radius:8px;margin:0 0 10px}.assets{grid-area:assets;display:flex;min-height:0;background:var(--surface)}.asset-tabs{display:flex;flex-direction:column;gap:2px;padding:6px 4px;border-right:1px solid var(--border);overflow-y:auto}.asset-tabs button{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:.72rem;padding:6px 4px;width:62px;background:none;color:var(--muted);border:1px solid transparent}.asset-tabs button span{font-size:1.15rem;line-height:1}.asset-tabs button.on{color:var(--accent);background:#00c8d41a;border-color:transparent}.asset-body{flex:1;overflow-y:auto;padding:10px;min-width:0;display:flex;flex-direction:column;gap:8px}.import-btn{width:100%;padding:14px!important;border:1px dashed var(--surface-3)!important;background:var(--surface-2);font-weight:600}.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}.asset-card{display:flex;flex-direction:column;gap:3px;cursor:grab;font-size:.75rem;min-width:0}.asset-card .thumb{border-radius:6px;overflow:hidden}.asset-card .add-btn{position:absolute;right:4px;top:4px;padding:0 7px;background:var(--accent);color:var(--accent-text);border-radius:6px;opacity:0;font-weight:700}.asset-card:hover .add-btn{opacity:1}.asset-card:hover .thumb{outline:2px solid var(--accent)}.sound-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}.sound-list li{display:flex;align-items:center;gap:8px;background:var(--surface-2);padding:4px;border-radius:8px;min-width:0}.sound-style{background:var(--surface-2);border-radius:8px;padding:4px;margin-bottom:6px}.sound-style-head{display:flex;align-items:center;justify-content:space-between;gap:4px}.sound-style-head .link{color:var(--text);text-align:left;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sound-style .sound-list li{background:var(--surface)}.sound-style .sound-list li.empty{padding:8px}:is(.editor,.m-editor) button.small,.editor button.icon.small{padding:2px 7px;min-width:0;font-size:.8rem}.sound-list .grow{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;flex:1}.text-presets{display:grid;grid-template-columns:1fr 1fr;gap:8px}.text-preset{height:64px;font-size:1rem;text-shadow:0 1px 3px #000}:is(.editor,.m-editor) .text-preset:not([style*=background]){background:var(--surface-2)}.sticker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:6px}.sticker-grid button{font-size:1.7rem;padding:6px 0}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:8px}.fx-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 4px!important;font-size:.78rem;border:1px solid transparent!important}.fx-card.on{border-color:var(--accent)!important;color:var(--accent)}.fx-preview{width:100%;aspect-ratio:16 / 10;border-radius:6px;background:#000;display:block}.fx-card.off{opacity:.6;cursor:not-allowed}.fx-card span{line-height:1.2;text-align:center}.inspector .card-grid{grid-template-columns:repeat(3,1fr);gap:6px}.inspector .fx-card{font-size:.72rem;padding:4px!important;gap:4px}.fx-icon{width:100%;aspect-ratio:16/10;border-radius:6px;display:grid;place-items:center;font-size:1.4rem;background:linear-gradient(135deg,#3a3a44,#1d1d22)}.swatch{width:100%;aspect-ratio:16/10;border-radius:6px;background:linear-gradient(135deg,#ffb36b,#ff5e7e 40%,#5a8dee 75%,#49d18c) center/cover}.player{grid-area:player;display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--surface)}.player-stage{flex:1;min-height:0;display:grid;place-items:center;padding:12px;overflow:hidden}.player-frame{position:relative;box-shadow:0 0 0 1px var(--border);touch-action:none}.player-frame canvas{width:100%;height:100%;display:block}.player-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:6px 12px;border-top:1px solid var(--border)}.player-bar select{justify-self:end}.play-btn{width:40px;height:32px;border-radius:50%!important;padding:0!important}.tl-time{font-variant-numeric:tabular-nums;font-size:.85rem}.sel-box{position:absolute;border:1.5px solid #fff;box-shadow:0 0 0 1px #0006;pointer-events:none}.sel-handle{position:absolute;width:12px;height:12px;background:#fff;border-radius:50%;pointer-events:auto;box-shadow:0 0 2px #000}.sel-handle.nw{left:-7px;top:-7px;cursor:nwse-resize}.sel-handle.ne{right:-7px;top:-7px;cursor:nesw-resize}.sel-handle.sw{left:-7px;bottom:-7px;cursor:nesw-resize}.sel-handle.se{right:-7px;bottom:-7px;cursor:nwse-resize}.sel-rotate{position:absolute;left:50%;bottom:-34px;transform:translate(-50%);width:24px;height:24px;border-radius:50%;background:#fff;color:#000;display:grid;place-items:center;font-style:normal;cursor:grab;pointer-events:auto;font-size:14px}.inspector{grid-area:inspector;background:var(--surface);display:flex;flex-direction:column;min-height:0}.insp-tabs{display:flex;flex-wrap:wrap;gap:2px;padding:6px;border-bottom:1px solid var(--border)}.insp-tabs button{background:none;color:var(--muted);padding:4px 9px;font-size:.82rem;border:none;border-bottom:2px solid transparent;border-radius:0}.insp-tabs button.on{color:var(--text);border-bottom-color:var(--accent);background:none}.insp-body{flex:1;overflow-y:auto;padding:10px 12px;display:flex;flex-direction:column;gap:14px}.insp-section{display:flex;flex-direction:column;gap:8px}.insp-title{display:flex;justify-content:space-between;align-items:center;font-weight:600;font-size:.9rem}.insp-row{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.85rem}.insp-row>span{color:var(--muted)}.slider{display:grid;grid-template-columns:88px 1fr 54px 14px;align-items:center;gap:6px;font-size:.82rem}.slider>span{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slider input[type=number]{padding:2px 4px;font-size:.8rem;width:100%;text-align:right}.slider small{color:var(--muted)}.filter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.filter-card{display:flex;flex-direction:column;gap:4px;padding:4px!important;font-size:.74rem;border:1px solid transparent!important}.filter-card.on{border-color:var(--accent)!important;color:var(--accent)}.color-chip{width:26px;height:26px;border-radius:50%!important;padding:0!important;border:2px solid var(--surface-3)!important}.shortcuts{display:grid;grid-template-columns:auto 1fr;gap:3px 12px}.shortcuts b{grid-column:1 / -1;color:var(--text)}.timeline{grid-area:timeline;display:flex;flex-direction:column;min-height:0;background:var(--surface)}.tl-toolbar{display:flex;align-items:center;gap:4px;padding:4px 10px;border-bottom:1px solid var(--border)}.tl-toolbar input[type=range]{width:120px}.tl-sep{width:1px;height:18px;background:var(--border);margin:0 4px}.tl-scroll{flex:1;overflow:auto;position:relative}.tl-content{position:relative;min-height:100%;padding-bottom:10px}.tl-ruler{position:sticky;top:0;z-index:3;height:24px;background:var(--surface);border-bottom:1px solid var(--border);cursor:pointer}.tl-corner{position:sticky;left:0;width:76px;height:100%;background:var(--surface);z-index:1}.tl-tick{position:absolute;top:0;height:100%;border-left:1px solid var(--surface-3);padding-left:4px;font-size:.68rem;color:var(--muted);line-height:22px;font-variant-numeric:tabular-nums}.tl-newtrack{height:14px;margin-left:76px}.tl-playhead{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:#fff;z-index:4;pointer-events:none}.tl-playhead:before{content:"";position:absolute;top:0;left:-5px;border:6px solid transparent;border-top:8px solid #fff}.tl-hint{position:absolute;left:50%;top:55%;transform:translate(-50%,-50%);color:var(--muted);pointer-events:none;margin:0}.track{display:flex;align-items:stretch;margin-top:4px}.track-head{position:sticky;left:0;z-index:2;width:76px;flex:none;display:flex;align-items:center;padding-left:6px;background:var(--surface)}.track-head .link{padding:2px 3px;font-size:.8rem}.track-icon{width:22px;text-align:center;color:var(--muted);font-weight:700}.track-lane{position:relative;flex:1;height:44px;background:var(--surface-2);border-radius:4px}.track.main .track-lane{height:64px}.track.audio .track-lane{height:38px}.track.text .track-lane{height:34px}.track.off .track-lane{opacity:.45}.clip{position:absolute;top:2px;bottom:2px;border-radius:5px;color:#fff;font-size:.75rem;display:flex;align-items:flex-start;justify-content:space-between;gap:4px;padding:3px 10px;overflow:hidden;border:1.5px solid rgb(255 255 255 / .12);background-color:var(--clip-video);background-size:auto 100%;background-repeat:repeat-x;cursor:grab}.clip.image{background-color:var(--clip-image)}.clip.text{background-color:var(--clip-text);align-items:center}.clip.missing{background:repeating-linear-gradient(135deg,#3a3a42 0,#3a3a42 8px,#2c2c32 8px,#2c2c32 16px);border-style:dashed;color:#ffcf66}.clip.audio{background-color:var(--clip-audio);background-image:repeating-linear-gradient(90deg,rgb(255 255 255 / .18) 0 2px,transparent 2px 5px);background-size:auto 40%;background-position:0 85%}.clip.selected{border-color:#fff;box-shadow:0 0 0 1px #fff;z-index:1}.clip-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px #000}.clip small{opacity:.75;text-shadow:0 1px 2px #000}.clip .handle{position:absolute;top:0;bottom:0;width:8px;cursor:ew-resize;z-index:1}.clip .handle.left{left:0}.clip .handle.right{right:0}.clip.selected .handle{background:#fff}.clip.selected .handle:after{content:"";position:absolute;left:3px;top:35%;bottom:35%;width:2px;background:#333}.tr-badge{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,rgb(255 255 255 / .35),transparent);pointer-events:none}.junction{position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2;width:22px;height:22px;padding:0!important;border-radius:5px!important;font-size:.75rem;background:#fff!important;color:#222;opacity:.75}.junction:hover,.junction.on{opacity:1}.junction.on{background:var(--accent)!important}.modal-back{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:grid;place-items:center;z-index:50;padding:16px}.modal{width:min(440px,100%);background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:12px}.modal progress{width:100%;height:10px;accent-color:var(--accent)}.export-preview{width:100%;max-height:50vh;background:#000;border-radius:8px}@media(max-width:1100px){.editor{grid-template-columns:300px minmax(0,1fr);grid-template-areas:"top top" "assets player" "inspector inspector" "timeline timeline";grid-template-rows:auto minmax(300px,1fr) auto minmax(220px,34vh);height:auto;min-height:100vh}.inspector{max-height:40vh}}@media(max-width:700px){.editor{grid-template-columns:1fr;grid-template-areas:"top" "player" "timeline" "inspector" "assets";grid-template-rows:auto 50vh 260px auto 50vh}.topbar .muted{display:none}}.avatar{width:28px;height:28px;border-radius:50%}.m-editor{display:flex;flex-direction:column;height:100vh;height:100dvh;overflow:hidden;gap:0;grid-template-columns:none;grid-template-rows:none;grid-template-areas:none;-webkit-tap-highlight-color:transparent}.m-editor input,.m-editor select,.m-editor textarea{font-size:16px}.m-top{display:flex;align-items:center;gap:8px;flex:none;padding:6px 10px;padding-top:max(6px,env(safe-area-inset-top));background:var(--surface)}.m-top .title-input{flex:1;min-width:0;max-width:none;padding:4px 8px;background:transparent;border-color:transparent;text-align:center;font-weight:600}.m-top .title-input:focus{background:var(--surface-2)}.m-close{color:var(--text);font-size:1.2rem;width:32px;text-align:center}.m-save{color:var(--accent);font-size:.8rem;width:16px;text-align:center}.m-save.dirty{color:var(--muted)}.m-top .accent{padding:6px 14px;border-radius:999px}.m-player{flex:0 0 42%;min-height:150px;display:flex;flex-direction:column}.m-player .player{flex:1;min-height:0}.m-split{flex:none;height:18px;display:grid;place-items:center;touch-action:none;cursor:row-resize;background:var(--surface);border-top:1px solid var(--border)}.m-split span{width:44px;height:5px;border-radius:3px;background:var(--surface-3)}.m-split:active span{background:var(--accent)}.m-editor .player-stage{padding:6px}.m-editor .player-bar{padding:2px 10px;border-top:none}.m-undo{justify-self:end;display:flex;gap:2px}.m-undo .icon{background:none!important;font-size:1.15rem}.m-editor .m-kf{font-size:1.25rem;margin-right:6px}.m-editor .m-kf.on{color:#ffd400}.m-editor .sel-handle{width:18px;height:18px}.m-editor .sel-handle.nw{left:-10px;top:-10px}.m-editor .sel-handle.ne{right:-10px;top:-10px}.m-editor .sel-handle.sw{left:-10px;bottom:-10px}.m-editor .sel-handle.se{right:-10px;bottom:-10px}.m-editor .timeline{flex:1;min-height:90px}.tl-viewport{position:relative;flex:1;min-height:0;display:flex}.tl-viewport .tl-scroll{flex:1}.timeline.mobile .tl-scroll{touch-action:pan-x pan-y;overscroll-behavior:contain;scrollbar-width:none}.timeline.mobile .tl-scroll::-webkit-scrollbar{display:none}.timeline.mobile .tl-ruler{cursor:default}.timeline.mobile .track-lane{height:40px}.timeline.mobile .track.main .track-lane{height:56px}.timeline.mobile .track.audio .track-lane,.timeline.mobile .track.text .track-lane{height:32px}.timeline.mobile .track-lane{background:transparent}.timeline.mobile .clip{cursor:default}.timeline.mobile .clip.selected{touch-action:none}.timeline.mobile .clip .handle{width:18px;touch-action:none}.timeline.mobile .clip.selected .handle:after{left:8px}.timeline.mobile .junction{width:26px;height:26px}.tl-center-line{position:absolute;left:50%;top:0;bottom:0;width:2px;margin-left:-1px;background:#fff;pointer-events:none;z-index:5;box-shadow:0 0 4px #0009}.tl-center-line:before{content:"";position:absolute;top:0;left:-5px;border:6px solid transparent;border-top:8px solid #fff}.m-tools{flex:none;display:flex;align-items:stretch;background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom)}.m-tools-scroll{flex:1;display:flex;overflow-x:auto;scrollbar-width:none}.m-tools-scroll::-webkit-scrollbar{display:none}.m-editor .m-tool{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:64px;height:62px;padding:4px 6px;border:none;border-radius:0;background:none;color:var(--text);font-size:.72rem;white-space:nowrap}.m-editor .m-tool span{font-size:1.3rem;line-height:1.1}.m-editor .m-tool.back{min-width:44px;border-right:1px solid var(--border)}.m-editor .m-tool.back span{font-size:2rem}.m-editor .m-tool.danger{color:var(--danger)}.m-editor .m-tool:active:not(:disabled){background:var(--surface-2)}.m-sheet-back{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;background:#00000040}.m-sheet{position:fixed;left:0;right:0;bottom:0;z-index:31;max-height:58dvh;display:flex;flex-direction:column;background:var(--surface);border-radius:16px 16px 0 0;box-shadow:0 -8px 30px #00000080;padding-bottom:env(safe-area-inset-bottom);animation:m-sheet-in .18s ease-out}@keyframes m-sheet-in{0%{transform:translateY(40px);opacity:0}}.m-sheet-head{position:relative;display:flex;align-items:center;justify-content:center;padding:14px 12px 8px;border-bottom:1px solid var(--border)}.m-sheet-grip{position:absolute;top:5px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--surface-3)}.m-editor .m-sheet-done{position:absolute;right:8px;top:8px;width:36px;height:32px;padding:0;border-radius:8px;background:none;color:var(--accent);font-size:1.2rem}.m-sheet-body{overflow-y:auto;overscroll-behavior:contain;min-height:120px}.m-sheet .assets,.m-sheet .inspector{background:none;display:block}.m-sheet .asset-body{padding:12px}.m-sheet .insp-body{padding:12px 14px 18px}.m-sheet .asset-grid{grid-template-columns:repeat(3,1fr)}.m-sheet .card-grid{grid-template-columns:repeat(4,1fr);gap:8px}.m-sheet .inspector .card-grid{grid-template-columns:repeat(4,1fr)}.m-sheet .text-presets{grid-template-columns:repeat(2,1fr)}.m-sheet .sticker-grid{grid-template-columns:repeat(6,1fr)}.m-sheet .shortcuts{display:none}.m-sheet .slider{grid-template-columns:82px 1fr 58px 14px}.m-sheet .slider input[type=range]{height:28px}.m-sheet .sound-list li{padding:6px}@media(hover:none){.asset-card .add-btn{opacity:1}}@media(max-width:380px){.m-sheet .card-grid,.m-sheet .inspector .card-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:600px){.topbar{gap:8px;padding:8px 12px;flex-wrap:wrap}.topbar>.muted{display:none}.page{padding:14px 12px}.grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}}.audio-panel{display:flex;flex-direction:column;gap:8px}.audio-subs{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}:is(.editor,.m-editor) .audio-subs button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;font-size:.72rem;border:1px solid transparent}.audio-subs button span{font-size:1.1rem;line-height:1.1}.extract-clip{display:flex;flex-direction:column;gap:6px;padding:10px;border-radius:10px;background:#00c8d414;border:1px solid rgb(0 200 212 / .3)}.recorder{display:flex;flex-direction:column;align-items:center;gap:12px;padding:18px 8px;text-align:center}:is(.editor,.m-editor) .rec-btn{width:84px;height:84px;border-radius:50%;font-size:2.2rem;padding:0;background:var(--surface-2);border:3px solid var(--surface-3)}:is(.editor,.m-editor) .rec-btn.on{border-color:#ff3b30;background:#ff3b3026;animation:rec-pulse 1.2s ease-in-out infinite}.rec-stop{display:inline-block;width:28px;height:28px;border-radius:6px;background:#ff3b30}@keyframes rec-pulse{50%{box-shadow:0 0 0 10px #ff3b301f}}.rec-info{display:flex;flex-direction:column;gap:6px;width:100%;max-width:280px}.rec-level{height:6px;border-radius:3px;background:var(--surface-3);overflow:hidden}.rec-level i{display:block;height:100%;background:linear-gradient(90deg,#34c759,#ffd400 70%,#ff3b30);transition:width .05s}.kf-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px;border-radius:8px;background:var(--surface-2)}.kf-bar select{padding:3px 6px;font-size:.8rem}:is(.editor,.m-editor) .kf-toggle{padding:4px 10px;font-size:.85rem}:is(.editor,.m-editor) .kf-toggle.on{color:#ffd400;border-color:#ffd400;background:#ffd4001f}.clip .kf{position:absolute;bottom:3px;width:10px;height:10px;margin-left:-5px;transform:rotate(45deg);background:#fff;border:1.5px solid #333;z-index:2;cursor:pointer}.clip .kf.on{background:#ffd400}.timeline.mobile .clip .kf{width:14px;height:14px;margin-left:-7px}.audio-subs.two{grid-template-columns:1fr 1fr}.caption-panel{display:flex;flex-direction:column;gap:10px}.caption-panel .seg button{padding:3px 9px;font-size:.8rem}.caption-styles{display:grid;grid-template-columns:1fr 1fr;gap:6px}:is(.editor,.m-editor) .caption-style{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px;font-size:.75rem;border:1px solid transparent}.caption-style>span{font-size:.95rem;padding:1px 6px;border-radius:4px;background-image:linear-gradient(135deg,#4a6b8a,#2c3e50)}.caption-run{display:flex;flex-direction:column;gap:6px}.caption-run progress{width:100%;height:8px;accent-color:var(--accent)}.small-presets{grid-template-columns:repeat(2,1fr);gap:6px}.small-presets .text-preset{height:42px;font-size:.85rem}.fx-cats{margin-bottom:8px}.fx-cats button{padding:3px 9px!important;font-size:.76rem!important}.tpl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px}:is(.editor,.m-editor) .tpl-card{display:flex;flex-direction:column;gap:3px;padding:5px!important;text-align:left;font-size:.78rem;border:1px solid transparent}.tpl-card:hover{border-color:var(--accent)!important}.tpl-card small{font-size:.68rem}.tpl-preview{width:100%;aspect-ratio:9 / 16;border-radius:6px;background:#000;display:block}.tpl-dialog{width:min(560px,100%);max-height:92vh;overflow-y:auto}.tpl-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:6px;max-height:260px;overflow-y:auto}:is(.editor,.m-editor) .tpl-pick-item{position:relative;padding:0!important;aspect-ratio:1;overflow:hidden;border:2px solid transparent;border-radius:8px}.tpl-pick-item.on{border-color:var(--accent)!important}.tpl-pick-item img,.tpl-pick-item video{width:100%;height:100%;object-fit:cover;pointer-events:none;display:block}.tpl-num{position:absolute;top:4px;left:4px;min-width:22px;height:22px;border-radius:11px;background:var(--accent);color:var(--accent-text);font-weight:700;font-size:.8rem;display:grid;place-items:center}.tpl-text{display:grid;grid-template-columns:90px 1fr;align-items:center;gap:8px;font-size:.85rem}.tpl-text>span{color:var(--muted)}.vfx-lib{display:flex;flex-direction:column;gap:8px}.lib-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;padding-bottom:4px;min-width:0;max-width:100%}.vfx-lib,.sound-lib{min-width:0;max-width:100%}:is(.editor,.m-editor) .lib-tabs button{flex:none;white-space:nowrap;padding:5px 12px;border-radius:999px;font-size:.82rem;border:1px solid transparent;background:var(--surface-2)}:is(.editor,.m-editor) .lib-tabs button.on{border-color:var(--accent);color:var(--accent)}.lib-tabs button small{opacity:.6;margin-left:2px}:is(.editor,.m-editor) .lib-tabs button.add{background:transparent;border:1px dashed var(--border)}.lib-tools{display:flex;gap:6px;flex-wrap:wrap}.vfx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;padding:6px 0}.vfx-grid .empty{grid-column:1 / -1}.vfx-card{display:flex;flex-direction:column;gap:3px;min-width:0}:is(.editor,.m-editor) .vfx-thumb{padding:0!important;border:1px solid transparent;border-radius:6px;overflow:hidden;background:#26262c}.vfx-thumb:hover:not(:disabled){border-color:var(--accent)!important}.vfx-media{position:relative;display:block;width:100%;aspect-ratio:16 / 9;background:#26262c}.vfx-media img,.vfx-media video{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.vfx-noimg{display:grid;place-items:center;height:100%;font-size:1.4rem;opacity:.5}.vfx-dur{position:absolute;right:3px;bottom:2px;font-size:.62rem;background:#0009;padding:0 4px;border-radius:3px}.vfx-name{font-size:.74rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vfx-admin{display:flex;gap:2px;align-items:center}.vfx-admin select{flex:1;min-width:0;font-size:.68rem;padding:1px 2px}.modal.vfx-editor{width:min(980px,100%);max-height:calc(100dvh - 32px);overflow:auto}.vfx-ed-body{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);gap:16px}.vfx-ed-view,.vfx-ed-side{display:flex;flex-direction:column;gap:10px;min-width:0}.vfx-ed-side section{display:flex;flex-direction:column;gap:6px}.vfx-ed-view canvas{width:100%;height:auto;border-radius:8px;background:#222;display:block}.vfx-ed-view canvas.picking{cursor:crosshair;outline:2px solid var(--accent)}.vfx-ed-side .seg{flex-wrap:wrap}.vfx-ed-trim{display:flex;flex-direction:column;gap:6px}.trim-bar{position:relative;height:8px;border-radius:4px;background:var(--surface-2)}.trim-bar span{position:absolute;top:0;bottom:0;background:var(--accent);border-radius:4px;opacity:.7}.trim-bar i{position:absolute;top:-3px;bottom:-3px;width:2px;background:#fff}@media(max-width:720px){.vfx-ed-body{grid-template-columns:1fr}}.clip.overlay{background-color:var(--clip-text);background-image:linear-gradient(90deg,#ff8c3c59,#ff50a059,#50b4ff59)}.vfx-thumb.builtin .fx-preview{aspect-ratio:16 / 9;border-radius:0}.install-app .tabs button{padding:6px 4px;font-size:.85rem}.install-steps{margin:0;padding-left:1.3em;display:flex;flex-direction:column;gap:8px;line-height:1.5}.auth-install{align-self:center}.admin h2{margin:0 0 12px}.stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.stat{padding:12px 14px;display:flex;flex-direction:column;gap:4px}.stat b{font-size:1.6rem}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--border);margin-right:6px;flex:none}.dot.on{background:#22c55e;box-shadow:0 0 0 3px #22c55e33}.online-text{color:#16a34a}.admin-tools{flex-wrap:wrap;gap:8px}.admin-tools input[type=search]{min-width:200px}.admin-table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.admin-table{width:100%;border-collapse:collapse;font-size:.9rem}.admin-table th,.admin-table td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--border);white-space:nowrap}.admin-table th{font-weight:600;color:var(--muted);font-size:.8rem}.admin-table tr:last-child td{border-bottom:none}.admin-user{display:flex;align-items:center;gap:8px}.avatar.ph{display:grid;place-items:center;background:var(--surface-2);font-weight:700}.tag{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;font-size:.75rem;background:var(--surface-2)}.tag.pro{margin-left:0;background:var(--accent);color:var(--accent-text)}.admin-actions{gap:4px;margin-top:6px}.admin-actions button{padding:2px 8px;font-size:.8rem}.admin-pager{justify-content:center;margin-top:12px}.legal-links{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;font-size:.85rem;padding:8px 0}.legal{max-width:760px;margin:0 auto;padding:24px 16px 40px;line-height:1.7}.legal h1{margin:12px 0 4px;font-size:1.5rem}.legal h2{margin:24px 0 6px;font-size:1.1rem}.legal ul{padding-left:1.3em;margin:0}.legal li{margin:4px 0}.legal .legal-links{margin-top:32px;border-top:1px solid var(--border);padding-top:16px}.terms-note{margin:-4px 0 0;text-align:center;line-height:1.5}.auth .agree{display:flex;flex-direction:row;align-items:flex-start;gap:8px;font-size:.9rem;line-height:1.5}.auth .agree input{width:auto;margin-top:4px;flex:none}.lang-select{width:auto;padding:4px 8px;font-size:.85rem}.auth .lang-select{align-self:center}.seg.wrap{flex-wrap:wrap}.mask-shapes{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}:is(.editor,.m-editor) .mask-shapes button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;font-size:.72rem;border:1px solid transparent}.mask-shapes button span{font-size:1.2rem;line-height:1.1}:is(.editor,.m-editor) .mask-shapes button.on{border-color:var(--accent);color:var(--accent)}.font-row-wrap{align-items:flex-start}.font-picker{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}:is(.editor,.m-editor) .font-current{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:6px 10px;font-size:1rem;text-align:left}.font-current span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.font-panel{display:flex;flex-direction:column;gap:6px;background:var(--surface-2);border-radius:8px;padding:6px}.font-search{width:100%}.font-list{max-height:300px;overflow-y:auto;display:flex;flex-direction:column;gap:2px}:is(.editor,.m-editor) .font-row{display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:6px 8px;text-align:left;border:1px solid transparent;background:var(--surface)}:is(.editor,.m-editor) .font-row.on{border-color:var(--accent)}.font-sample{font-size:1.25rem;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.font-row small{opacity:.6;font-size:.7rem}.modal.new-project{width:min(560px,100%);gap:16px}.modal.new-project h2{margin:0}.np-field{display:flex;flex-direction:column;gap:6px}.np-field>span{font-size:.85rem;color:var(--muted, #888)}.np-field input{font-size:1rem;padding:10px 12px}.np-ratios{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.np-ratio{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px!important;border:1.5px solid var(--border)!important;border-radius:10px;background:transparent}.np-ratio:hover:not(:disabled){border-color:var(--accent)!important}.np-ratio.on{border-color:var(--accent)!important;background:color-mix(in srgb,var(--accent) 12%,transparent)}.np-shape{height:50px;display:grid;place-items:center}.np-shape i{display:block;border:2px solid currentColor;border-radius:4px;opacity:.8}.np-ratio.on .np-shape i{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 25%,transparent);opacity:1}.np-ratio small{font-size:.62rem;color:var(--muted, #888);text-align:center;line-height:1.25;min-height:2.5em}.np-actions{justify-content:flex-end;gap:8px}@media(max-width:520px){.np-ratios{grid-template-columns:repeat(3,1fr)}}.dialog-back{z-index:100;animation:dialog-fade .12s ease-out}.modal.dialog{width:min(400px,100%);gap:16px;animation:dialog-pop .16s ease-out;box-shadow:0 20px 60px #00000059}.dialog-head{display:flex;gap:12px;align-items:flex-start}.dialog-icon{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:1.15rem;background:color-mix(in srgb,var(--accent) 14%,transparent)}.tone-error .dialog-icon,.tone-danger .dialog-icon{background:color-mix(in srgb,var(--danger) 14%,transparent)}.dialog-text{min-width:0;flex:1;padding-top:2px}.dialog-text h3{margin:0 0 4px;font-size:1.05rem}.dialog-text p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;color:var(--text)}.dialog-text h3+p{color:var(--muted)}.dialog-input{width:100%;font-size:1rem;padding:10px 12px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px}.dialog-actions button{min-width:88px;padding:8px 16px}button.danger-fill{background:var(--danger);border-color:var(--danger);color:#fff}@keyframes dialog-fade{0%{opacity:0}}@keyframes dialog-pop{0%{opacity:0;transform:translateY(8px) scale(.97)}}.inapp-notice{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:12px;background:#fff4e5;border:1px solid #f5c26b;color:#6b4300;font-size:.9rem}.inapp-notice p{margin:0}.inapp-notice a.primary{text-align:center;text-decoration:none;padding:10px;border-radius:10px}.auth-lead{text-align:center;margin:0;color:var(--muted, #666)}
