:root{--ve-ink:#38291f;--ve-muted:#837365;--ve-line:#e8dbcc;--ve-card:#fffdfa;--ve-wash:#f8f2ea;--ve-copper:#94603f;--ve-gold:#e4b970;--ve-shadow:0 16px 44px rgba(75,49,28,.07)}
body{background:#f7f3ee;color:var(--ve-ink);font-family:'Outfit','Noto Sans TC',sans-serif}
.editor-shell{width:min(1320px,calc(100% - 40px));margin:30px auto 70px}.editor-back,.editor-history-link{color:var(--ve-copper);text-decoration:none;font-size:13px;font-weight:700}.editor-back{display:inline-flex;gap:8px;align-items:center}.editor-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:18px 0 22px}.editor-eyebrow{font-size:10px;letter-spacing:.19em;color:#ad7b54;font-weight:800}.editor-heading h1{margin:5px 0;color:#503728;font-size:clamp(27px,4vw,38px);letter-spacing:-.03em}.editor-heading h1 i{font-size:.75em;color:var(--ve-copper)}.editor-heading p{margin:0;color:var(--ve-muted);font-size:14px}.editor-projectbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:14px 16px;border:1px solid var(--ve-line);border-radius:15px;background:rgba(255,253,250,.88);box-shadow:var(--ve-shadow);margin-bottom:16px}.editor-projectbar label,.editor-options label{display:grid;gap:6px;color:#735943;font-size:11px;font-weight:800}.editor-projectbar select,.editor-projectbar input,.editor-options select{height:39px;min-width:185px;padding:0 11px;border:1px solid var(--ve-line);border-radius:9px;background:white;color:#443327;font:inherit;font-size:12px}.editor-title-field{flex:1}.editor-title-field input{width:100%;box-sizing:border-box}.editor-projectbar #save-state{margin-left:auto;color:#678269;font-size:11px}.editor-grid{display:grid;grid-template-columns:minmax(270px,.8fr) minmax(410px,1.35fr) minmax(300px,.9fr);gap:15px;align-items:start}.editor-panel{min-width:0;border:1px solid var(--ve-line);border-radius:17px;padding:17px;background:var(--ve-card);box-shadow:var(--ve-shadow)}.editor-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:15px}.editor-panel-heading>div{display:flex;align-items:center;gap:9px}.editor-step{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#f4e7d9;color:#a66d43;font-size:10px;font-weight:900}.editor-panel h2{margin:0;font-size:17px;color:#523b2d}.editor-muted{color:var(--ve-muted);font-size:10px}.editor-upload{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:128px;padding:15px;border:1.5px dashed #d9bea4;border-radius:13px;background:linear-gradient(140deg,#fffdfa,#fbf3e9);text-align:center;cursor:pointer}.editor-upload input{position:absolute;width:1px;height:1px;opacity:0}.editor-upload:focus-within{outline:3px solid #edd7ba}.editor-upload-icon{display:grid;place-items:center;width:36px;height:36px;margin-bottom:8px;border-radius:11px;background:#f1e1d1;color:var(--ve-copper)}.editor-upload strong{font-size:13px}.editor-upload small{margin-top:4px;color:var(--ve-muted);font-size:10px}.editor-progress,.editor-export-progress{margin-top:10px;padding:10px;border:1px solid var(--ve-line);border-radius:11px;background:var(--ve-wash)}.editor-progress>div,.editor-export-progress-head{display:flex;justify-content:space-between;gap:10px;font-size:11px}.editor-progress progress,.editor-export-progress progress{width:100%;height:8px;margin-top:8px;accent-color:var(--ve-copper)}.editor-select-label{display:block;margin:17px 0 6px;color:#735943;font-size:11px;font-weight:800}.editor-inline{display:flex;gap:7px}.editor-inline select{flex:1;min-width:0;height:37px;padding:0 8px;border:1px solid var(--ve-line);border-radius:8px;background:#fff;color:var(--ve-ink);font:inherit;font-size:11px}.editor-subhead{display:flex;align-items:center;justify-content:space-between;margin:19px 0 8px}.editor-subhead h3,.editor-track-label span{margin:0;color:#634937;font-size:12px}.editor-subhead span,.editor-track-label small{color:var(--ve-muted);font-size:10px}.editor-source-list{display:grid;gap:8px}.editor-source-card{display:grid;grid-template-columns:74px minmax(0,1fr);gap:9px;align-items:center;padding:8px;border:1px solid #eee5db;border-radius:11px;background:#fff}.editor-source-card video{width:74px;height:56px;object-fit:cover;border-radius:7px;background:#151515}.editor-source-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:800}.editor-source-meta{margin:3px 0 5px;color:var(--ve-muted);font-size:10px}.editor-source-card button{font-size:10px}.editor-empty{padding:14px;border:1px dashed var(--ve-line);border-radius:10px;color:var(--ve-muted);font-size:11px;text-align:center}.editor-total{padding:6px 9px;border-radius:999px;background:#f8eee3;color:#896044;font-size:10px;font-weight:800}.editor-track-label{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:10px;background:#f8f3ed}.editor-track-label i{color:#a66d43}.editor-track-label small{margin-left:auto}.editor-timeline-list{display:grid;gap:9px;padding:11px 0}.editor-clip{display:grid;grid-template-columns:24px minmax(85px,130px) minmax(0,1fr);gap:9px;padding:10px;border:1px solid #ebdfd2;border-radius:12px;background:#fff}.editor-clip.dragging{opacity:.5}.editor-clip-grip{color:#a18773;cursor:grab;padding-top:3px}.editor-clip video{width:100%;height:79px;object-fit:cover;background:#111827;border-radius:7px}.editor-clip-title{font-size:11px;font-weight:800}.editor-clip-toolbar{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.editor-clip-toolbar button{padding:4px 7px;border:1px solid #eadccd;border-radius:7px;background:#fffaf4;color:#71523c;font:inherit;font-size:10px;cursor:pointer}.editor-clip-toolbar button:hover{border-color:#c29269}.editor-clip-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:8px}.editor-clip-fields label{display:grid;gap:4px;color:var(--ve-muted);font-size:9px}.editor-clip-fields input,.editor-clip-fields select{min-width:0;width:100%;height:29px;box-sizing:border-box;border:1px solid var(--ve-line);border-radius:6px;padding:0 6px;color:var(--ve-ink);font:inherit;font-size:10px}.editor-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:7px 0}.editor-options select{width:100%;min-width:0;height:36px}.editor-track-label--audio{margin-top:14px}.editor-audio-options label:last-child{grid-template-columns:auto 1fr auto;align-items:center}.editor-audio-options input{grid-column:1/-1;width:100%;accent-color:var(--ve-copper)}.editor-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.editor-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:37px;padding:0 12px;border:1px solid #dfc8b2;border-radius:9px;background:#fffaf5;color:#694732;text-decoration:none;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.editor-button:disabled{opacity:.55;cursor:wait}.editor-button--small{min-height:35px;padding:0 10px}.editor-button--quiet{background:white}.editor-button--primary{border-color:#795137;background:linear-gradient(120deg,#a87149,#684632);color:white}.editor-button--danger{border-color:#e9c9c2;background:#fff6f4;color:#9e493c}.editor-player-wrap{position:relative;overflow:hidden;min-height:190px;aspect-ratio:16/9;border-radius:12px;background:#121212}.editor-player-wrap video{width:100%;height:100%;object-fit:contain}.editor-player-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:linear-gradient(145deg,#26231f,#131313);color:white;text-align:center}.editor-player-empty i{font-size:30px;color:#dfb676}.editor-player-empty strong{font-size:12px}.editor-player-empty span{font-size:10px;color:#c8bbae}.editor-export-progress{margin-top:12px}.editor-export-progress p{margin:7px 0 0;color:var(--ve-muted);font-size:10px}.editor-export-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}.editor-export-actions span{width:100%;color:var(--ve-muted);font-size:10px}.editor-privacy-note{margin:15px 0 0;padding-top:12px;border-top:1px solid #f0e8df;color:#88796b;font-size:10px;line-height:1.6}.editor-privacy-note i{color:#799174;margin-right:4px}.editor-toast{position:fixed;z-index:1000;left:50%;bottom:22px;transform:translate(-50%,20px);opacity:0;pointer-events:none;max-width:min(500px,calc(100% - 28px));padding:11px 16px;border-radius:10px;background:#31251e;color:white;box-shadow:0 12px 30px #29190e30;font-size:12px;transition:.2s}.editor-toast.show{transform:translate(-50%,0);opacity:1}.editor-toast.error{background:#9e493c}
.editor-grid{grid-template-columns:300px minmax(0,1fr);grid-template-areas:'sources preview' 'timeline timeline'}.editor-sources{grid-area:sources}.editor-preview{grid-area:preview}.editor-timeline{grid-area:timeline}.editor-preview .editor-player-wrap{min-height:280px}.editor-timeline-list{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-mobile-tabs{display:none}.timeline-tools{display:flex;gap:8px;align-items:center}.timeline-tools span{margin-left:auto;font-variant-numeric:tabular-nums}.timeline-track-wrap{position:relative;margin:16px 0 22px;min-height:110px;overflow:hidden;background:#f5ede4;border-radius:10px;padding-top:30px}#timeline-ruler{position:absolute;top:0;left:0;right:0;height:25px}#timeline-ruler span{position:absolute;font-size:10px;border-left:1px solid #b5997e;padding:4px}#thumbnail-track{display:flex;min-height:76px}.track-clip{min-width:40px;position:relative;border:2px solid #b88c62;border-radius:6px;box-sizing:border-box;overflow:hidden}.track-thumbnails{display:flex;height:52px;pointer-events:none}.track-thumbnails video{width:33.333%;object-fit:cover;background:#26211d}.track-clip>span{display:block;text-align:center;font-size:10px}.trim-handle{position:absolute;top:0;bottom:0;width:16px;background:#684632cc;color:white;border:0;cursor:ew-resize;touch-action:none;z-index:2}.trim-handle[data-trim=start]{left:0}.trim-handle[data-trim=end]{right:0}#track-playhead{position:absolute;top:25px;bottom:0;width:2px;background:#c34c33;pointer-events:none}.crop-controls{display:flex;gap:8px;margin-top:10px}.crop-controls label{font-size:10px;width:50%}.crop-controls input{width:100%}.editor-options input:not([type=checkbox]),.editor-select-label input,.editor-select-label select,#compare-version{width:100%;box-sizing:border-box;padding:8px;border:1px solid var(--ve-line);border-radius:8px;background:white;font:inherit;color:var(--ve-ink)}.editor-captions{margin-top:15px}.caption-row{display:grid;grid-template-columns:2fr repeat(4,minmax(70px,1fr)) auto;gap:8px;margin:12px 0;align-items:end}.caption-row textarea{min-height:65px;resize:vertical}.caption-row input,.caption-row textarea,.caption-row select{width:100%;box-sizing:border-box;border:1px solid var(--ve-line);border-radius:6px;padding:6px;font:inherit}.caption-row label{font-size:11px}#compare-player{width:100%;max-height:400px;margin-top:10px}.editor-preview details{margin-top:12px}summary{cursor:pointer;font-size:13px;padding:10px 0}[hidden]{display:none!important}
@media(max-width:1080px){.editor-grid{grid-template-columns:260px minmax(0,1fr)}.editor-timeline-list{grid-template-columns:1fr}.caption-row{grid-template-columns:repeat(3,minmax(0,1fr))}.caption-row textarea{grid-column:1/-1}}
@media(max-width:700px){.editor-shell{width:min(100% - 24px,600px);margin-top:20px}.editor-heading{align-items:flex-start;flex-direction:column}.editor-projectbar{align-items:stretch}.editor-projectbar label,.editor-projectbar select,.editor-projectbar input{width:100%;box-sizing:border-box}.editor-projectbar #save-state{margin-left:0}.editor-grid{grid-template-columns:1fr}.editor-preview{grid-column:auto}.editor-clip{grid-template-columns:18px 78px minmax(0,1fr);gap:7px;padding:8px}.editor-clip video{height:65px}.editor-options{grid-template-columns:1fr}.editor-actions{justify-content:stretch}.editor-actions>*{flex:1}.editor-history-link{font-size:12px}}
@media(max-width:700px){.editor-mobile-tabs{display:flex;gap:6px;margin:12px 0}.editor-mobile-tabs button{flex:1;border:1px solid var(--ve-line);padding:12px;background:white;border-radius:9px;color:var(--ve-ink)}.editor-mobile-tabs button[aria-pressed=true]{background:#684632;color:white}.editor-grid{display:block}.editor-panel{margin-bottom:12px}body:not([data-editor-tab]) .editor-preview,body:not([data-editor-tab]) .editor-timeline,body[data-editor-tab=sources] .editor-preview,body[data-editor-tab=sources] .editor-timeline,body[data-editor-tab=preview] .editor-sources,body[data-editor-tab=preview] .editor-timeline,body[data-editor-tab=timeline] .editor-sources,body[data-editor-tab=timeline] .editor-preview{display:none}.editor-preview .editor-player-wrap{min-height:180px}.caption-row{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-clip{grid-template-columns:16px minmax(0,1fr)}.editor-clip>video{display:none}.editor-projectbar input{min-width:0}}
#thumbnail-track{position:relative;height:76px}.track-clip{position:absolute;top:0;height:76px}
#history-source[multiple]{height:112px;padding:6px}.editor-options label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}.editor-options input[type=checkbox]{width:18px;height:18px;margin:0;flex:none}.editor-button:focus-visible,.trim-handle:focus-visible{outline:3px solid #c19a70;outline-offset:3px}

/* Editing workbench: one large picture, compact tracks, contextual controls. */
.editor-shell{width:min(1560px,calc(100% - 40px))}.editor-grid{grid-template-columns:250px minmax(0,1fr) 280px;grid-template-areas:'sources preview inspector' 'timeline timeline inspector'}
.editor-inspector{grid-area:inspector;position:sticky;top:20px;max-height:calc(100vh - 40px);overflow:auto}.editor-inspector .editor-options{grid-template-columns:1fr}.editor-inspector .editor-clip-fields{grid-template-columns:1fr 1fr}.editor-inspector .crop-controls{display:block}.editor-inspector .crop-controls label{display:block;width:100%;margin:10px 0}.editor-inspector details{margin-top:18px;border-top:1px solid var(--ve-line)}#inspector-close{display:none}
.editor-preview .editor-player-wrap{min-height:0;max-height:520px}.editor-preview .editor-player-wrap video{display:block}.preview-mode-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0;font-size:12px}.preview-mode-bar strong{color:#496e68}.preview-mode-bar span{color:var(--ve-muted);font-size:11px}.editor-timeline-list{display:flex;gap:8px;overflow-x:auto;align-items:start}.editor-clip{grid-template-columns:15px minmax(0,1fr);flex:0 0 215px}.editor-clip>video{display:none}.editor-clip.is-selected{border-color:var(--ve-copper);background:#fcf5ec}.editor-clip-toolbar button{min-height:30px}.editor-clip-fields label{font-size:12px}.editor-clip-fields input,.editor-clip-fields select{height:36px;font-size:12px}.editor-clip-title{font-size:12px}
.timeline-navigation{display:flex;flex-wrap:wrap;align-items:center;gap:18px;margin:12px 0;font-size:12px}.timeline-navigation label{display:flex;align-items:center;gap:8px}.timeline-navigation input[type=range]{width:130px;accent-color:var(--ve-copper)}.timeline-navigation input[type=checkbox]{width:16px;height:16px}.timeline-scroll{overflow-x:auto;border:1px solid var(--ve-line);border-radius:10px;margin:12px 0}.timeline-track-wrap{min-height:215px;margin:0;padding-bottom:8px;overflow:visible;border-radius:0}.track-thumbnails img{width:33.333%;height:52px;object-fit:cover;background:#253432;font-size:9px;color:#e3ddd4}.track-clip{min-width:24px;cursor:grab}.track-clip.is-selected{border-color:#466f69}.trim-handle{width:12px}.timeline-lane-label{font-size:10px;color:var(--ve-muted);padding:3px 8px}.secondary-track{height:32px;position:relative;background:#fffaf3}.secondary-track canvas{position:absolute;height:32px;top:0}.caption-block{position:absolute;top:2px;height:28px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:inherit;font-size:11px;border:1px solid #cdb184;border-radius:4px;background:#f0dfbe;color:#644d29;padding:3px;cursor:pointer}#track-playhead{pointer-events:auto;width:5px;cursor:ew-resize;z-index:4;touch-action:none}#track-playhead:before{content:'';position:absolute;top:0;left:-6px;width:16px;height:12px;border-radius:4px;background:#c34c33}#timeline-ruler{cursor:crosshair;touch-action:none}
.editor-warning{border:1px solid #d2ae73;border-radius:12px;background:#fff5df;padding:15px;margin:14px 0;font-size:13px}.editor-preflight{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px;padding:12px;border-radius:10px;background:#eff5ef;font-size:12px;color:#486448}.editor-preflight.has-error{background:#fff0e5;color:#944c30}.version-metadata label{display:grid;gap:5px;margin:10px 0;font-size:12px}.version-metadata input,.version-metadata textarea{padding:9px;border:1px solid var(--ve-line);border-radius:8px;font:inherit;width:100%;box-sizing:border-box}.cover-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;font-size:12px;align-items:center}#cover-preview{width:160px;margin-top:10px;border-radius:8px}.compare-sync{display:flex;gap:8px;font-size:12px;margin:10px 0}.editor-options label{font-size:12px}.editor-button{font-size:12px}.editor-source-title,.editor-source-meta{font-size:12px}
@media(max-width:1150px){.editor-grid{grid-template-columns:220px minmax(0,1fr);grid-template-areas:'sources preview' 'timeline timeline' 'inspector inspector'}.editor-inspector{position:static;max-height:none}.editor-inspector #project-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px}}
@media(max-width:700px){.editor-shell{width:calc(100% - 24px)}.editor-grid{display:block}.editor-preview{display:block!important}.editor-preview .editor-player-wrap{min-height:0;max-height:340px}.editor-inspector{display:none;position:fixed;z-index:100;left:0;right:0;bottom:0;top:auto;max-height:65vh;border-radius:20px 20px 0 0;padding:18px 18px 30px;margin:0;box-shadow:0 -12px 40px #38291f30}.editor-inspector.is-open{display:block}#inspector-close{display:inline-flex}.editor-inspector #project-settings{display:block}.editor-clip{flex-basis:185px}.timeline-navigation{gap:10px}.timeline-tools{flex-wrap:wrap}.editor-preview{margin-bottom:12px}.editor-grid .editor-sources{max-height:none}.editor-actions{flex-wrap:wrap}.editor-actions>*{min-width:130px}.editor-preview .editor-panel-heading>span{display:none}.timeline-track-wrap{min-width:100%;box-sizing:border-box}.editor-player-wrap:has(video){aspect-ratio:16/9}.editor-heading p{font-size:13px}.editor-inspector .editor-button{min-height:40px}}
@media(prefers-reduced-motion:reduce){.editor-toast{transition:none}}
.editor-clip .editor-clip-fields,.editor-clip .crop-controls{display:none}.track-clip{touch-action:pan-y}

.timeline-track-wrap{box-sizing:border-box}.track-thumbnails{height:72px}.track-thumbnails img{height:72px;width:0;flex:1;min-width:0;object-fit:contain}.track-clip,#thumbnail-track{height:94px}.timeline-track-wrap{min-height:235px}
