@font-face{font-family:"SF Pro Display";src:url("fonts/sf-pro-display.woff2") format("woff2");font-weight:400;font-display:swap}
:root{font-family:"SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#182537;background:#f4f6fa;--blue:#2463ff;--muted:#7b889c;--line:#d5dde8;--tint:#edf2ff;--motion:180ms;touch-action:manipulation}
*{box-sizing:border-box}body{margin:0;min-width:300px}button,input,select{font:inherit;-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button,input,select,a{outline-offset:3px}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #adc4ff}[hidden]{display:none!important}h1,h2,p{margin:0}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.shell{max-width:1240px;margin:auto;padding:0 28px 28px}.app-header{height:69px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e4e8ef;margin-bottom:20px;gap:16px}.brand{display:flex;align-items:center;gap:12px;font-size:21px;white-space:nowrap}.brand img{border-radius:8px}.app-header .button{font-size:13px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:stretch}.card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 2px 0 #2b3b6206}.preview-card{padding:18px 20px;display:flex;flex-direction:column;min-height:570px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:24px;margin-bottom:22px}.card-heading h1{font-size:15px;font-weight:400;flex-shrink:0}.filename{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}.preview-stage{position:relative;aspect-ratio:16/9;width:100%;background:#f7f9fc;border:1px solid #ccd7e8;border-radius:8px;overflow:hidden;isolation:isolate;margin:auto 0}.preview-stage.has-video{background:#142134;border:0;border-radius:6px}.preview-stage.drag-over{outline:3px solid var(--blue);outline-offset:3px}video{display:block;width:100%;height:100%;object-fit:contain;animation:fade-in 240ms ease}.empty-state{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:14px}.upload-icon{display:grid;place-items:center;width:57px;height:57px;border-radius:17px;background:#eaf0ff;color:var(--blue);margin-bottom:2px}.upload-icon svg{width:28px;height:28px}.empty-state h2{font-size:23px;font-weight:400}.empty-state p{font-size:12px;color:var(--muted);margin-bottom:9px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid var(--line);border-radius:10px;min-height:36px;padding:8px 16px;background:#fff;color:var(--blue);font-size:14px;white-space:nowrap;text-decoration:none;transition:background var(--motion),border-color var(--motion),transform 100ms,box-shadow var(--motion)}.button:hover:not(:disabled){background:var(--tint);border-color:#abc2ff}.button:active:not(:disabled){transform:translateY(1px);background:#dde7ff}.button:disabled{color:var(--muted);background:#f6f8fb;opacity:.8}.primary{background:var(--blue);border-color:var(--blue);color:#fff}.primary:hover:not(:disabled){background:#1954eb;border-color:#1954eb}.primary:disabled{background:#bdceff;border-color:#bdceff;color:#fff}.empty-state .button{min-width:146px;min-height:42px}.icon-button{display:grid;place-items:center;border:0;background:transparent;color:var(--muted);width:36px;height:36px;border-radius:8px;transition:color var(--motion),background var(--motion)}.icon-button:hover:not(:disabled){background:#e7ecf4;color:var(--blue)}.icon-button:disabled{opacity:.4}.preview-meta{display:flex;justify-content:space-between;gap:12px;min-height:18px;margin-top:13px;color:var(--muted);font-size:12px}.timeline-section{padding-top:25px;margin-top:auto}.timeline-labels{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;margin-top:4px;font-variant-numeric:tabular-nums}.timeline-labels output{color:var(--blue)}input[type=range]{display:block;width:100%;height:25px;margin:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:ew-resize;touch-action:pan-y;border-radius:12px}input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:3px;background:linear-gradient(to right,var(--blue) var(--progress,0%),#e5eaf2 var(--progress,0%))}input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:17px;height:17px;border:2px solid var(--blue);border-radius:50%;background:#fff;margin-top:-6.5px;box-shadow:0 0 0 0 #2463ff20;transition:box-shadow var(--motion)}input[type=range]:hover::-webkit-slider-thumb{box-shadow:0 0 0 6px #2463ff18}input[type=range]::-moz-range-track{height:4px;border-radius:3px;background:#e5eaf2}input[type=range]::-moz-range-progress{height:4px;border-radius:3px;background:var(--blue)}input[type=range]::-moz-range-thumb{width:13px;height:13px;border:2px solid var(--blue);border-radius:50%;background:#fff}input[type=range]:disabled{--blue:#b3bece;cursor:default}.transport{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.transport-center{display:flex;align-items:center;gap:10px}.transport .button{min-height:39px}.step-button{color:#36506f;font-size:12px;padding:7px 12px;gap:7px}.step-button svg{width:16px;height:16px}.play-button{width:45px;padding:8px}.play-button svg{fill:currentColor;stroke-width:1.2}.play-button.is-playing svg{fill:none;stroke-width:2.5}.transport select{width:68px;min-height:35px;padding:6px;font-size:12px}.settings-card{padding:22px 20px;min-width:0}.settings-heading{font-size:16px;font-weight:400;margin-bottom:25px}.field{margin:0 0 23px;font-size:13px}.field>label,.field-label{display:block;margin-bottom:10px}.field-help{font-size:11px;color:var(--muted);line-height:1.5;margin-top:9px}input:not([type=range]),select{border:1px solid var(--line);background:#fff;border-radius:9px;color:#182537;padding:10px;font-size:14px;max-width:100%;min-height:39px;min-width:0}select{width:100%;cursor:pointer;padding-right:22px}input:disabled,select:disabled{color:#9ba8bb;background:#f7f9fc}.time-field{display:flex;gap:8px}.time-field input{width:100%;font-variant-numeric:tabular-nums}.time-field .button{padding:8px 12px;min-width:46px}hr{border:0;border-top:1px solid #e9edf3;margin:26px 0}.segmented{display:flex;gap:2px;padding:3px;border-radius:10px;background:#f1f4f9;min-height:39px}.segmented button{flex:1;border:1px solid transparent;border-radius:8px;background:transparent;padding:7px 12px;color:#182537;font-size:13px;transition:background var(--motion),border-color var(--motion),color var(--motion)}.segmented button:hover:not(:disabled){background:#e7ecf6}.segmented button[aria-pressed=true]{background:#dde7ff;border-color:#95b4ff;color:var(--blue)}.segmented button:disabled{opacity:.5}.quality-field{display:grid;grid-template-columns:1fr auto;gap:7px}.quality-field>label{margin:0}.quality-field>input{grid-column:1/-1}.quality-field output{color:var(--blue);font-size:12px;background:#f0f4fb;border-radius:7px;padding:5px 8px}.privacy-note{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:11px;line-height:1.5;padding-top:4px}.privacy-dot{width:6px;height:6px;background:#31ba87;border-radius:50%;flex-shrink:0}.export-card{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:81px;padding:17px 20px}.export-status{display:flex;align-items:flex-start;gap:12px;min-width:0}.status-dot{width:8px;height:8px;border-radius:50%;background:#9cabbf;margin-top:6px;flex-shrink:0}.status-dot.ready{background:#31ba87}.status-dot.busy{background:var(--blue);animation:pulse 900ms ease infinite}.status-dot.error{background:#e15f6b}.export-status #status{font-size:15px;line-height:1.4}.status-detail{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.4;overflow-wrap:anywhere}.status-detail:empty{display:none}.export-card>.primary{min-width:166px;min-height:47px}.export-card>.primary svg{width:18px;height:18px}.text-button{border:0;background:transparent;color:var(--blue);font-size:12px;padding:5px 0;border-radius:4px}.text-button:hover{text-decoration:underline}.canvas-busy{position:absolute;bottom:12px;right:12px;width:32px;height:32px;display:grid;place-items:center;background:#ffffffe8;border-radius:50%;box-shadow:0 2px 8px #14213420}.spinner{width:17px;height:17px;border:2px solid #c5d5ff;border-top-color:var(--blue);border-radius:50%;animation:spin 800ms linear infinite}dialog{width:min(790px,calc(100% - 28px));max-height:calc(100dvh - 36px);padding:0;border:1px solid #d1dbea;border-radius:16px;background:#fff;color:#182537;box-shadow:0 15px 50px #18253722}dialog::backdrop{background:#25375835;backdrop-filter:blur(1px)}dialog[open]{animation:dialog-in 180ms ease-out}.save-content{padding:20px 24px}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.dialog-heading h2{font-size:22px;font-weight:400}#export-image{display:block;width:100%;height:auto;max-height:50dvh;object-fit:contain;border-radius:6px;background:#f4f6fa;-webkit-touch-callout:default}.export-details{font-size:12px;color:var(--muted);line-height:1.5;margin:12px 0 20px;overflow-wrap:anywhere}.save-actions{display:flex;gap:10px;flex-wrap:wrap}.save-actions .button{flex:1;min-width:120px;min-height:43px}.save-help{font-size:12px;color:var(--muted);line-height:1.5;margin-top:15px}.save-help:empty{display:none}.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:30;max-width:calc(100% - 28px);background:#182537ed;color:#fff;padding:12px 17px;font-size:13px;line-height:1.5;text-align:center;border-radius:11px;box-shadow:0 4px 18px #14213422;animation:fade-in 180ms ease}
@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.4}}@keyframes dialog-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:950px){.shell{padding:0 20px 20px}.workspace{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.preview-card{padding:17px;min-height:575px}.settings-card{padding:22px 17px}.transport{gap:7px}.transport-center{gap:7px}.step-button{padding:7px 8px}.step-button span{display:none}}
@media(max-width:760px){.shell{padding:0 14px calc(14px + env(safe-area-inset-bottom))}.app-header{height:63px;margin-bottom:14px}.brand{font-size:20px;gap:10px}.brand img{width:30px;height:30px}.app-header .button{padding:8px 10px;font-size:12px;min-height:39px}.workspace{display:flex;flex-direction:column;gap:14px}.preview-card{min-height:0;padding:15px}.card-heading{margin-bottom:17px}.preview-stage{margin:0}.empty-state{gap:10px}.upload-icon{width:46px;height:46px;border-radius:13px;margin:0}.upload-icon svg{width:25px;height:25px}.empty-state h2{font-size:21px}.empty-state p{font-size:11px;margin:0}.empty-state .button{min-height:37px;padding:7px 14px}.preview-meta{font-size:11px;margin-top:11px}.timeline-section{padding-top:16px}.timeline-labels{font-size:11px}.transport{margin-top:16px;gap:8px}.transport-center{gap:8px}.transport .button{min-height:43px}.play-button{width:49px}.transport select{font-size:14px;min-height:41px;width:65px}.transport>.icon-button{width:32px;min-height:42px}.step-button{padding:7px 10px}.step-button span{display:none}input[type=range]{height:32px}input[type=range]::-webkit-slider-thumb{width:20px;height:20px;margin-top:-8px}input[type=range]::-moz-range-thumb{width:16px;height:16px}.settings-card{padding:19px 17px}.settings-heading{margin-bottom:22px}.field{font-size:14px;margin-bottom:24px}input:not([type=range]),select{font-size:16px;min-height:43px}.field-help{font-size:12px}.time-field .button{min-height:43px}.segmented{min-height:43px}.segmented button{font-size:14px}.privacy-note{font-size:12px}.export-card{position:sticky;bottom:0;z-index:5;min-height:0;padding:14px;gap:12px;box-shadow:0 -4px 18px #14213408;border-radius:13px;margin-top:14px}.export-status #status{font-size:13px}.status-detail{font-size:10px}.export-card>.primary{min-width:126px;min-height:44px;font-size:13px;padding:10px 12px;gap:7px}.status-dot{margin-top:5px}.save-content{padding:17px}#export-image{max-height:35dvh}.save-actions{flex-direction:column}.save-actions .button{min-height:46px;font-size:15px}.export-details{font-size:11px;margin-bottom:17px}.toast{bottom:100px}}
@media(max-width:360px){.shell{padding-left:10px;padding-right:10px}.preview-card{padding:13px}.brand{font-size:18px}.app-header .button{font-size:11px;padding:7px 8px}.empty-state{gap:7px}.empty-state h2{font-size:19px}.empty-state p{font-size:10px}.upload-icon{width:39px;height:39px}.empty-state .button{min-height:32px;font-size:12px}.export-card{flex-direction:column;align-items:stretch;gap:10px}.export-card>.primary{width:100%}.toast{bottom:145px}}
@media(prefers-reduced-motion:reduce){:root{--motion:0ms}*,*::before,*::after{animation-duration:0ms!important;transition-duration:0ms!important;scroll-behavior:auto!important}}
