:root {
	--bg: #fbfbfc;
	--surface: #ffffff;
	--soft: #f4f6f8;
	--text: #15171a;
	--muted: #68707d;
	--line: #e5e8ee;
	--primary: #1f6feb;
	--primary-strong: #1859bd;
	--success: #147a4f;
	--warning: #91620d;
	--error: #b42318;
	--shadow: 0 24px 70px rgba(21, 23, 26, 0.08);
}

* {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

body {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(circle at top left, rgba(31, 111, 235, 0.08), transparent 32rem),
		var(--bg);
	color: var(--text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
	width: min(1040px, calc(100% - 32px));
	margin: 0 auto;
	padding: 52px 0 34px;
}

.hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 26px;
}

.eyebrow {
	margin: 0 0 8px;
	color: var(--primary);
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

h1 {
	margin: 0;
	font-size: clamp(2.35rem, 6vw, 4.8rem);
	line-height: 0.94;
	letter-spacing: -0.04em;
}

.lede {
	max-width: 620px;
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 1.08rem;
	line-height: 1.5;
}

.privacy-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	margin-top: 8px;
	border: 1px solid #c6ebd8;
	border-radius: 999px;
	background: #effaf5;
	color: var(--success);
	padding: 9px 13px;
	font-size: 0.92rem;
	font-weight: 750;
}

.privacy-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--success);
}

.workspace {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: var(--shadow);
	padding: 18px;
}

.drop-zone {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 260px;
	border: 1.5px dashed #c6ccd6;
	border-radius: 14px;
	background: linear-gradient(180deg, #ffffff, #f8fafc);
	text-align: center;
	transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone.is-dragging {
	border-color: var(--primary);
	background: #f0f6ff;
	transform: translateY(-1px);
}

.file-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.drop-content {
	pointer-events: none;
	padding: 24px;
}

.drop-icon {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: #eef4ff;
	color: var(--primary);
	font-size: 1.8rem;
	font-weight: 500;
}

.drop-title {
	margin: 0;
	font-size: 1.55rem;
	font-weight: 780;
}

.drop-subtitle {
	margin: 8px 0 20px;
	color: var(--muted);
}

.primary-button,
.secondary-button,
.ghost-button,
.small-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 0;
	border-radius: 999px;
	background: var(--primary);
	color: #fff;
	padding: 0 19px;
	font: inherit;
	font-weight: 750;
	text-decoration: none;
	cursor: pointer;
}

.secondary-button {
	border: 1px solid var(--line);
	background: #fff;
	color: var(--text);
}

.ghost-button {
	background: transparent;
	color: var(--muted);
}

.small-button {
	min-height: 34px;
	border-radius: 999px;
	padding: 0 12px;
	font-size: 0.9rem;
}

.primary-button {
	pointer-events: auto;
}

.primary-button:hover,
.small-button:hover {
	background: var(--primary-strong);
}

.secondary-button:hover {
	border-color: #b7c1d0;
	background: #f7f9fd;
}

.ghost-button:hover {
	background: var(--soft);
	color: var(--text);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.small-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 16px;
}

.toggle {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: var(--text);
	cursor: pointer;
	max-width: 360px;
}

.toggle input {
	margin-top: 4px;
	accent-color: var(--primary);
}

.toggle small {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	line-height: 1.4;
}

.action-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.status-panel,
.progress-wrap,
.queue-panel {
	margin-top: 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 16px;
}

.status-panel.is-success {
	border-color: #cdebdc;
	background: #f6fcf9;
}

.status-panel.is-warning {
	border-color: #f3cf8d;
	background: #fff8eb;
}

.status-panel.is-error {
	border-color: #f3b6b0;
	background: #fff4f2;
}

.status-title {
	margin: 0;
	font-weight: 780;
}

.status-copy,
.progress-meta,
.job-file small,
.muted-text {
	margin: 6px 0 0;
	color: var(--muted);
	line-height: 1.45;
}

.progress-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 10px;
	font-size: 0.92rem;
	font-weight: 700;
}

.progress-track {
	width: 100%;
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: #e6ebf3;
}

.progress-bar {
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--primary);
	transition: width 180ms ease;
}

.queue-panel {
	overflow: hidden;
	padding: 0;
	background: transparent;
	border: 0;
}

.queue-head,
.job-row {
	display: grid;
	grid-template-columns: minmax(180px, 1.05fr) 106px minmax(240px, 1.7fr) 112px;
	gap: 14px;
	align-items: start;
}

.queue-head {
	border: 0;
	background: transparent;
	color: var(--muted);
	padding: 0 14px 8px;
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.job-row {
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 14px 14px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(21, 23, 26, 0.04);
}

.job-row + .job-row {
	margin-top: 10px;
}

.job-row.is-processing {
	background: #fffaf0;
}

.job-row.is-ready {
	background: #f4fbf7;
}

.job-row.is-error {
	background: #fff4f2;
}

.job-file strong {
	display: block;
	overflow-wrap: anywhere;
	font-weight: 760;
}

.job-file small {
	display: block;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	border-radius: 999px;
	background: #eef3fb;
	color: var(--muted);
	padding: 0 10px;
	font-size: 0.82rem;
	font-weight: 800;
}

.is-processing .status-badge {
	background: #fff1c7;
	color: var(--warning);
}

.is-ready .status-badge {
	background: #dff5ea;
	color: var(--success);
}

.is-error .status-badge {
	background: #ffe1dd;
	color: var(--error);
}

.job-report ul {
	margin: 0;
	padding-left: 18px;
	color: var(--muted);
	font-size: 0.94rem;
	line-height: 1.45;
}

.job-report li + li {
	margin-top: 4px;
}

.job-actions {
	display: flex;
	justify-content: flex-end;
}

.notes {
	max-width: 760px;
	margin: 18px auto 0;
	color: var(--muted);
	text-align: center;
}

.notes p {
	margin: 0;
	line-height: 1.5;
}

@media (max-width: 720px) {
	.app-shell {
		width: min(100% - 24px, 980px);
		padding: 28px 0;
	}

	.hero {
		display: block;
	}

	h1 {
		letter-spacing: -0.03em;
	}

	.privacy-pill {
		margin-top: 18px;
	}

	.workspace {
		padding: 12px;
		border-radius: 16px;
	}

	.drop-zone {
		min-height: 230px;
	}

	.controls {
		display: block;
	}

	.toggle {
		max-width: none;
		margin-top: 14px;
	}

	.action-row > *,
	.job-actions .small-button {
		width: 100%;
	}

	.queue-head {
		display: none;
	}

	.job-row {
		display: block;
	}

	.job-status,
	.job-report,
	.job-actions {
		margin-top: 12px;
	}

	.job-actions {
		justify-content: stretch;
	}
}
