:root { color-scheme: light dark; --accent: #0a66c2; --ok: #1a7f37; --bad: #c0392b; --line: color-mix(in srgb, currentColor 15%, transparent); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { margin: 0 0 4px; font-size: 1.6rem; }
.muted { opacity: .75; }
.small { font-size: .9rem; }
.banner { padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.banner.error { background: color-mix(in srgb, var(--bad) 15%, transparent); }
.banner.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); }
.drop { margin: 20px 0; padding: 28px 16px; border: 2px dashed var(--line); border-radius: 12px; text-align: center; }
.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.drop-title { margin: 0 0 16px; font-weight: 600; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.button, button { display: inline-block; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.button:focus-within, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; }
button.secondary { background: transparent; color: inherit; border: 1px solid var(--line); min-height: 32px; padding: 4px 10px; font-weight: 500; }
.visually-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
progress { width: 100%; height: 10px; accent-color: var(--accent); }
#summary { position: sticky; top: 0; padding: 12px 0; background: Canvas; z-index: 1; }
#summary .buttons { justify-content: flex-start; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.files .row { display: flex; gap: 8px; align-items: baseline; }
.files .name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.files .size { white-space: nowrap; font-size: .9rem; opacity: .75; }
.files .status { font-size: .9rem; opacity: .8; }
.files li.done .status, .files li.skipped .status { color: var(--ok); opacity: 1; }
.files li.failed .status { color: var(--bad); opacity: 1; }
.files progress { height: 6px; margin-top: 4px; }
.files.compact li { padding: 4px 0; }
details { margin-top: 24px; }
summary { cursor: pointer; font-weight: 600; }
