:root{--bg:#f6f7f9;--panel:#fff;--text:#16181d;--muted:#5d6470;--line:#d9dde3;--accent:#2f6fed;--accent-text:#fff;--stage:#e9ecf0;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#111318;--panel:#1a1d24;--text:#e8eaee;--muted:#9aa1ad;--line:#2c313b;--accent:#4f8cff;--stage:#0b0c10}}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--bg);color:var(--text);flex-direction:column;font:14px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;display:flex}header{flex-wrap:wrap;align-items:baseline;gap:12px;padding:12px 16px;display:flex}h1{margin:0;font-size:18px}header p{color:var(--muted);margin:0}main{flex-direction:column;flex:1;min-height:0;padding:0 16px 12px;display:flex}.drop{text-align:center;border:2px dashed var(--line);background:var(--panel);cursor:pointer;border-radius:12px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;min-height:240px;padding:24px;display:flex}.drop span{color:var(--muted);max-width:46ch}.drop.over,.drop:focus-visible{border-color:var(--accent);outline:none}.drop input{opacity:0;width:1px;height:1px;position:absolute}#work{flex-direction:column;flex:1;gap:8px;min-height:0;display:flex}#work[hidden],.drop[hidden]{display:none}.bar{flex-wrap:wrap;align-items:center;gap:6px 10px;display:flex}.bar label{color:var(--muted);align-items:center;gap:6px;display:flex}.bar input[type=range]{width:90px}.grow{flex:1}button{font:inherit;color:var(--text);background:var(--panel);border:1px solid var(--line);cursor:pointer;border-radius:7px;padding:5px 10px}button:hover{border-color:var(--muted)}button.primary{background:var(--accent);color:var(--accent-text);border-color:var(--accent)}.seg{display:inline-flex}.seg button{border-radius:0;margin-left:-1px}.seg button:first-child{border-radius:7px 0 0 7px;margin-left:0}.seg button:last-child{border-radius:0 7px 7px 0}.seg button[aria-pressed=true]{background:var(--accent);color:var(--accent-text);border-color:var(--accent);position:relative}body.box .auto-only{display:none}#stage{background:var(--stage);border-radius:10px;flex:1;min-height:200px;position:relative;overflow:hidden}#view{touch-action:none;width:100%;height:100%;position:absolute;inset:0}#status{color:var(--muted);min-height:1.4em;margin:8px 0 0}#status.err{color:#e5484d}
