*,*:before,*:after{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}html,body{width:100%;height:100%;overflow:hidden;background-color:#0b0d10;color:#f0f3f8;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,SF Pro Text,Hiragino Sans,Segoe UI,Roboto,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}button{font-family:inherit;border:none;background:none;cursor:pointer;outline:none;color:inherit;user-select:none;-webkit-user-select:none}button:disabled{cursor:not-allowed;opacity:.45}input,select{font-family:inherit;color:inherit}a{color:inherit;text-decoration:none}.camera-view{position:relative;width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:center;background-color:#000;overflow:hidden}.camera-view .viewfinder-container{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.camera-view .viewfinder-container video{width:100%;height:100%;object-fit:cover}.camera-view .camera-top-bar{position:relative;z-index:20;width:100%;display:flex;justify-content:space-between;align-items:center;padding-top:calc(env(safe-area-inset-top,28px) + 8px);padding-bottom:12px;padding-left:calc(env(safe-area-inset-left,0px) + 16px);padding-right:calc(env(safe-area-inset-right,0px) + 16px);background:linear-gradient(to bottom,rgba(0,0,0,.75) 0%,transparent 100%)}.camera-view .camera-top-bar .timer-badge{display:flex;align-items:center;gap:6px;padding:6px 14px;background-color:#14171dd9;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:9999px;border:1px solid #262B36;font-family:SF Mono,Fira Code,Menlo,Monaco,Consolas,monospace;font-size:13px;font-weight:600;color:#f0f3f8}.camera-view .camera-top-bar .timer-badge .rec-dot{width:8px;height:8px;border-radius:50%;background-color:#e5484d}.camera-view .camera-top-bar .timer-badge .rec-dot.is-recording{animation:pulse-red 1.2s infinite}.camera-view .camera-top-bar .camera-actions{display:flex;align-items:center;gap:10px}.camera-view .camera-top-bar .camera-actions .icon-btn{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background-color:#1d212ad9;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid #262B36;color:#f0f3f8;transition:background-color .15s ease,transform .15s ease}.camera-view .camera-top-bar .camera-actions .icon-btn:hover{background-color:#2d3441f2}.camera-view .camera-top-bar .camera-actions .icon-btn:active{transform:scale(.93)}.camera-view .camera-bottom-bar{position:relative;z-index:20;width:100%;display:flex;flex-direction:column;align-items:center;padding-top:16px;padding-bottom:calc(env(safe-area-inset-bottom,20px) + 20px);padding-left:calc(env(safe-area-inset-left,0px) + 20px);padding-right:calc(env(safe-area-inset-right,0px) + 20px);background:linear-gradient(to top,rgba(0,0,0,.85) 0%,transparent 100%);gap:14px}.camera-view .camera-bottom-bar .recording-hint{font-size:13px;font-weight:500;color:#ffffffd9;text-shadow:0 1px 4px rgba(0,0,0,.8);letter-spacing:.02em}.camera-view .camera-bottom-bar .shutter-controls-row{width:100%;max-width:380px;display:flex;justify-content:space-around;align-items:center}.camera-view .camera-bottom-bar .shutter-controls-row .camera-side-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:60px;color:#ffffffe6;font-size:11px;font-weight:500;transition:transform .15s ease,opacity .15s ease}.camera-view .camera-bottom-bar .shutter-controls-row .camera-side-btn:active{transform:scale(.92)}.camera-view .camera-bottom-bar .shutter-controls-row .camera-side-btn.btn-go-editor .thumb-badge-wrapper{position:relative;width:48px;height:48px;border-radius:6px;border:2px solid #3B82F6;background-color:#1d212a;overflow:hidden;box-shadow:0 0 12px #3b82f64d}.camera-view .camera-bottom-bar .shutter-controls-row .camera-side-btn.btn-go-editor .thumb-badge-wrapper video{width:100%;height:100%;object-fit:cover;pointer-events:none}.camera-view .camera-bottom-bar .shutter-controls-row .camera-side-btn.btn-go-editor .thumb-badge-wrapper .take-badge{position:absolute;top:-2px;right:-2px;min-width:18px;height:18px;padding:0 4px;border-radius:9999px;background-color:#e5484d;color:#fff;font-family:SF Mono,Fira Code,Menlo,Monaco,Consolas,monospace;font-size:10px;font-weight:700;display:flex;justify-content:center;align-items:center;border:1px solid #fff}.camera-view .camera-bottom-bar .shutter-controls-row .camera-side-btn.btn-go-editor .label{color:#3b82f6;font-weight:600;font-size:12px}.camera-view .camera-bottom-bar .shutter-controls-row .shutter-wrapper{position:relative;width:84px;height:84px;display:flex;justify-content:center;align-items:center}.camera-view .camera-bottom-bar .shutter-controls-row .shutter-wrapper .shutter-progress-ring{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;transform:rotate(-90deg);pointer-events:none}.camera-view .camera-bottom-bar .shutter-controls-row .shutter-wrapper .shutter-progress-ring circle{fill:none;stroke-width:4;stroke-linecap:round}.camera-view .camera-bottom-bar .shutter-controls-row .shutter-wrapper .shutter-progress-ring circle.ring-bg{stroke:#ffffff40}.camera-view .camera-bottom-bar .shutter-controls-row .shutter-wrapper .shutter-progress-ring circle.ring-val{stroke:#e5484d;stroke-dasharray:251.2;stroke-dashoffset:251.2;transition:stroke-dashoffset .05s linear}.camera-view .camera-bottom-bar .shutter-controls-row .shutter-wrapper .shutter-btn{width:68px;height:68px;border-radius:50%;background-color:#e5484d;box-shadow:0 0 20px #e5484d59;border:4px solid #fff;transition:transform .15s ease,border-radius .15s ease,background-color .15s ease;touch-action:none}.camera-view .camera-bottom-bar .shutter-controls-row .shutter-wrapper .shutter-btn:active,.camera-view .camera-bottom-bar .shutter-controls-row .shutter-wrapper .shutter-btn.is-holding{transform:scale(.9);border-radius:14px;background-color:#f2555a}@keyframes pulse-red{0%{transform:scale(1);opacity:1}50%{transform:scale(1.3);opacity:.5}to{transform:scale(1);opacity:1}}.editor-view{display:flex;flex-direction:column;width:100%;height:100%;background-color:#0b0d10;overflow:hidden}.editor-view .editor-header{display:flex;justify-content:space-between;align-items:center;padding-top:calc(env(safe-area-inset-top,28px) + 8px);padding-bottom:12px;padding-left:calc(env(safe-area-inset-left,0px) + 16px);padding-right:calc(env(safe-area-inset-right,0px) + 16px);background-color:#14171d;border-bottom:1px solid #262B36;z-index:20}.editor-view .editor-header .header-left{display:flex;align-items:center;gap:8px}.editor-view .editor-header .header-left .brand-title{font-size:16px;font-weight:700;letter-spacing:-.02em;color:#f0f3f8}.editor-view .editor-header .header-left .brand-title span{color:#e5484d}.editor-view .editor-header .header-right{display:flex;align-items:center;gap:8px}.editor-view .editor-header .header-right .btn-record-mode{display:flex;align-items:center;gap:6px;padding:6px 12px;background-color:#1d212a;border:1px solid #262B36;border-radius:9999px;font-size:12px;font-weight:600;color:#9ba3b4;transition:background-color .15s ease,color .15s ease}.editor-view .editor-header .header-right .btn-record-mode:hover{background-color:#383f4e;color:#f0f3f8}.editor-view .editor-header .header-right .btn-record-mode .dot-rec{width:8px;height:8px;border-radius:50%;background-color:#e5484d}.editor-view .editor-header .header-right .btn-export-primary{display:flex;align-items:center;gap:6px;padding:6px 14px;background-color:#3b82f6;box-shadow:0 0 12px #3b82f64d;border-radius:9999px;font-size:13px;font-weight:600;color:#fff;transition:background-color .15s ease,transform .15s ease}.editor-view .editor-header .header-right .btn-export-primary:hover{background-color:#5895f7}.editor-view .editor-header .header-right .btn-export-primary:active{transform:scale(.96)}.editor-view .editor-header .header-right .btn-export-primary:disabled{background-color:#383f4e;box-shadow:none;color:#5e6676;cursor:not-allowed}.editor-view .preview-section{flex:1;min-height:200px;position:relative;display:flex;justify-content:center;align-items:center;background-color:#000;overflow:hidden}.editor-view .preview-section video{max-width:100%;max-height:100%;object-fit:contain}.editor-view .preview-section .play-pause-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background-color:#00000040;cursor:pointer;opacity:0;transition:opacity .15s ease}.editor-view .preview-section .play-pause-overlay.is-paused{opacity:1}.editor-view .preview-section .play-pause-overlay .play-icon-circle{width:54px;height:54px;border-radius:50%;background-color:#14171dcc;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;justify-content:center;align-items:center;border:1px solid rgba(255,255,255,.2);color:#fff;transition:transform .15s ease}.editor-view .preview-section .play-pause-overlay .play-icon-circle:active{transform:scale(.9)}.editor-view .preview-section .preview-time-display{position:absolute;bottom:12px;left:16px;padding:4px 8px;background-color:#0b0d10bf;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:6px;font-family:SF Mono,Fira Code,Menlo,Monaco,Consolas,monospace;font-size:11px;color:#f0f3f8}.editor-view .timeline-section{background-color:#14171d;border-top:1px solid #262B36;padding:12px 16px 16px;display:flex;flex-direction:column;gap:12px}.editor-view .timeline-section .timeline-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px}.editor-view .timeline-section .timeline-toolbar .cut-actions-group{display:flex;align-items:center;gap:6px}.editor-view .timeline-section .timeline-toolbar .cut-actions-group .btn-action{display:flex;align-items:center;gap:5px;padding:6px 10px;border-radius:6px;font-size:12px;font-weight:500;background-color:#1d212a;border:1px solid #262B36;color:#f0f3f8;transition:background-color .15s ease,border-color .15s ease}.editor-view .timeline-section .timeline-toolbar .cut-actions-group .btn-action:hover{background-color:#383f4e}.editor-view .timeline-section .timeline-toolbar .cut-actions-group .btn-action:active{transform:scale(.96)}.editor-view .timeline-section .timeline-toolbar .cut-actions-group .btn-action.btn-delete-range{color:#f37373;border-color:#ef44444d}.editor-view .timeline-section .timeline-toolbar .cut-actions-group .btn-action.btn-delete-range:hover{background-color:#ef444433}.editor-view .timeline-section .timeline-toolbar .cut-actions-group .btn-action.btn-keep-range{color:#f5a623;border-color:#f5a6234d}.editor-view .timeline-section .timeline-toolbar .cut-actions-group .btn-action.btn-keep-range:hover{background-color:#f5a62338}.editor-view .timeline-section .timeline-toolbar .cut-actions-group .btn-action.btn-save-clip{color:#14e8a2;border-color:#10b9814d}.editor-view .timeline-section .timeline-toolbar .cut-actions-group .btn-action.btn-save-clip:hover{background-color:#10b98133}.editor-view .timeline-section .timeline-toolbar .aux-actions-group{display:flex;align-items:center;gap:6px}.editor-view .timeline-section .timeline-toolbar .aux-actions-group .btn-icon-action{width:32px;height:32px;display:flex;justify-content:center;align-items:center;border-radius:6px;background-color:#1d212a;border:1px solid #262B36;color:#9ba3b4;transition:color .15s ease,background-color .15s ease}.editor-view .timeline-section .timeline-toolbar .aux-actions-group .btn-icon-action:hover{background-color:#383f4e;color:#f0f3f8}.editor-view .timeline-section .timeline-toolbar .aux-actions-group .btn-icon-action:active{transform:scale(.94)}.editor-view .timeline-section .timeline-track-wrapper{position:relative;width:100%;height:60px;background-color:#0b0d10;border:1px solid #262B36;border-radius:10px;user-select:none;-webkit-user-select:none;touch-action:none;overflow:hidden}.editor-view .timeline-section .timeline-track-wrapper .timeline-frames{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;pointer-events:none}.editor-view .timeline-section .timeline-track-wrapper .timeline-frames .frame-strip{flex:1;height:100%;border-right:1px solid rgba(255,255,255,.05);background-size:cover;background-position:center;opacity:.6}.editor-view .timeline-section .timeline-track-wrapper .timeline-selection{position:absolute;top:0;bottom:0;background-color:#f5a62338;border-top:2px solid #F5A623;border-bottom:2px solid #F5A623;pointer-events:none}.editor-view .timeline-section .timeline-track-wrapper .timeline-selection.mode-delete{background-color:#ef444433;border-top-color:#ef4444;border-bottom-color:#ef4444}.editor-view .timeline-section .timeline-track-wrapper .timeline-selection .handle{position:absolute;top:0;bottom:0;width:14px;display:flex;justify-content:center;align-items:center;background-color:#f5a623;pointer-events:auto;cursor:ew-resize;touch-action:none}.editor-view .timeline-section .timeline-track-wrapper .timeline-selection .handle:after{content:"";width:2px;height:18px;background-color:#000;border-radius:1px}.editor-view .timeline-section .timeline-track-wrapper .timeline-selection .handle.handle-left{left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.editor-view .timeline-section .timeline-track-wrapper .timeline-selection .handle.handle-right{right:0;border-top-right-radius:4px;border-bottom-right-radius:4px}.editor-view .timeline-section .timeline-track-wrapper .timeline-playhead{position:absolute;top:0;bottom:0;width:2px;background-color:#fff;box-shadow:0 0 6px #fffc;pointer-events:none;z-index:10}.editor-view .timeline-section .timeline-track-wrapper .timeline-playhead:before{content:"";position:absolute;top:0;left:50%;transform:translate(-50%);width:8px;height:8px;border-radius:50%;background-color:#fff}.editor-view .clips-tray{background-color:#14171d;border-top:1px solid #262B36;padding-top:10px;padding-bottom:calc(env(safe-area-inset-bottom,20px) + 16px);padding-left:calc(env(safe-area-inset-left,0px) + 16px);padding-right:calc(env(safe-area-inset-right,0px) + 16px);display:flex;flex-direction:column;gap:8px}.editor-view .clips-tray .tray-header{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#5e6676}.editor-view .clips-tray .tray-header .tray-info{display:flex;gap:8px}.editor-view .clips-tray .clips-scroll-container{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}.editor-view .clips-tray .clips-scroll-container::-webkit-scrollbar{height:4px}.editor-view .clips-tray .clips-scroll-container::-webkit-scrollbar-thumb{background-color:#383f4e;border-radius:2px}.editor-view .clips-tray .clips-scroll-container .clip-card{position:relative;flex:0 0 88px;height:64px;border-radius:6px;border:2px solid #262B36;background-color:#1d212a;overflow:hidden;cursor:pointer;transition:border-color .15s ease,transform .15s ease}.editor-view .clips-tray .clips-scroll-container .clip-card video{width:100%;height:100%;object-fit:cover;pointer-events:none}.editor-view .clips-tray .clips-scroll-container .clip-card.is-selected{border-color:#3b82f6}.editor-view .clips-tray .clips-scroll-container .clip-card .clip-duration-badge{position:absolute;bottom:3px;right:3px;padding:1px 4px;background-color:#000000b3;border-radius:3px;font-family:SF Mono,Fira Code,Menlo,Monaco,Consolas,monospace;font-size:9px;font-weight:600;color:#fff}.editor-view .clips-tray .clips-scroll-container .clip-card .clip-index-badge{position:absolute;top:3px;left:3px;padding:1px 4px;background-color:#000000b3;border-radius:3px;font-size:9px;font-weight:600;color:#9ba3b4}.editor-view .clips-tray .clips-scroll-container .btn-add-clip{flex:0 0 64px;height:64px;border-radius:6px;border:1px dashed #383F4E;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;color:#5e6676;font-size:10px;transition:border-color .15s ease,color .15s ease,background-color .15s ease}.editor-view .clips-tray .clips-scroll-container .btn-add-clip:hover{border-color:#9ba3b4;color:#f0f3f8;background-color:#1d212a}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;justify-content:center;align-items:center;background-color:#0b0d10e0;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);padding:20px;animation:modal-fade-in .15s ease forwards}.modal-backdrop.is-hidden{display:none}.modal-backdrop .modal-card{width:100%;max-width:440px;background-color:#14171d;border:1px solid #262B36;border-radius:16px;box-shadow:0 8px 24px #00000080;overflow:hidden;display:flex;flex-direction:column}.modal-backdrop .modal-card .modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #262B36}.modal-backdrop .modal-card .modal-header .modal-title{font-size:16px;font-weight:600;color:#f0f3f8}.modal-backdrop .modal-card .modal-header .btn-close-modal{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;color:#9ba3b4;transition:background-color .15s ease,color .15s ease}.modal-backdrop .modal-card .modal-header .btn-close-modal:hover{background-color:#1d212a;color:#f0f3f8}.modal-backdrop .modal-card .modal-body{padding:20px;display:flex;flex-direction:column;gap:16px}.modal-backdrop .modal-card .modal-body .processing-state{display:flex;flex-direction:column;align-items:center;gap:16px;padding:24px 0}.modal-backdrop .modal-card .modal-body .processing-state .spinner{width:40px;height:40px;border:3px solid #383F4E;border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite}.modal-backdrop .modal-card .modal-body .processing-state .processing-text{font-size:14px;font-weight:500;color:#f0f3f8}.modal-backdrop .modal-card .modal-body .processing-state .processing-desc{font-size:12px;color:#5e6676;text-align:center}.modal-backdrop .modal-card .modal-body .success-state{display:flex;flex-direction:column;gap:14px}.modal-backdrop .modal-card .modal-body .success-state .result-video-preview{width:100%;height:240px;background-color:#000;border-radius:10px;overflow:hidden}.modal-backdrop .modal-card .modal-body .success-state .result-video-preview video{width:100%;height:100%;object-fit:contain}.modal-backdrop .modal-card .modal-body .success-state .result-stats{display:flex;justify-content:space-around;padding:10px 12px;background-color:#1d212a;border-radius:6px;border:1px solid #262B36}.modal-backdrop .modal-card .modal-body .success-state .result-stats .stat-item{display:flex;flex-direction:column;align-items:center;gap:2px}.modal-backdrop .modal-card .modal-body .success-state .result-stats .stat-item .stat-label{font-size:11px;color:#5e6676}.modal-backdrop .modal-card .modal-body .success-state .result-stats .stat-item .stat-value{font-family:SF Mono,Fira Code,Menlo,Monaco,Consolas,monospace;font-size:13px;font-weight:600;color:#f0f3f8}.modal-backdrop .modal-card .modal-body .success-state .modal-action-buttons{display:flex;flex-direction:column;gap:10px;margin-top:6px}.modal-backdrop .modal-card .modal-body .success-state .modal-action-buttons .btn-save-video{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px;background-color:#3b82f6;border-radius:10px;color:#fff;font-size:14px;font-weight:600;box-shadow:0 0 16px #3b82f64d;transition:background-color .15s ease,transform .15s ease}.modal-backdrop .modal-card .modal-body .success-state .modal-action-buttons .btn-save-video:hover{background-color:#5895f7}.modal-backdrop .modal-card .modal-body .success-state .modal-action-buttons .btn-save-video:active{transform:scale(.98)}.modal-backdrop .modal-card .modal-body .success-state .modal-action-buttons .btn-download-direct{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:10px;background-color:#1d212a;border:1px solid #262B36;border-radius:10px;color:#9ba3b4;font-size:13px;font-weight:500;transition:background-color .15s ease,color .15s ease}.modal-backdrop .modal-card .modal-body .success-state .modal-action-buttons .btn-download-direct:hover{background-color:#383f4e;color:#f0f3f8}.modal-backdrop .modal-card .modal-body .success-state .modal-action-buttons .save-hint-text{font-size:11px;color:#5e6676;text-align:center;line-height:1.4}.toast-container{position:fixed;top:calc(env(safe-area-inset-top,28px) + 12px);left:50%;transform:translate(-50%);z-index:200;display:flex;flex-direction:column;gap:8px;pointer-events:none}.toast-container .toast{pointer-events:auto;display:flex;align-items:center;gap:8px;padding:10px 18px;border-radius:9999px;background-color:#1d212af2;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid #383F4E;box-shadow:0 8px 24px #00000080;font-size:13px;font-weight:500;color:#f0f3f8;animation:toast-slide-in .2s cubic-bezier(.16,1,.3,1) forwards}.toast-container .toast.toast-error{border-color:#ef444480;color:#f37373}.toast-container .toast.toast-success{border-color:#10b98180;color:#14e8a2}@keyframes modal-fade-in{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}@keyframes toast-slide-in{0%{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:translateY(0)}}@keyframes spin{to{transform:rotate(360deg)}}#app{position:relative;width:100vw;height:100dvh;overflow:hidden;display:flex;flex-direction:column;background-color:#0b0d10}.view-layer{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;transition:opacity .15s ease,transform .15s ease}.view-layer.is-hidden{opacity:0;pointer-events:none;transform:scale(.98)}
