* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Manrope', system-ui, sans-serif; background: #f5f5f5; color: #222; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.card { background: #fff; border-radius: 12px; box-shadow: 0 2px 16px #0001; padding: 36px 40px; width: 100%; max-width: 520px; }
h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.sub { color: #666; font-size: .9rem; margin-bottom: 28px; }
label.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed #bbb; border-radius: 8px; padding: 40px 20px; cursor: pointer; transition: border-color .2s, background .2s; }
label.drop:hover, label.drop.over { border-color: #2563eb; background: #eff6ff; }
label.drop svg { margin-bottom: 10px; color: #888; }
label.drop span { font-size: .9rem; color: #555; }
label.drop strong { color: #2563eb; }
input[type=file] { display: none; }
.file-name { margin-top: 14px; font-size: .85rem; color: #444; text-align: center; min-height: 20px; }
.btn { display: block; width: 100%; margin-top: 20px; padding: 12px; background: #2563eb; color: #fff; font-size: 1rem; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; transition: background .2s; }
.btn:hover { background: #1d4ed8; }
.btn:disabled { background: #93c5fd; cursor: not-allowed; }
.progress-wrap { margin-top: 24px; display: none; }
.progress-label { display: flex; justify-content: space-between; font-size: .85rem; color: #555; margin-bottom: 6px; }
.bar-bg { background: #e5e7eb; border-radius: 99px; height: 10px; overflow: hidden; }
.bar { height: 100%; background: #2563eb; border-radius: 99px; transition: width .4s; width: 0%; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.stat { background: #f9fafb; border-radius: 8px; padding: 12px 14px; }
.stat-val { font-size: 1.3rem; font-weight: 700; }
.stat-lbl { font-size: .75rem; color: #888; margin-top: 2px; }
.status-badge { display: inline-block; margin-top: 16px; padding: 4px 12px; border-radius: 99px; font-size: .8rem; font-weight: 600; }
.badge-converting { background: #fef9c3; color: #854d0e; }
.badge-processing { background: #dbeafe; color: #1e40af; }
.badge-done { background: #dcfce7; color: #15803d; }
.badge-error { background: #fee2e2; color: #b91c1c; }
.errors-box { margin-top: 16px; background: #fff5f5; border: 1px solid #fca5a5; border-radius: 8px; padding: 12px; font-size: .8rem; max-height: 160px; overflow-y: auto; }
.errors-box p { color: #b91c1c; margin-bottom: 4px; }
.session-id { margin-top: 14px; font-size: .75rem; color: #aaa; word-break: break-all; }
.alert { margin-top: 16px; padding: 12px 14px; border-radius: 8px; font-size: .87rem; }
.alert-err { background: #fee2e2; color: #b91c1c; }
