:root {
  font-family: Inter, system-ui, sans-serif;
  color: #211c2c;
  background: #f6f4fa;
  --accent: #5632ad;
  --border: #e3ddea;
  --muted: #645c70;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
header { background: white; border-bottom: 1px solid var(--border); padding: 17px max(24px, calc((100vw - 1024px) / 2)); }
header a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 750; white-space: nowrap; }
header span, .icon { display: grid; place-items: center; background: var(--accent); color: white; border-radius: 10px; width: 32px; height: 32px; }
main { max-width: 772px; margin: auto; padding: 68px 24px 48px; }
.intro { text-align: center; margin-bottom: 32px; }
h1 { margin: 0; font-size: clamp(2.6rem, 8vw, 5rem); letter-spacing: -.075em; line-height: 1.05; }
p { color: var(--muted); line-height: 1.55; }
.panel { background: white; border: 1px solid var(--border); border-radius: 22px; padding: 18px; box-shadow: 0 16px 40px #30244d0b; }
#drop { text-align: center; padding: 34px 16px; border: 2px dashed #cbbbe7; border-radius: 14px; background: #faf8ff; }
#drop.active { border-color: var(--accent); background: #efe7ff; }
.icon { margin: 0 auto 16px; width: 52px; height: 52px; background: #eee6fc; color: var(--accent); font-size: 28px; }
h2 { font-size: 1.125rem; margin: 0; }
#drop p { margin: 6px 0 18px; }
button { border: 1px solid transparent; border-radius: 9px; background: var(--accent); padding: 11px 17px; color: white; font: inherit; font-weight: 650; cursor: pointer; }
button:hover:not(:disabled) { filter: brightness(.89); }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid #a686f0; outline-offset: 3px; }
.quiet { color: var(--accent); background: white; border-color: #d9ccec; }
.heading, li, .actions { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.heading { margin-top: 18px; }
ul { list-style: none; padding: 0; margin: 8px 0 16px; }
li { border-bottom: 1px solid var(--border); padding: 10px 0; }
.filename { flex: 1; overflow-wrap: anywhere; min-width: 0; }
.state { color: var(--muted); font-size: .85rem; text-align: right; }
li button, .heading button { padding: 6px 8px; font-size: .85rem; }
.actions { justify-content: flex-start; flex-wrap: wrap; }
#status { margin: 12px 0 0; font-size: .9rem; }
#status:empty { margin: 0; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 8px 4px; font-size: .875rem; }
.details strong { color: #211c2c; }
@media (max-width: 520px) {
  main { padding-top: 42px; }
  .details { grid-template-columns: 1fr; gap: 0; }
}
