:root { color-scheme: light; --ink: #302f29; --muted: #68685d; --green: #45543f; --line: #deddd2; --paper: #fffdf8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f8f5ef; color: var(--ink); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main { width: min(100%, 580px); margin: 0 auto; padding: 58px 24px 28px; }
header { text-align: center; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 650; letter-spacing: .2em; margin: 0 0 24px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 8.8vw, 48px); font-weight: 400; line-height: 1.2; margin: 0; letter-spacing: -.045em; }
h1 span { color: #7e836c; font-style: italic; padding: 0 3px; }
.ornament { margin: 20px 0; font-size: 26px; color: #7e836c; }
h2 { font-size: 20px; font-weight: 550; line-height: 1.4; margin: 0 0 12px; }
.intro { margin: 0 auto 30px; max-width: 340px; color: var(--muted); }
button { font: inherit; cursor: pointer; border-radius: 12px; min-height: 54px; touch-action: manipulation; }
button:focus-visible { outline: 3px solid #806327; outline-offset: 4px; }
button:disabled { opacity: .5; cursor: default; }
.primary { display: block; width: 100%; min-height: 70px; padding: 16px 12px; color: white; background: var(--green); border: 1px solid var(--green); font-size: 18px; font-weight: 600; }
.primary span { display: inline-block; margin-right: 6px; font-size: 24px; font-weight: 400; vertical-align: -1px; }
.primary:hover:not(:disabled) { background: #354330; }
.limit { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0 22px; }
.keep-open { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #f0efe7; font-size: 16px; text-align: center; margin: 0 0 24px; }
.notice { background: #efeadb; border: 1px solid #d4c8a7; border-radius: 12px; padding: 16px; margin: 0 0 20px; overflow-wrap: anywhere; }
.error { background: #fbede7; color: #863d2a; border-color: #dec0b5; }
.list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 28px; }
.list-heading h2 { font-size: 17px; }
#count { flex-shrink: 0; font-size: 14px; color: var(--muted); }
ul { list-style: none; padding: 0; margin: 0; }
.file { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 12px; min-width: 0; }
.file-name { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; margin: 0 0 4px; }
.file-meta { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
progress { display: block; width: 100%; height: 7px; border: none; border-radius: 8px; overflow: hidden; background: #e5e7dd; accent-color: var(--green); }
progress::-webkit-progress-bar { background: #e5e7dd; border-radius: 8px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--green); }
.file-status { font-size: 15px; margin: 10px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.file[data-state="done"] .file-status { color: #3c6034; }
.file[data-state="failed"] .file-status { color: #8c3c2c; }
.secondary { border: 1px solid #8b927e; color: var(--green); background: var(--paper); padding: 12px 18px; font-weight: 550; }
.file .secondary { margin-top: 12px; }
#retry-all { width: 100%; }
.summary { padding: 18px; border-radius: 12px; background: #e8eddf; color: #35482d; text-align: center; }
footer { font-family: Georgia, "Times New Roman", serif; font-style: italic; text-align: center; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); margin-top: 38px; padding-top: 24px; }
@media (max-width: 380px) { main { padding: 36px 18px 24px; } .primary { font-size: 17px; } }
@media (prefers-reduced-motion: no-preference) { button { transition: background-color .15s ease; } }
