:root { --bg:#0a0a0b; --panel:#121214; --panel2:#18181b; --line:#26262b; --txt:#ece8e1; --dim:#8b8780; --acc:#ffc600; --acc2:#dd7800; }
* { box-sizing:border-box; }
html,body { margin:0; height:100%; background:var(--bg); color:var(--txt); font:13px/1.35 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; overflow:hidden; }
button, select, input { font:inherit; color:var(--txt); }
button, .btn { background:var(--panel2); border:1px solid var(--line); border-radius:7px; padding:6px 11px; cursor:pointer; transition:.15s; white-space:nowrap; display:inline-block; }
button:hover, .btn:hover { border-color:#3a3a42; background:#1f1f24; }
button:disabled { opacity:.4; cursor:not-allowed; }
button.primary { background:var(--acc); color:#111; border-color:var(--acc); font-weight:600; }
button.primary:hover { background:#ffd23f; }
button.ghost { background:transparent; }
button.small { font-size:12px; padding:4px 8px; }
select, input[type=text], input[type=number] { background:#0e0e10; border:1px solid var(--line); border-radius:6px; padding:5px 7px; }
header { height:52px; display:flex; align-items:center; justify-content:space-between; padding:0 16px; border-bottom:1px solid var(--line); background:#0d0d0f; gap:14px; }
.brand { letter-spacing:.18em; font-size:14px; white-space:nowrap; }
.brand b { color:var(--acc); }
.brand span { letter-spacing:0; color:var(--dim); font-size:12px; margin-left:10px; }
.presets { display:flex; gap:6px; align-items:center; flex-wrap:nowrap; overflow-x:auto; }
.presets input { width:150px; } .presets select { max-width:170px; }
main { display:grid; grid-template-columns:230px 1fr 330px; height:calc(100% - 52px); }
aside { background:var(--panel); overflow-y:auto; }
#left { border-right:1px solid var(--line); padding:12px; display:flex; flex-direction:column; gap:10px; }
#left .head { display:flex; justify-content:space-between; align-items:baseline; }
h2 { font-size:12px; text-transform:uppercase; letter-spacing:.14em; margin:0; color:var(--dim); font-weight:600; }
#imgcount { color:var(--dim); font-size:12px; }
.drop { border:1.5px dashed #34343a; border-radius:10px; padding:16px 10px; text-align:center; color:var(--dim); cursor:pointer; transition:.15s; }
.drop b { color:var(--txt); } .drop:hover { border-color:var(--acc); }
.drop small { display:block; margin-top:8px; font-size:11px; color:#66635e; }
#imglist { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
#imglist li { position:relative; aspect-ratio:1; border-radius:8px; overflow:hidden; background:#000; border:1px solid var(--line); cursor:grab; }
#imglist li.ph { opacity:.55; }
#imglist li.over { outline:2px solid var(--acc); } #imglist li.drag { opacity:.3; }
#imglist img { width:100%; height:100%; object-fit:cover; display:block; pointer-events:none; }
#imglist .n { position:absolute; left:5px; top:4px; font-size:11px; background:#000a; padding:0 5px; border-radius:4px; }
#imglist .acts { position:absolute; inset:auto 0 0 0; display:flex; justify-content:center; gap:2px; padding:4px; background:linear-gradient(transparent,#000c); opacity:0; transition:.15s; }
#imglist li:hover .acts { opacity:1; }
#imglist .acts button { padding:1px 7px; font-size:13px; border-radius:5px; background:#000b; }
#center { display:flex; flex-direction:column; min-width:0; }
#stage { flex:1; display:flex; align-items:center; justify-content:center; min-height:0; background:radial-gradient(circle at 50% 40%, #151518, #070708); }
#view { display:block; box-shadow:0 10px 40px #000a; background-color:#000;
  background-image:linear-gradient(45deg,#1b1b1e 25%,transparent 25%),linear-gradient(-45deg,#1b1b1e 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#1b1b1e 75%),linear-gradient(-45deg,transparent 75%,#1b1b1e 75%);
  background-size:20px 20px; background-position:0 0,0 10px,10px -10px,-10px 0; }
.transport { display:flex; align-items:center; gap:10px; padding:8px 14px; border-top:1px solid var(--line); background:#0d0d0f; }
.transport #play { width:76px; }
#scrub { flex:1; accent-color:var(--acc); }
#time { color:var(--dim); font-variant-numeric:tabular-nums; min-width:200px; text-align:right; font-size:12px; }
.exportbar { padding:10px 14px 12px; border-top:1px solid var(--line); background:var(--panel); display:flex; flex-direction:column; gap:8px; }
.fmt { display:flex; flex-wrap:wrap; gap:10px; align-items:center; color:var(--dim); }
.fmt label { display:flex; align-items:center; gap:6px; }
.fmt input[type=number] { width:72px; }
#res { margin-left:auto; font-size:12px; }
.exp { display:flex; gap:8px; flex-wrap:wrap; }
#cancel { display:none; } body.exporting #cancel { display:inline-block; }
body.exporting .exp .primary { opacity:.4; pointer-events:none; }
.prog { height:4px; background:#222; border-radius:3px; overflow:hidden; }
#progress { height:100%; width:0; background:linear-gradient(90deg,var(--acc2),var(--acc)); transition:width .1s; }
#plabel, #codecNote { color:var(--dim); font-size:12px; }
#settings { border-left:1px solid var(--line); padding:6px 0 40px; }
.sec { border-bottom:1px solid var(--line); }
.sec summary { padding:11px 14px; cursor:pointer; font-size:12px; text-transform:uppercase; letter-spacing:.12em; color:var(--dim); font-weight:600; list-style:none; position:relative; }
.sec summary::after { content:'+'; position:absolute; right:14px; } .sec[open] summary::after { content:'–'; }
.sec[open] summary { color:var(--txt); }
.sec .body { padding:0 14px 12px; display:flex; flex-direction:column; gap:9px; }
.row { display:grid; gap:4px 8px; align-items:center; }
.row.range { grid-template-columns:1fr 62px; } .row.range .lbl { grid-column:1 / 3; }
.row.range input[type=range] { width:100%; accent-color:var(--acc); }
.row.range .num { width:62px; padding:3px 5px; font-size:12px; }
.row.select, .row.color, .row.text { grid-template-columns:1fr; }
.row.check { grid-template-columns:auto 1fr; cursor:pointer; } .row.check input { accent-color:var(--acc); }
.row.color input { width:100%; height:30px; background:none; border:1px solid var(--line); border-radius:6px; padding:2px; }
.lbl { color:#c9c4bb; font-size:12px; }
#toast { position:fixed; bottom:22px; left:50%; transform:translateX(-50%) translateY(20px); background:#1d1d21; border:1px solid #333; padding:9px 14px; border-radius:8px; opacity:0; transition:.2s; pointer-events:none; z-index:20; }
#toast.on { opacity:1; transform:translateX(-50%); }
#dropmask { position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:#000c; border:3px dashed var(--acc); font-size:28px; letter-spacing:.1em; z-index:30; pointer-events:none; }
body.dropping #dropmask { display:flex; }
::-webkit-scrollbar { width:9px; height:9px; } ::-webkit-scrollbar-thumb { background:#2a2a30; border-radius:6px; } ::-webkit-scrollbar-track { background:transparent; }
