:root { --bg: #f6f7f9; --card: #fff; --text: #1c2230; --muted: #5a6475; --line: #d9dde4; --accent: #2f6fdb; --ok: #1f8a4c; --err: #b3261e; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #12151b; --card: #1b2029; --text: #e7eaf0; --muted: #a0a8b6; --line: #2e3542; --accent: #6c9cff; --ok: #4cc27f; --err: #ff7a70; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 640px; margin: 40px auto; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 680px) { main { margin: 0; border-radius: 0; border-width: 0 0 1px; padding: 20px 16px; } }
h1 { font-size: 1.5rem; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.small { font-size: 0.9rem; color: var(--muted); }
.note { padding: 12px 0; }
.drop { display: flex; align-items: center; justify-content: center; min-height: 120px; margin: 16px 0; border: 2px dashed var(--line); border-radius: 10px; cursor: pointer; }
.drop.over { border-color: var(--accent); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop span { padding: 10px 18px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; }
.bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.bar > div { height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
#list { list-style: none; padding: 0; margin: 16px 0; }
#list li { padding: 10px 0; border-top: 1px solid var(--line); }
#list .name { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; overflow-wrap: anywhere; }
#list .state { flex: none; color: var(--muted); font-size: 0.9rem; }
#list li.done .state { color: var(--ok); }
#list li.done .bar > div { background: var(--ok); }
#list li.error .state { color: var(--err); }
.thanks { font-size: 1.2rem; font-weight: 600; color: var(--ok); }
.consent { margin-top: 20px; }
