:root{--primary: #3b82f6;--primary-dark: #2563eb;--bg: #f1f5f9;--card-bg: #ffffff;--text: #1e293b;--text-muted: #64748b;--border: #e2e8f0;--success: #22c55e;--warning: #f59e0b;--error: #ef4444;--accent: #8b5cf6;--code-bg: #1e293b;--code-text: #e2e8f0;--radius: 10px;--radius-sm: 6px}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;min-height:100vh}.app-header{background:var(--card-bg);border-bottom:1px solid var(--border);box-shadow:0 1px 3px #0000000a;position:sticky;top:0;z-index:100}.header-inner{max-width:1200px;margin:0 auto;padding:0 20px;height:56px;display:flex;align-items:center;justify-content:space-between}.logo{display:flex;align-items:center;gap:8px;color:var(--primary);text-decoration:none}.logo h1{font-size:20px;font-weight:700;color:var(--text)}.logo h1{max-width:46vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.boot-title{max-width:86vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#footer-host{display:inline-block;max-width:56vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}.header-right{display:flex;align-items:center;gap:16px}.lang-switch{position:relative}.lang-btn{border:none;background:transparent;padding:6px 10px;font-size:12px;font-weight:600;color:var(--text-muted);cursor:pointer;transition:all .15s;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.lang-btn:not(.active):hover{background:var(--bg);color:var(--text)}.lang-btn.active{background:var(--primary);color:#fff}.lang-caret{opacity:.7;flex:none}.lang-menu{position:absolute;top:calc(100% + 6px);inset-inline-end:0;z-index:60;margin:0;padding:6px;list-style:none;min-width:208px;max-height:60vh;overflow-y:auto;background:var(--card-bg);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:0 10px 28px #00000029}.lang-menu.hidden{display:none}.lang-native{white-space:nowrap}.lang-item{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:7px 10px;font-size:13px;color:var(--text);border-radius:6px;cursor:pointer}.lang-item:hover{background:var(--bg)}.lang-item[aria-selected=true]{background:var(--primary);color:#fff}.lang-item[aria-selected=true] .lang-en{opacity:.85}.lang-en{font-size:11px;color:var(--text-muted)}.lang-item[aria-selected=true] .lang-en{color:#fff}[dir=rtl] .lang-item{flex-direction:row-reverse;text-align:right}.tab-nav{display:flex;gap:4px}.main-tab{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:5px 10px;min-height:40px;border:1px solid var(--border);background:var(--card-bg);border-radius:var(--radius-sm);cursor:pointer;font-size:11px;font-weight:500;line-height:1.2;color:var(--text-muted);transition:all .15s}.main-tab:hover{border-color:var(--primary);color:var(--primary)}.main-tab.active{border-color:var(--primary);background:#3b82f60f;color:var(--primary)}.main-tab svg{width:18px;height:18px;flex-shrink:0}.main-tab .tab-badge{position:absolute;top:-6px;inset-inline-end:-4px}.tab-badge{background:var(--accent);color:#fff;font-size:10px;font-weight:700;min-width:16px;height:16px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;padding:0 4px}.app-main{max-width:1200px;margin:0 auto;padding:20px}.tool-hero{margin:0 0 18px;padding-bottom:14px;border-bottom:1px solid var(--border, #e5e7eb)}.tool-hero h1{margin:0 0 6px;font-size:22px;font-weight:600;line-height:1.3;color:var(--text, #1f2937)}.tool-hero p{margin:0;font-size:13.5px;line-height:1.6;color:var(--text-muted, #6b7280)}.tool-hero.hidden{display:none}@media (max-width: 640px){.tool-hero{margin-bottom:14px}.tool-hero h1{font-size:19px}}.card{background:var(--card-bg);border:1px solid var(--border);border-radius:var(--radius);padding:20px;margin-bottom:20px;box-shadow:0 1px 3px #0000000f}.card-title{font-size:16px;font-weight:600;margin-bottom:16px}.btn{border:none;padding:8px 16px;border-radius:var(--radius-sm);font-size:14px;cursor:pointer;transition:opacity .15s,background .15s;font-weight:500;display:inline-flex;align-items:center;gap:6px;text-decoration:none}.btn:hover{opacity:.85}.btn:disabled{opacity:.4;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-secondary{background:#e2e8f0;color:var(--text)}.btn-accent{background:var(--accent);color:#fff}.btn-ghost{background:transparent;color:var(--text-muted)}.btn-danger{background:var(--error);color:#fff}.btn-sm{padding:4px 10px;font-size:12px}.btn-mini{padding:2px 8px;font-size:11px;background:#f1f5f9;color:var(--text-muted)}.btn.big{padding:10px 24px;font-size:15px}.btn.full-width{width:100%;justify-content:center}.drop-zone{padding:60px 24px;text-align:center;cursor:pointer;border:2px dashed var(--border);border-radius:var(--radius);transition:border-color .2s,background .2s;margin:0}.drop-zone:hover,.drop-zone.dragover{border-color:var(--primary);background:#3b82f60a}.drop-zone.dragover .drop-icon{color:var(--primary)}.drop-icon{color:var(--text-muted);margin-bottom:12px;transition:color .2s}.drop-title{font-size:16px;color:var(--text);margin-bottom:6px}.drop-title .link{color:var(--primary);text-decoration:underline}.drop-hint{font-size:13px;color:var(--text-muted)}.workspace{margin-bottom:20px}.workspace-grid{display:grid;grid-template-columns:1fr 380px;gap:20px}@media (max-width: 900px){.workspace-grid{grid-template-columns:1fr}}.player-card{padding:0;overflow:hidden}.video-wrap{background:#000;border-radius:var(--radius) var(--radius) 0 0;overflow:hidden;position:relative}.player-fallback-hint{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px 26px;text-align:center;pointer-events:none;background:#0f172ad1;color:#e2e8f0;font-size:13px;line-height:1.6}#video-player{width:100%;display:block;max-height:450px}.timeline-wrap{position:relative;height:48px;background:#f8fafc;border-bottom:1px solid var(--border)}#timeline-canvas{width:100%;height:100%;display:block;cursor:pointer;touch-action:none}.timeline-tooltip{position:absolute;bottom:100%;left:0;background:var(--text);color:#fff;padding:3px 8px;border-radius:4px;font-size:11px;font-family:monospace;pointer-events:none;opacity:0;transition:opacity .15s;white-space:nowrap;transform:translate(-50%)}.timeline-tooltip.show{opacity:1}.player-controls{padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.time-display{font-family:Cascadia Code,Consolas,monospace;font-size:13px;color:var(--text-muted)}.time-sep{margin:0 4px}.control-buttons{display:flex;align-items:center;gap:8px}.icon-btn{background:#f1f5f9;border:none;border-radius:var(--radius-sm);padding:6px 8px;cursor:pointer;color:var(--text-muted);transition:background .15s}.icon-btn:hover{background:#e2e8f0}.mark-btn{background:var(--accent);color:#fff;border:none;border-radius:var(--radius-sm);padding:6px 14px;cursor:pointer;font-size:13px;font-weight:500;display:flex;align-items:center;gap:5px;transition:opacity .15s}.mark-btn:hover{opacity:.85}.video-info{padding:8px 16px 12px;display:flex;gap:8px;flex-wrap:wrap}.info-chip{background:#f1f5f9;padding:3px 10px;border-radius:20px;font-size:12px;color:var(--text-muted)}.info-chip strong{color:var(--text);font-weight:600}.control-card{padding:20px}.mode-switch{display:flex;gap:8px;margin-bottom:16px}.mode-btn{flex:1;padding:8px 12px;border:1.5px solid var(--border);background:var(--card-bg);border-radius:var(--radius-sm);cursor:pointer;font-size:13px;font-weight:500;color:var(--text-muted);display:flex;align-items:center;justify-content:center;gap:5px;transition:all .15s}.mode-btn:hover{border-color:var(--primary)}.mode-btn.active{border-color:var(--primary);background:#3b82f60f;color:var(--primary)}.mode-panel{margin-bottom:16px}.interval-row{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}.field label{display:block;font-size:13px;color:var(--text-muted);margin-bottom:6px}.input-with-steps{display:flex;align-items:center;gap:0}.step-btn{border:1px solid var(--border);background:#f8fafc;padding:6px 12px;font-size:13px;cursor:pointer;color:var(--text-muted)}.step-btn:first-child{border-radius:var(--radius-sm) 0 0 var(--radius-sm)}.step-btn:last-child{border-radius:0 var(--radius-sm) var(--radius-sm) 0}.input-with-steps input{width:70px;text-align:center;border:1px solid var(--border);border-left:none;border-right:none;padding:6px 8px;font-size:14px}.input-text{border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 12px;font-size:14px;width:100%}.preset-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.preset-label{font-size:12px;color:var(--text-muted)}.preset-chip{border:1px solid var(--border);background:var(--card-bg);padding:3px 10px;border-radius:20px;font-size:12px;cursor:pointer;color:var(--text);transition:all .15s}.preset-chip:hover{border-color:var(--primary);color:var(--primary)}.interval-preview{margin-top:10px;padding:8px 12px;background:#3b82f60f;border-radius:var(--radius-sm);font-size:13px;color:var(--primary)}.manual-tip{display:flex;gap:8px;padding:10px 12px;background:#fef3c7;border-radius:var(--radius-sm);font-size:12px;color:#92400e;line-height:1.5;margin-bottom:12px}.manual-actions{display:flex;gap:8px}.scene-controls{display:flex;flex-direction:column;gap:14px;margin-bottom:12px}.slider{width:100%;height:6px;border-radius:3px;background:#e2e8f0;outline:none;-webkit-appearance:none;appearance:none;cursor:pointer}.slider:focus-visible{outline:2px solid var(--primary);outline-offset:3px}.slider:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px #6366f147}.slider:focus-visible::-moz-range-thumb{box-shadow:0 0 0 4px #6366f147}.slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:var(--accent);cursor:pointer}.slider::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:var(--accent);cursor:pointer;border:none}.sens-scale{display:flex;justify-content:space-between;font-size:11px;color:var(--text-muted);margin-top:4px}.scene-status{padding:10px 12px;border-radius:var(--radius-sm);font-size:13px;margin-top:10px;background:#8b5cf614;color:var(--accent)}.scene-status.error{background:#ef444414;color:var(--error)}.scene-err-hint{font-size:11px;opacity:.8}.points-section{margin-bottom:16px;border-top:1px solid var(--border);padding-top:14px}.points-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:13px;font-weight:600;color:var(--text)}.points-count{background:var(--primary);color:#fff;font-size:12px;padding:2px 8px;border-radius:20px;font-weight:600}.points-list{max-height:200px;overflow-y:auto}.empty-points{text-align:center;padding:16px;color:var(--text-muted);font-size:13px}.point-item{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:var(--radius-sm);font-size:13px;transition:background .1s}.point-item:hover{background:#f8fafc}.point-index{width:22px;height:22px;border-radius:50%;background:var(--primary);color:#fff;font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0}.point-time{font-family:monospace;color:var(--text);font-weight:600}.point-range{color:var(--text-muted);font-size:12px;flex:1}.point-del{border:none;background:transparent;color:var(--error);cursor:pointer;font-size:14px;padding:2px 6px;border-radius:4px}.point-del:hover{background:#ef44441a}.action-row{margin-bottom:12px}.slice-start-row{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap}.slice-err-hint{font-size:12px;color:var(--error);line-height:1.5;padding-top:5px;max-width:460px}.progress-section{margin-top:12px}.progress-bar-wrap{height:8px;background:#e2e8f0;border-radius:4px;overflow:hidden}.progress-bar{height:100%;background:var(--primary);width:0%;transition:width .2s;border-radius:4px}.progress-bar.error{background:var(--error)}.progress-bar.indeterminate{animation:progress-sweep 1.3s ease-in-out infinite;transition:none}@keyframes progress-sweep{0%{width:10%}50%{width:85%}to{width:10%}}.progress-text{display:flex;justify-content:space-between;margin-top:6px;font-size:12px;color:var(--text-muted)}#btn-cancel,#btn-cancel-compose{margin-top:8px}.results-section{margin-bottom:20px}.results-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.results-actions{display:flex;gap:8px}.results-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.result-item{border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden;transition:box-shadow .15s}.result-item:hover{box-shadow:0 2px 8px #00000014}.result-thumb{position:relative;background:#000;cursor:pointer;aspect-ratio:16/9}.result-thumb video{width:100%;height:100%;object-fit:cover}.result-duration-badge{position:absolute;bottom:4px;inset-inline-end:4px;background:#000000b3;color:#fff;font-size:11px;padding:2px 6px;border-radius:4px;font-family:monospace}.result-body{padding:8px 12px}.result-name{font-size:13px;font-weight:600;margin-bottom:4px;word-break:break-all}.result-meta{font-size:11px;color:var(--text-muted);margin-bottom:8px}.result-actions{display:flex;gap:6px}.result-actions .btn{padding:4px 10px;font-size:12px}.renamed-tag{color:var(--warning);font-size:10px}.result-banner{padding:8px 12px;background:#22c55e14;border-radius:var(--radius-sm);font-size:13px;color:var(--success);margin-bottom:12px}.compose-card{padding:24px}.compose-subtitle{font-size:13px;color:var(--text-muted);margin-bottom:20px}.compose-step{margin-bottom:24px}.step-title{font-size:14px;font-weight:600;margin-bottom:10px;color:var(--text)}.compose-queue{display:flex;flex-direction:column;gap:6px;min-height:60px}.queue-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);background:#f8fafc;transition:box-shadow .15s}.queue-item:hover{box-shadow:0 1px 4px #0000000f}.queue-item[draggable=true]{cursor:grab}.queue-item.dragging{opacity:.45;border-style:dashed}.queue-item.drop-target{border-color:var(--primary, #2563eb);background:#3b82f60f}.queue-index{width:24px;height:24px;border-radius:50%;background:var(--primary);color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}.queue-info{flex:1;min-width:0}.queue-name{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.queue-meta{font-size:11px;color:var(--text-muted)}.queue-actions{display:flex;gap:4px;flex-shrink:0}.queue-btn{border:none;background:transparent;color:var(--text-muted);cursor:pointer;font-size:14px;padding:4px 8px;border-radius:4px;transition:all .15s}.queue-btn:hover{background:#e2e8f0;color:var(--text)}.queue-btn:disabled{opacity:.3;cursor:not-allowed}.queue-btn.danger:hover{color:var(--error);background:#ef44441a}.compose-total{margin-top:8px;font-size:13px;color:var(--text-muted)}.compose-output-row{margin-bottom:12px}.compose-result{margin-top:20px}.compose-result-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.compose-result-video{max-width:100%;max-height:300px;border-radius:var(--radius-sm);cursor:pointer}.log-card{padding:16px}.log-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:13px;font-weight:600;color:var(--text)}.log-output{background:var(--code-bg);color:var(--code-text);padding:12px;border-radius:var(--radius-sm);font-size:11px;font-family:Cascadia Code,Fira Code,monospace;max-height:200px;overflow-y:auto;white-space:pre-wrap;word-break:break-all;line-height:1.5}.toast-container{position:fixed;top:70px;inset-inline-end:20px;z-index:90;display:flex;flex-direction:column;gap:8px}.toast{padding:10px 16px;border-radius:var(--radius-sm);font-size:13px;color:#fff;box-shadow:0 4px 12px #00000026;animation:slideIn .2s ease;max-width:320px}.toast.out{animation:slideOut .3s ease forwards}.toast.info{background:#2563eb}.toast.success{background:#15803d}.toast.warn{background:#b45309}.toast.error{background:#dc2626}@keyframes slideIn{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes slideOut{to{transform:translate(100%);opacity:0}}.hidden{display:none!important}.recent-chip{margin-top:12px;padding:8px 14px;font-size:13px;color:var(--primary);background:#6366f114;border:1px dashed var(--primary);border-radius:999px;cursor:pointer;transition:background .15s;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}.recent-chip strong{overflow:hidden;text-overflow:ellipsis}.recent-chip:hover{background:#6366f129}.recent-chip strong{font-weight:600}.boot-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:var(--bg, #f8fafc);transition:opacity .5s ease}.boot-overlay.done{opacity:0;pointer-events:none}.boot-box{text-align:center}.boot-logo{animation:bootPulse 1.2s ease-in-out infinite}.boot-title{margin-top:12px;font-size:20px;font-weight:700;color:#1e293b;min-height:28px}.boot-status{margin-top:6px;font-size:13px;color:#64748b}.boot-bar{width:200px;height:4px;margin:14px auto 0;background:#e2e8f0;border-radius:2px;overflow:hidden}.boot-bar-fill{width:40%;height:100%;background:var(--primary, #6366f1);border-radius:2px;animation:bootSlide 1.1s ease-in-out infinite}@keyframes bootPulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(.92);opacity:.8}}@keyframes bootSlide{0%{margin-left:-40%}to{margin-left:100%}}.point-editor{display:flex;align-items:center;gap:6px;padding:8px 10px;margin-bottom:6px;background:#fffbeb;border:1px solid #fcd34d;border-radius:var(--radius-sm);font-size:12px;flex-wrap:wrap}.point-editor.hidden{display:none}.pe-label{color:#92400e;font-weight:600;white-space:nowrap}.pe-time{width:84px;padding:4px 6px;border:1px solid #fcd34d;border-radius:4px;font-family:monospace;font-size:12px}.pe-unit{color:#92400e}.pe-btn{border:1px solid #fcd34d;background:#fff;color:#92400e;cursor:pointer;padding:3px 9px;border-radius:4px;font-size:12px}.pe-btn:hover{background:#fef3c7}.pe-btn.danger{color:var(--error);border-color:#ef444466}.pe-btn.danger:hover{background:#ef444414}.point-item.selected{background:#fffbeb}.point-item.selected .point-index{background:var(--warning, #f59e0b)}#timeline-canvas{display:block}.accurate-toggle{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--text-secondary, #475569);cursor:pointer;user-select:none;white-space:nowrap}.accurate-toggle input[type=checkbox]{width:14px;height:14px;accent-color:var(--primary, #3b82f6);cursor:pointer}.slice-options{margin-bottom:10px}.seg-control{display:flex;gap:3px;padding:3px;background:#eef2f7;border:1px solid var(--border);border-radius:10px}.seg-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 4px;border:none;border-radius:8px;background:transparent;color:var(--text-secondary, #475569);font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;transition:all .15s}.seg-btn:hover{color:var(--text, #0f172a)}.seg-btn.active{background:#fff;color:var(--primary, #3b82f6);box-shadow:0 1px 3px #0000001f}.slice-mode-hint{margin-top:6px;font-size:11px;line-height:1.45;color:var(--text-muted, #94a3b8)}.slice-mode-hint.scan{color:#d97706}.slice-mode-hint.ok{color:#059669}.slice-mode-hint.err{color:#dc2626}.slice-mode-hint.retry{color:#d97706;cursor:pointer;text-decoration:underline dotted}.slice-mode-hint.retry:hover{color:var(--primary, #2563eb)}.speed-priority-row{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:12px;color:var(--text-muted, #94a3b8);cursor:pointer;user-select:none}.speed-priority-row input{cursor:pointer}.upgrade-btn{padding:6px 14px;border:none;border-radius:var(--radius-sm, 6px);background:linear-gradient(135deg,#f59e0b,#ef4444);color:#fff;font-size:13px;font-weight:600;cursor:pointer;white-space:pre-line;text-align:center;line-height:1.35}.upgrade-btn:hover{filter:brightness(1.08)}.member-chip{padding:6px 12px;border:1px solid var(--border, #e5e7eb);border-radius:var(--radius-sm, 6px);background:var(--surface, #fff);color:var(--text, #1f2937);font-size:12px;cursor:pointer;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modal-overlay{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;background:#0f172a8c;backdrop-filter:blur(2px);padding:16px}.modal-card{position:relative;background:var(--surface, #fff);color:var(--text, #1f2937);border-radius:14px;box-shadow:0 20px 60px #00000040;max-width:520px;width:100%;max-height:90vh;overflow-y:auto;padding:28px}.modal-close{position:absolute;top:12px;inset-inline-end:14px;border:none;background:none;font-size:26px;line-height:1;cursor:pointer;color:var(--text-muted, #6b7280)}.quota-desc{font-size:14px;color:var(--text-muted, #4b5563);margin:8px 0 12px}.quota-remaining{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.quota-item{font-size:12px;padding:4px 10px;border-radius:999px;background:var(--surface-2, #f3f4f6);color:var(--text, #1f2937);border:1px solid var(--border, #e5e7eb)}.quota-item.used-up{background:#fee2e2;color:#b91c1c;border-color:#fecaca}.pricing{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:8px 0 12px}.price-card{position:relative;border:1.5px solid var(--border, #e5e7eb);border-radius:12px;padding:16px;text-align:center}.price-card.best{border-color:var(--primary, #2563eb)}.price-tag{position:absolute;top:-10px;left:50%;transform:translate(-50%);background:var(--primary, #2563eb);color:#fff;font-size:11px;padding:2px 10px;border-radius:999px;white-space:nowrap}.price-title{font-size:13px;color:var(--text-muted, #4b5563)}.price-num{font-size:28px;font-weight:700;margin:6px 0 12px}.price-num small{font-size:12px;font-weight:400;color:var(--text-muted, #6b7280)}.price-card .btn{width:100%}.pay-note{font-size:12px;color:var(--text-muted, #6b7280);text-align:center;margin:8px 0 16px}.member-login{text-align:center}.link-btn{border:none;background:none;color:var(--primary, #2563eb);cursor:pointer;font-size:13px}#login-form{display:flex;flex-direction:column;gap:8px;margin-top:12px}#login-form input{padding:9px 12px;border:1px solid var(--border, #d1d5db);border-radius:8px;font-size:14px;background:var(--surface, #fff);color:var(--text, #1f2937)}#login-form .btn{padding:9px}.autorenew-row{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text, #1f2937);margin:4px 0 12px;cursor:pointer;transition:opacity .15s}.autorenew-row input{accent-color:var(--primary, #2563eb);width:16px;height:16px}.autorenew-row.is-one-time{opacity:.35}.login-err{color:#dc2626;font-size:12px}.free-signup{border-top:1px solid var(--border, #d1d5db);margin-top:12px}.free-signup .pay-note{margin:10px 0 0}#register-form{display:flex;flex-direction:column;gap:8px;margin-top:10px}#register-form input{padding:9px 12px;border:1px solid var(--border, #d1d5db);border-radius:8px;font-size:14px;background:var(--surface, #fff);color:var(--text, #1f2937)}#register-form .btn{padding:9px}.cookie-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:900;display:flex;align-items:center;gap:14px;justify-content:space-between;background:var(--surface, #fff);color:var(--text, #1f2937);border:1px solid var(--border, #d1d5db);border-radius:12px;padding:12px 16px;font-size:13px;line-height:1.5;box-shadow:0 4px 18px #00000024;max-width:860px;margin:0 auto}.cookie-banner .btn{flex-shrink:0;padding:7px 16px}.seo-matrix{max-width:1100px;margin:28px auto 0;padding:0 20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px 32px}.seo-matrix-title{margin:0 0 8px;font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--text-muted, #64748b);text-transform:uppercase}.seo-matrix-list{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px}.seo-matrix-list a{color:#6b7280;text-decoration:none}.seo-matrix-list a:hover{color:var(--primary, #2563eb);text-decoration:underline}.seo-matrix-list a[aria-current=page]{color:var(--text, #1e293b);font-weight:600}.app-footer{max-width:1100px;margin:28px auto 0;padding:16px 20px 28px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:#9ca3af;font-size:13px;border-top:1px solid var(--border, #e5e7eb)}.app-footer a{color:#6b7280;text-decoration:none}.app-footer a:hover{color:var(--primary, #2563eb);text-decoration:underline}.convert-source-row{display:flex;align-items:center;gap:10px}.convert-source-row .convert-source{flex:1 1 auto}.convert-source-row .btn{flex:0 0 auto;white-space:nowrap}.login-btn{flex:0 0 auto}.convert-source{font-size:13px;color:var(--text, #1f2937);background:var(--bg, #f3f4f6);border-radius:8px;padding:9px 12px;overflow-wrap:anywhere}.convert-opt-row{display:flex;align-items:center;gap:12px;margin:10px 0}.convert-opt-row label{flex:0 0 140px;font-size:13px;color:var(--text, #1f2937)}.convert-opt-row select,.convert-opt-row input{flex:1;padding:8px 10px;border:1px solid var(--border, #d1d5db);border-radius:8px;font-size:14px;background:var(--surface, #fff);color:var(--text, #1f2937)}.convert-result-audio{width:100%}.convert-result-img{max-width:100%;border-radius:8px;border:1px solid var(--border, #e5e7eb);display:block;margin:0 auto}.bottom-nav{display:none}.bnav-btn{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px 7px;border:none;background:transparent;color:var(--text-muted);font-size:11px;font-weight:500;cursor:pointer;transition:color .15s}.bnav-btn.active{color:var(--primary)}.bnav-badge{position:absolute;top:3px;inset-inline-end:calc(50% - 24px)}.history-section{margin-top:4px}.history-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.history-header .card-title{margin-bottom:0}.hist-item{border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 12px;margin-bottom:8px}.hist-main{display:flex;align-items:center;gap:10px}.hist-type{font-size:11px;font-weight:700;padding:2px 9px;border-radius:999px;flex-shrink:0;white-space:nowrap}.hist-type-slice{background:#3b82f61a;color:var(--primary)}.hist-type-compose{background:#8b5cf61a;color:var(--accent)}.hist-type-convert{background:#f59e0b24;color:#b45309}.hist-info{flex:1;min-width:0}.hist-name{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hist-meta{font-size:11px;color:var(--text-muted)}.hist-actions{display:flex;gap:4px;flex-shrink:0}.hist-files{margin-top:8px;border-top:1px dashed var(--border);padding-top:8px;display:flex;flex-direction:column;gap:6px}.hist-file-row{display:flex;align-items:center;gap:8px;font-size:12px}.hist-file-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:monospace}.hist-file-size{color:var(--text-muted);flex-shrink:0}.seo-content{max-width:1200px;margin:8px auto 0;padding:20px}.seo-block{margin-bottom:30px}.seo-block h2{font-size:18px;margin-bottom:12px}.seo-features,.seo-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.seo-feat{background:var(--card-bg);border:1px solid var(--border);border-radius:var(--radius);padding:16px;box-shadow:0 1px 3px #0000000a}.seo-feat h3{font-size:14px;margin-bottom:6px;color:var(--text)}.seo-feat p{font-size:13px;color:var(--text-muted)}.seo-faq details{background:var(--card-bg);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 16px;margin-bottom:8px}.seo-faq summary{font-weight:600;font-size:14px;cursor:pointer}.seo-faq details p{margin-top:8px;font-size:13px;color:var(--text-muted);line-height:1.6}@media (max-width: 720px){.bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:500;background:var(--card-bg);border-top:1px solid var(--border);box-shadow:0 -1px 6px #0000000f;padding-bottom:env(safe-area-inset-bottom)}.header-right .tab-nav{display:none}body{padding-bottom:calc(62px + env(safe-area-inset-bottom))}.header-inner{padding:0 12px;height:52px}.logo h1{font-size:15px;max-width:34vw}.header-right{gap:8px}.login-btn{padding:5px 12px;font-size:12px;min-height:30px}.upgrade-btn,.member-chip{font-size:12px;padding:5px 10px}.member-chip{max-width:132px}.lang-btn{padding:8px 14px}.app-main{padding:12px}.card{padding:14px;margin-bottom:14px}.workspace-grid{gap:12px}.drop-zone{padding:36px 14px;margin:0}#video-player{max-height:300px}.timeline-wrap{height:56px}.mode-switch{gap:4px}.mode-btn{font-size:12px;padding:8px 4px}.seg-btn{font-size:11px}.slice-start-row{flex-direction:column}.slice-err-hint{max-width:100%}input[type=number],input[type=text],input[type=email],input[type=password],select,textarea{font-size:16px}.pe-time{font-size:16px;width:92px}.btn{min-height:40px}.btn-sm{min-height:34px}.btn-mini{min-height:30px}.queue-btn,.point-del{padding:8px 10px;font-size:16px}.pe-btn{padding:8px 12px}.step-btn{padding:10px 14px}.preset-chip{padding:8px 14px;font-size:13px}.results-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.result-actions{flex-wrap:wrap}.compose-result-actions{flex-direction:column;align-items:stretch}.compose-result-actions .btn{justify-content:center}.convert-opt-row{flex-wrap:wrap}.convert-opt-row label{flex:0 0 100%;margin-bottom:-2px}.pricing{grid-template-columns:1fr}.modal-overlay{padding:10px;align-items:flex-end}.modal-card{padding:20px 16px;max-height:88vh;border-radius:14px 14px 0 0}.toast-container{left:12px;right:12px;top:60px}.toast{max-width:100%}.cookie-banner{bottom:calc(64px + env(safe-area-inset-bottom));flex-wrap:wrap;gap:10px;padding:10px 14px;font-size:12.5px}.cookie-banner .btn{padding:6px 14px}.app-footer{padding-bottom:calc(84px + env(safe-area-inset-bottom))}.seo-content{padding:14px 12px}}.mem-hint{margin:10px 4px 0;font-size:12px;line-height:1.5;color:var(--muted, #64748b)}.btn.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:0;width:30px;height:28px;flex-shrink:0}.btn-sm.icon-btn{width:24px;height:22px}.result-actions .btn.icon-btn,.compose-result-actions .btn.icon-btn{padding:0}.icon-btn svg{display:block}.btn-play .ic-pause,.btn-play.playing .ic-play{display:none}.btn-play.playing .ic-pause{display:block}.manual-tip.ops-hint{align-items:flex-start;background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe}.ops-list{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.ops-row{line-height:1.55}.ops-row b{margin-inline-end:2px}.hist-file-actions{display:flex;gap:4px;flex-shrink:0;flex-wrap:wrap}.hist-file-actions .btn.icon-btn{width:26px;height:22px}.hist-player-overlay{position:fixed;inset:0;z-index:9999;background:#000000bf;display:flex;align-items:center;justify-content:center;padding:24px}.hist-player-overlay.hidden{display:none}.hist-player-box{position:relative;max-width:min(960px,92vw);width:100%;background:#000;border-radius:12px;overflow:hidden}.hist-player-box video{display:block;width:100%;max-height:78vh}#hist-player-close{position:absolute;top:10px;inset-inline-end:10px;z-index:2;background:#000000a6;color:#fff;border:1px solid rgba(255,255,255,.45)}html,body{max-width:100%;overflow-x:hidden}.app-header{overflow-x:clip}.header-inner,.header-right,.logo,.tab-nav,.main-tab{min-width:0}.main-tab span{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.bottom-nav{width:100%;max-width:100vw;box-sizing:border-box}.bnav-btn{min-width:0}.bnav-btn span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 2px;box-sizing:border-box}.cookie-banner{box-sizing:border-box;max-width:min(860px,calc(100vw - 32px))}.cookie-banner>span{min-width:0;flex:1 1 auto;overflow-wrap:anywhere}.modal-overlay{overflow-x:hidden}.modal-card{box-sizing:border-box;max-width:min(520px,calc(100vw - 24px))}.autorenew-row{flex-wrap:wrap}.autorenew-row span{min-width:0;flex:1 1 auto}.boot-box{box-sizing:border-box;width:min(440px,calc(100vw - 32px));padding:0 12px}.boot-title,.boot-status{overflow-wrap:anywhere}.hist-player-overlay{padding:12px}.toast-container,.toast{box-sizing:border-box}#tab-slice,#tab-compose,#tab-convert{scroll-margin-top:70px}@media (max-width: 720px){#tab-slice,#tab-compose,#tab-convert{scroll-margin-top:60px}}.reload-btn{display:inline-flex;align-items:center;gap:6px;background:#f1f5f9;border:none;border-radius:8px;padding:7px 12px;font-size:13px;line-height:1.2;color:var(--text-muted, #4b5563);cursor:pointer;white-space:nowrap;transition:background .15s,color .15s}.reload-btn:hover{background:#e2e8f0;color:var(--text, #111827)}.reload-btn:active{transform:translateY(1px)}.control-buttons,.convert-source-row{flex-wrap:wrap;row-gap:8px}.convert-opts-pane{margin-top:14px;padding-top:4px}.convert-opts-title{margin:0 0 2px;font-size:13px;font-weight:600;color:var(--text-muted, #6b7280)}@media (max-width: 720px){.reload-btn{padding:6px 10px;font-size:12.5px}}.file-info-rows{display:flex;flex-direction:column;gap:8px;margin:14px 0 18px}.file-info-row{display:flex;gap:12px;font-size:13px;align-items:baseline}.file-info-row .fi-label{flex:0 0 84px;color:var(--text-muted, #6b7280)}.file-info-row .fi-value{color:var(--text, #1f2937);font-weight:500;min-width:0}.file-info-foot{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.file-info-status{font-size:12.5px;color:var(--text-muted, #6b7280);padding:6px 0 0;animation:infoStatusPulse 1.4s ease-in-out infinite}@keyframes infoStatusPulse{0%,to{opacity:.55}50%{opacity:1}}.wm-clear{flex:0 0 auto;width:30px;padding:0;line-height:1;font-size:15px;color:var(--text-muted, #6b7280)}.wm-clear:hover{color:var(--error, #dc2626);border-color:var(--error, #dc2626)}.convert-opt-hint{font-size:12px;color:var(--text-muted, #6b7280);margin:-4px 0 6px}.convert-batch-list{display:flex;flex-direction:column;gap:6px;margin:8px 0;max-height:220px;overflow-y:auto}.convert-batch-item{display:flex;align-items:center;gap:8px;font-size:12.5px;padding:6px 8px;border:1px solid var(--border, #e5e7eb);border-radius:var(--radius-sm, 6px)}.convert-batch-item .bi-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.convert-batch-item .bi-state{color:var(--text-muted, #6b7280);font-variant-numeric:tabular-nums}.convert-batch-item.done .bi-state{color:var(--success, #10b981)}.convert-batch-item.fail .bi-state{color:var(--danger, #ef4444)}.convert-batch-item a{color:var(--accent, #2563eb);text-decoration:none}.convert-opt-val{font-size:12.5px;color:var(--text-muted, #6b7280);min-width:38px;text-align:end}.crop-overlay{position:absolute;inset:0;cursor:crosshair;z-index:3}.crop-rect{position:absolute;border:2px dashed #3b82f6;background:#3b82f62e;pointer-events:none}.quick-rot-row{display:flex;gap:8px;margin:8px 0 2px}.scene-highlights{margin-top:10px;display:flex;flex-direction:column;gap:6px}.scene-highlights .sh-title{font-size:12.5px;font-weight:600;color:var(--text, #1f2937)}.scene-highlights .sh-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.scene-highlights .sh-label{font-size:12.5px;color:var(--text-muted, #6b7280);font-variant-numeric:tabular-nums}.scene-highlights .sh-hint{font-size:12px;color:var(--warning, #d97706);line-height:1.5}.hl-badge{display:inline-block;margin-inline-start:6px;padding:1px 7px;border-radius:8px;background:#f59e0b26;color:#b45309;font-size:10px;font-weight:600;vertical-align:middle;white-space:nowrap}.hl-badge.hidden{display:none}.highlight-opts{display:flex;align-items:center;gap:8px;margin-top:10px;flex-wrap:wrap}.highlight-btn-row{margin-top:10px}.highlight-opts label{font-size:12px;color:var(--text-muted, #6b7280)}.highlight-opts select{padding:3px 6px;border:1px solid var(--border, #d1d5db);border-radius:6px;font-size:12px;background:var(--surface, #fff);color:var(--text, #1f2937)}#btn-highlight.active{border-color:var(--warning, #f59e0b);color:#b45309;background:#f59e0b1f}.rename-input{font:inherit;font-size:13px;font-weight:600;color:var(--text, #1f2937);border:1.5px solid var(--primary, #2563eb);border-radius:6px;padding:2px 6px;width:100%;max-width:320px;outline:none;background:var(--surface, #fff)}.result-name-text,.hist-file-name,.hist-name{cursor:text}.result-name-text:hover,.hist-file-name:hover,.hist-name:hover{color:var(--primary, #2563eb)}.hist-file-name:hover,.hist-name:hover{text-decoration:underline dotted}.result-banner .result-rename{cursor:text;text-decoration:underline dotted;text-underline-offset:3px}.result-banner .result-rename:hover{color:var(--primary, #2563eb)}.result-banner .rename-input{max-width:220px}.convert-preview-wrap{border-radius:var(--radius);margin-bottom:10px}.convert-preview-wrap video{display:block;width:100%;max-height:320px;background:#000}.player-card .video-wrap{border-radius:var(--radius) var(--radius) 0 0}[dir=rtl] .boot-bar-fill{animation-direction:reverse}[dir=rtl] #tab-btn-convert svg,[dir=rtl] #bnav-btn-convert svg{transform:scaleX(-1)}
