body { font-family: sans-serif; color: #222; background: #f6f7f9; margin: 0; padding: 1rem; line-height: 1.5; }
main { max-width: 720px; margin: 2rem auto; background: #fff; border-radius: 12px; padding: 1.5rem 2rem 2rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
main.narrow { max-width: 420px; }
header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
h1 { font-size: 1.6rem; margin: .5rem 0; }
a { color: #1a5fb4; }
/* Keep the hidden attribute working on elements that get a display value below. */
[hidden] { display: none !important; }

label { display: block; margin-top: 1rem; font-weight: bold; }
input[type="password"] { display: block; width: 100%; box-sizing: border-box; margin-top: .3rem; padding: .6rem; font-size: 1rem; border: 1px solid #aaa; border-radius: 6px; }
button { font: inherit; cursor: pointer; }
button.primary { margin-top: 1.5rem; padding: .6rem 1.2rem; color: #fff; background: #1a5fb4; border: 0; border-radius: 6px; }
button.primary:hover { background: #164f96; }
button.link { padding: 0; color: #1a5fb4; background: none; border: 0; text-decoration: underline; }

.hint { color: #555; font-weight: normal; font-size: .85rem; }
.error { color: #b3261e; }
.ok { color: #1e7b34; }

#dropzone { display: flex; flex-direction: column; align-items: center; gap: .4rem; margin-top: 1.5rem; padding: 2.5rem 1rem; text-align: center; font-weight: normal; cursor: pointer; background: #f8fafd; border: 2px dashed #9db4d3; border-radius: 12px; transition: background .15s, border-color .15s; }
#dropzone:hover, #dropzone:focus-within, #dropzone.dragover { background: #e8f0fb; border-color: #1a5fb4; }
/* Visually hidden, but still reachable with the keyboard. */
#dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone-title { font-size: 1.3rem; font-weight: bold; }
.dropzone-or { color: #555; }
.dropzone-button { padding: .6rem 1.2rem; color: #fff; background: #1a5fb4; border-radius: 6px; }

#summary { margin: 1.5rem 0 0; font-weight: bold; }
#file-list { list-style: none; margin: 1rem 0 0; padding: 0; }
#file-list li { padding: .8rem 0; border-top: 1px solid #e3e5e8; }
.file-head { display: flex; justify-content: space-between; gap: 1rem; }
.file-name { font-weight: bold; overflow-wrap: anywhere; }
.file-size { color: #555; white-space: nowrap; }
#file-list progress { display: block; width: 100%; height: .6rem; margin: .4rem 0; accent-color: #1a5fb4; }
.file-status { font-size: .9rem; color: #555; }
.file-status.error { color: #b3261e; }
.file-status.ok { color: #1e7b34; }
.file-status button { margin-left: .5rem; }
