:root {
	scrollbar-color: var(--accent) var(--neutral-overlay);
}

.upload-body {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.drop-zone {
	position: relative;
	border: 2px dashed var(--neutral-soft);
	border-radius: calc(var(--radius) * 4);
	background: var(--panel-glass);
	padding: 48px 32px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
	cursor: pointer;
	transition: border var(--transition), background var(--transition), transform var(--transition);
}

.drop-zone input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	pointer-events: none;
}

.drop-zone.drag-active {
	border-color: var(--accent-strong);
	background: rgba(77, 182, 172, 0.08);
	transform: translateY(-2px);
}

.drop-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	color: var(--text-muted);
}

.drop-content h3 {
	margin: 0;
	color: var(--text);
	font-size: 20px;
}

.drop-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 1px solid var(--accent-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: var(--accent);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.file-chip {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--neutral-overlay);
	color: var(--text);
	font-size: 14px;
}

.file-chip.hidden {
	display: none;
}

.cta-row {
	display: flex;
	align-items: center;
	justify-content: center;
}

.progress-indicator {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 16px;
	padding: 14px 18px;
	border-radius: calc(var(--radius) * 3);
	border: 1px solid var(--neutral-overlay);
	background: rgba(17, 17, 17, 0.75);
	box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
}

.progress-indicator.hidden {
	display: none;
}

.progress-spinner {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 3px solid var(--neutral-overlay);
	border-top-color: var(--accent-strong);
	animation: spin 0.9s linear infinite;
	flex-shrink: 0;
}

.progress-copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.progress-copy strong {
	font-size: 15px;
}

.progress-copy span {
	color: var(--text-muted);
	font-size: 13px;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.primary.mega {
	padding: 20px 36px;
	font-size: 17px;
}

.log-panel[data-collapsed="true"] .log-body {
	display: none;
}

.log-panel .log-header {
	cursor: pointer;
	user-select: none;
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--neutral-soft);
	border-radius: calc(var(--radius) * 2);
	padding: 12px 16px;
	background: rgba(26, 26, 26, 0.6);
	transition: border var(--transition), background var(--transition);
}

.log-title-group {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.log-hint {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.log-caret {
	margin-left: auto;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1px solid var(--neutral-overlay);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: var(--text-muted);
	transition: transform var(--transition), border var(--transition), color var(--transition);
}

.log-caret::before {
	content: "▼";
}

.log-panel[data-collapsed="false"] .log-caret {
	transform: rotate(180deg);
	color: var(--accent);
	border-color: var(--accent-soft);
}

.log-panel[data-collapsed="false"] .log-hint {
	color: var(--accent);
}

.log-panel .log-header:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--accent-soft);
	border-radius: calc(var(--radius) * 2);
}

.log-body {
	padding-top: 0;
}

.log-window {
	min-height: 220px;
	max-height: 320px;
	border: 1px solid var(--neutral-overlay);
	border-radius: var(--radius);
	background: rgba(17, 17, 17, 0.55);
	padding: 18px;
	overflow-y: auto;
	font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 13px;
	line-height: 1.5;
	box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.45);
}

.log-line {
	display: block;
	color: var(--text-muted);
}

.log-line.success {
	color: var(--success);
}

.log-line.error {
	color: var(--warning);
}

.log-panel {
	min-height: auto;
}

.toast {
	z-index: 2000;
}


.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3000;
	padding: 24px;
}

.modal-overlay.hidden {
	display: none;
}

.modal-card {
	position: relative;
	max-width: 420px;
	width: 100%;
	background: #1a1a1a;
	border: 1px solid var(--neutral-overlay);
	border-radius: calc(var(--radius) * 2);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
	padding: 24px 28px 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.modal-card h3 {
	margin: 0;
}

.modal-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: calc(var(--radius) * 2);
	border: 1px solid var(--accent);
	color: var(--accent-strong);
	text-decoration: none;
	font-weight: 600;
	margin-top: 4px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.modal-link:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--accent-soft);
}

@media (max-width: 768px) {
	.drop-zone {
		padding: 36px 20px;
	}

	.cta-row {
		flex-direction: column;
		align-items: center;
	}
}
