*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,"Helvetica Neue",Helvetica,"PingFang SC","Microsoft YaHei",sans-serif;background:#111;color:#eee}
#container{max-width:720px;margin:0 auto;padding:12px}
.stepbar{display:flex;align-items:center;gap:8px;margin:6px 2px;font-size:14px;color:#ddd}
.stepbar .right{margin-left:auto;color:#fff}
.preview-area{position:relative;background:#000;border-radius:8px;overflow:hidden}
video,canvas,#img{display:block;width:100%;height:auto}
.thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:8px 2px}
.thumb{position:relative;background:#222;border:1px solid #333;border-radius:6px;overflow:hidden}
.thumb img{display:block;width:100%;height:64px;object-fit:cover}
.thumb .cap{position:absolute;left:4px;bottom:4px;background:rgba(0,0,0,.6);color:#fff;font-size:11px;padding:1px 3px;border-radius:3px;max-width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thumb .redo{position:absolute;right:4px;top:4px;background:#1f6feb;border:none;color:#fff;font-size:11px;padding:2px 6px;border-radius:4px}
.status{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#ccc;margin:8px 2px}
.status .right{margin-left:auto}
.actions{display:flex;gap:8px;margin-top:8px}
.actions button{flex:1;padding:10px 12px;background:#1f6feb;color:#fff;border:none;border-radius:6px;font-size:16px}
.actions button[hidden]{display:none}
.actions.secondary button{background:#444}
.simple #container{max-width:420px}
.simple .stepbar{display:none}
.simple .status{display:none}
.simple .actions{margin-top:10px}
.simple .actions button{font-size:15px;padding:10px}
.simple .preview-area{border-radius:6px}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:rgba(0,0,0,.8);color:#fff;padding:8px 12px;border-radius:6px;max-width:90%;font-size:14px}