:root { --ink:#1a1a1a; --muted:#6b6b6b; --line:#dcdcdc; --bg:#fff; --soft:#f6f6f4; --accent:#1f5fbf; --ok:#1d6b3a; --bad:#a32020; }
@media (prefers-color-scheme: dark) {
  :root { --ink:#eee; --muted:#a0a0a0; --line:#3a3a3a; --bg:#161616; --soft:#202020; --accent:#7fb0ff; --ok:#7fd49b; --bad:#ff8f8f; }
}
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:17px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 620px; margin: 0 auto; padding: 56px 16px 80px; }
h1 { font-size: 2rem; margin: 0 0 4px; letter-spacing: -0.02em; }
.lead { margin: 0 0 28px; color: var(--muted); }
#drop { border: 2px dashed var(--line); border-radius: 12px; padding: 44px 16px; text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: 4px; background: var(--soft); }
#drop span { color: var(--muted); font-size: .95rem; }
#drop:hover, #drop:focus-visible, #drop.over { border-color: var(--accent); outline: none; }
.privacy { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }
#work { margin-top: 32px; }
.listhead { display:flex; justify-content: space-between; align-items: baseline; font-size:.9rem; color: var(--muted); }
ol { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-top: 1px solid var(--line); background: var(--bg); cursor: grab; }
li:first-child { border-top: 0; }
li.dragging { opacity: .4; }
li.target { box-shadow: inset 0 2px 0 var(--accent); }
li .n { color: var(--muted); font-variant-numeric: tabular-nums; width: 1.6em; text-align: right; flex: none; font-size: .9rem; }
li .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
li .meta { color: var(--muted); font-size: .85rem; flex: none; }
li .err { color: var(--bad); }
li button { border: 0; background: none; color: var(--muted); font-size: 1rem; width: 30px; height: 30px; border-radius: 6px; cursor: pointer; flex: none; }
li button:hover:not(:disabled) { background: var(--soft); color: var(--ink); }
li button:disabled { opacity: .25; cursor: default; }
.hint { color: var(--muted); font-size: .85rem; margin: 8px 0 24px; }
.size { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; }
#go, .button { display: block; width: 100%; text-align: center; font: inherit; font-weight: 600; padding: 13px; border-radius: 10px; border: 0; cursor: pointer; background: var(--ink); color: var(--bg); text-decoration: none; }
#go:disabled { opacity: .5; cursor: default; }
.button { background: var(--ok); color: #fff; margin-top: 4px; }
@media (prefers-color-scheme: dark) { .button { color: #10240f; } }
.link { border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }
#status { min-height: 1.5em; margin: 14px 0; font-size: .95rem; }
#status.bad { color: var(--bad); }
