*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: system-ui, sans-serif; background: #f5f5f3; min-height: 100vh; display: flex; flex-direction: column; }

header { background: #fff; border-bottom: 0.5px solid #ddd; padding: 0 2rem; height: 64px; display: flex; align-items: center; }

.logo-slot { width: calc(64px * 8/3); height: 64px; display: flex; align-items: center; }
.logo-slot img { max-height: 44px; max-width: 100%; object-fit: contain; }
.logo-placeholder { width: 100%; height: 44px; background: #f0ede8; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #aaa; }

main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; }

.card { background: #fff; border: 0.5px solid #ddd; border-radius: 12px; padding: 2rem; width: 100%; max-width: 560px; }

h1 { font-size: 18px; font-weight: 500; margin-bottom: 0.25rem; color: #111; }
.sub { font-size: 14px; color: #666; margin-bottom: 1.75rem; }

.drop-zone { border: 1.5px dashed #ccc; border-radius: 8px; padding: 2.5rem 1.5rem; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.drop-zone:hover, .drop-zone.drag-over { border-color: #888; background: #fafaf8; }
.drop-zone input { display: none; }
.drop-icon { font-size: 24px; margin-bottom: 0.5rem; }
.drop-label { font-size: 14px; color: #444; }
.drop-label span { color: #333; font-weight: 500; text-decoration: underline; cursor: pointer; }
.drop-hint { font-size: 12px; color: #999; margin-top: 0.25rem; }

.file-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 10px; background: #f9f9f7; border: 0.5px solid #e5e5e5; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #222; }
.file-size { color: #999; white-space: nowrap; }
.file-status { font-size: 12px; white-space: nowrap; }
.file-status.pending { color: #999; }
.file-status.uploading { color: #555; }
.file-status.done { color: #2a7a4f; }
.file-status.error { color: #c0392b; }
.remove-btn { background: none; border: none; cursor: pointer; color: #bbb; font-size: 16px; line-height: 1; padding: 0 2px; }
.remove-btn:hover { color: #666; }
.progress-bar { height: 3px; background: #eee; border-radius: 2px; margin-top: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: #444; border-radius: 2px; transition: width 0.2s; }

.actions { margin-top: 1.5rem; display: flex; align-items: center; gap: 12px; }
.btn-upload { background: #111; color: #fff; border: none; border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-upload:disabled { background: #ccc; cursor: not-allowed; }
.btn-upload:not(:disabled):hover { background: #333; }
.btn-clear { background: none; border: 0.5px solid #ddd; border-radius: 8px; padding: 10px 16px; font-size: 14px; color: #555; cursor: pointer; }
.btn-clear:hover { background: #f5f5f3; }

.error-banner { margin-top: 1rem; background: #fdf0ef; border: 0.5px solid #f5c6c3; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #922; }
.success-banner { margin-top: 1rem; background: #edf7f2; border: 0.5px solid #b2dcc6; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #1e6641; }

footer { background: #fff; border-top: 0.5px solid #ddd; padding: 1rem 2rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.footer-link { font-size: 13px; color: #444; text-decoration: none; white-space: nowrap; }
.footer-link:hover { text-decoration: underline; }
.footer-sep { font-size: 13px; color: #ccc; }
