:root{--bg: #f6f7fb;--surface: #ffffff;--surface-2: #eef0f6;--text: #161a26;--muted: #5d6478;--border: #dde1ea;--accent: #5b4dff;--accent-ink: #ffffff;--accent-2: #12a37a;--mark: #ff3b5c;--shadow: 0 1px 2px rgba(16, 20, 40, .06), 0 8px 24px rgba(16, 20, 40, .06);--radius: 12px;color-scheme:light}@media (prefers-color-scheme: dark){:root{--bg: #0f1117;--surface: #171a23;--surface-2: #20242f;--text: #e9ecf3;--muted: #9aa1b4;--border: #2b303d;--accent: #7c71ff;--accent-2: #2cc995;--shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);color-scheme:dark}}*{box-sizing:border-box}html,body{margin:0}body{background:var(--bg);color:var(--text);font:15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;min-height:100vh}button,select,input{font:inherit;color:inherit}[hidden]{display:none!important}.topbar{display:flex;align-items:center;gap:14px;padding:12px 20px;background:var(--surface);border-bottom:1px solid var(--border)}.brand{font-weight:800;font-size:19px;color:var(--text);text-decoration:none;letter-spacing:-.02em}.brand span{color:var(--accent)}.crumb{color:var(--muted)}.crumb:before{content:"/";margin-right:12px;opacity:.5}.privacy{margin-left:auto;font-size:13px;color:var(--muted)}main{max-width:1280px;margin:0 auto;padding:24px 16px 48px}.pick{text-align:center;padding:40px 0}.pick h1{font-size:clamp(26px,4vw,38px);letter-spacing:-.02em;margin:0 0 8px}.sub{color:var(--muted);margin:0 auto 28px;max-width:560px}.drop{display:flex;flex-direction:column;align-items:center;gap:6px;max-width:620px;margin:0 auto;padding:48px 20px;background:var(--surface);border:2px dashed var(--border);border-radius:18px;cursor:pointer;transition:border-color .15s,background .15s;box-shadow:var(--shadow)}.drop:hover,.drop.over{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 6%,var(--surface))}.drop-icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink);font-size:22px;margin-bottom:6px}.drop-title{font-weight:700;font-size:18px}.drop-hint{color:var(--muted);font-size:13px}.legal{color:var(--muted);font-size:12px;margin-top:18px}.editor{display:grid;grid-template-columns:240px 1fr;gap:16px;align-items:start}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:16px;box-shadow:var(--shadow);position:sticky;top:16px}.group{display:flex;flex-direction:column;gap:6px}.group.row{flex-direction:row;gap:8px}.group.row>*{flex:1}.label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);display:flex;justify-content:space-between}.label output{text-transform:none;font-weight:500;color:var(--text)}input[type=range]{width:100%;accent-color:var(--accent)}select{padding:8px 10px;border-radius:8px;border:1px solid var(--border);background:var(--surface-2)}.spacer{flex:1}.seg{display:flex;background:var(--surface-2);border-radius:9px;padding:3px}.seg button{flex:1;border:0;background:transparent;padding:7px 8px;border-radius:7px;cursor:pointer;color:var(--muted)}.seg button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0000001f;font-weight:600}.seg button:disabled{opacity:.4;cursor:not-allowed}button.ghost,button.primary,button.icon{border-radius:9px;padding:9px 14px;cursor:pointer;border:1px solid var(--border);background:var(--surface);transition:background .12s,transform .05s}button.ghost:hover{background:var(--surface-2)}button.primary{background:var(--accent);color:var(--accent-ink);border-color:transparent;font-weight:650;padding:10px 20px}button.primary:hover{filter:brightness(1.08)}button.primary.alt{background:var(--accent-2)}button:active{transform:translateY(1px)}button:disabled{opacity:.5;cursor:not-allowed}button.icon{width:40px;padding:8px 0}.work{display:flex;flex-direction:column;gap:12px;min-width:0}.stage-wrap{background:repeating-conic-gradient(var(--surface-2) 0 25%,var(--surface) 0 50%) 0 0 / 20px 20px;border:1px solid var(--border);border-radius:var(--radius);display:grid;place-items:center;padding:12px;min-height:320px;overflow:hidden}.stage{position:relative;line-height:0}.stage canvas#view,.stage video{display:block}.layer{position:absolute;top:0;right:0;bottom:0;left:0}.mask{opacity:.5;pointer-events:none}.guide{cursor:crosshair;touch-action:none}.vidbar{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:8px 12px}.vidbar input{flex:1}.time{font-variant-numeric:tabular-nums;color:var(--muted);font-size:13px;min-width:96px;text-align:right}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.grow{flex:1}.hint{color:var(--muted);font-size:14px}.progress{display:flex;align-items:center;gap:12px}.progress .bar{flex:1;height:8px;background:var(--surface-2);border-radius:99px;overflow:hidden}#progressFill{height:100%;width:0;background:var(--accent);transition:width .2s}#progressText{font-size:13px;color:var(--muted);min-width:150px}.result{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px;display:flex;flex-direction:column;gap:8px}.result video,.result img{max-width:100%;max-height:60vh;border-radius:8px;background:#000;align-self:center}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%) translateY(20px);background:var(--text);color:var(--bg);padding:10px 16px;border-radius:10px;opacity:0;pointer-events:none;transition:.2s;max-width:90vw;font-size:14px}.toast.show{opacity:1;transform:translate(-50%)}.toast.err{background:#d92d4a;color:#fff}@media (max-width: 820px){.editor{grid-template-columns:1fr}.panel{position:static}.privacy{display:none}}.note{margin:2px 0 0;font-size:12.5px;line-height:1.45;color:var(--muted)}.note b{color:var(--text);font-weight:600}.note .mini{display:block;height:4px;margin-top:6px;background:var(--surface-2);border-radius:99px;overflow:hidden}.note .mini i{display:block;height:100%;background:var(--accent);transition:width .2s}.pro{font-size:10px;font-weight:700;letter-spacing:.03em;padding:1px 5px;border-radius:99px;background:linear-gradient(135deg,#f5b301,#ff7a00);color:#1b1300;vertical-align:1px}.seg button{white-space:nowrap;padding-left:4px;padding-right:4px}.agree{display:flex;gap:10px;align-items:flex-start;max-width:620px;margin:0 auto 14px;text-align:left;font-size:13.5px;color:var(--text);cursor:pointer}.agree input{margin-top:3px;accent-color:var(--accent);width:16px;height:16px;flex:none}.drop.locked{opacity:.45;cursor:not-allowed}a{color:var(--accent)}.terms-tab{border:1px solid var(--border);border-radius:9px;padding:9px 12px;text-decoration:none;font-size:14px;color:var(--text);background:var(--surface);white-space:nowrap}.terms-tab:hover{background:var(--surface-2)}.action-legal{margin:-4px 0 0;font-size:12.5px;color:var(--muted);text-align:right}.progress{flex-wrap:wrap}.progress-legal{flex-basis:100%;font-size:12px;color:var(--muted)}.disclaimer{position:sticky;bottom:0;display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap;padding:9px 16px;background:var(--surface);border-top:1px solid var(--border);font-size:12.5px;color:var(--muted);text-align:center;z-index:5}.disclaimer a{font-weight:600;white-space:nowrap}@media (max-width: 820px){.action-legal{text-align:left}}body{display:flex;flex-direction:column}body>main{flex:1 0 auto;width:100%}
