:root{
	--bg-0: #0f172a;
	--bg-1: #071128;
	--card: rgba(255,255,255,0.04);
	--accent: #60a5fa;
	--muted: rgba(255,255,255,0.65);
	--glass: rgba(255,255,255,0.03);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
	font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
	margin:0;
	background: linear-gradient(180deg,var(--bg-0),var(--bg-1));
	color: #e6eef8;
	-webkit-font-smoothing:antialiased;
	-moz-osx-font-smoothing:grayscale;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:48px 20px;
}

.page-root{width:100%;max-width:820px}
.card{
	background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
	border:1px solid rgba(255,255,255,0.04);
	padding:28px;
	border-radius:14px;
	box-shadow: 0 10px 30px rgba(2,6,23,0.6);
}

.card-head h1{margin:0;font-size:20px;font-weight:700}
.muted{color:var(--muted);margin-top:6px;font-size:13px}

.file-picker{display:block;border-radius:10px;padding:18px;border:1px dashed rgba(255,255,255,0.06);background:var(--glass);cursor:pointer;position:relative;overflow:hidden}
.file-picker input[type="file"]{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;cursor:pointer}
.file-label{display:block;color:var(--muted);font-weight:600;text-align:center}
.file-picker.dragover{border-color:rgba(96,165,250,0.9);box-shadow:0 6px 18px rgba(96,165,250,0.06)}

.actions{display:flex;justify-content:flex-end;margin-top:14px}
.btn-primary{background:linear-gradient(90deg,var(--accent),#3b82f6);border:none;color:white;padding:10px 16px;border-radius:8px;font-weight:600;cursor:pointer}
.btn-primary:disabled{opacity:0.6;cursor:not-allowed}
.btn-ghost{background:transparent;border:1px solid rgba(255,255,255,0.06);color:var(--muted);padding:8px 12px;border-radius:8px;cursor:pointer}

.progress-wrap{margin-top:18px}
.progress-info{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-bottom:8px}
.progress-bar{height:12px;background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));border-radius:999px;overflow:hidden;border:1px solid rgba(255,255,255,0.03)}
.progress-fill{height:100%;background:linear-gradient(90deg,#60a5fa,#3b82f6);width:0%;transition:width 300ms ease}

.result{margin-top:18px;padding:14px;background:rgba(255,255,255,0.02);border-radius:10px;border:1px solid rgba(255,255,255,0.03)}
.result h3{margin:0 0 8px 0;font-size:14px}
.result-row{display:flex;gap:8px}
.result-row input{flex:1;padding:10px;border-radius:8px;border:1px solid rgba(255,255,255,0.04);background:transparent;color:inherit}

.hidden{display:none}

.selected-list{margin-top:12px}
.selected-list .file-list{list-style:none;padding:0;margin:0}
.selected-list .file-item{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-radius:8px;margin-bottom:8px;background:rgba(255,255,255,0.01);border:1px solid rgba(255,255,255,0.02)}
.selected-list .remove-btn{padding:6px 8px;border-radius:6px;background:transparent;border:1px solid rgba(255,255,255,0.04);color:var(--muted);cursor:pointer}
.selected-list .remove-btn:hover{border-color:rgba(255,255,255,0.08);color:#fff}

@media (max-width:520px){
	.card{padding:18px;border-radius:10px}
	.file-label{font-size:13px}
}
