* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background: #f4f5f7; color: #1d2330; }
main { max-width: 640px; margin: 0 auto; padding: 32px 16px; }
h1 { font-size: 1.6rem; margin: 0 0 4px; }
.hint { margin: 0 0 24px; color: #5a6270; }
#codebox { margin-bottom: 16px; }
#codebox label { display: block; font-weight: 600; margin-bottom: 4px; }
#codebox input { width: 100%; padding: 10px; border: 1px solid #c3c8d0; border-radius: 8px; font-size: 1rem; }
#drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px;
        border: 2px dashed #9aa3b2; border-radius: 12px; background: #fff; cursor: pointer; text-align: center; }
#drop.over { border-color: #2563eb; background: #eef4ff; }
#drop small { color: #5a6270; }
#drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
#summary { font-weight: 600; min-height: 1.5em; }
#list { list-style: none; padding: 0; margin: 0; }
#list li { background: #fff; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
#list .name { display: flex; justify-content: space-between; gap: 8px; word-break: break-all; }
#list .state { white-space: nowrap; color: #5a6270; }
#list progress { width: 100%; height: 6px; margin-top: 6px; }
#list li.ok .state { color: #15803d; }
#list li.err .state { color: #b91c1c; }
