:root {
	--color-primary: #00ffb9;
	--color-accent: #3232ff;
	--card-bg: #1e1e1e;
	--card-text: rgba(255, 255, 255, .87);
	--card-muted: rgba(255, 255, 255, .6);
	--card-divider: rgba(255, 255, 255, .12);
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	padding: 2rem 1rem;
	font: 16px/1.5 Roboto, system-ui, sans-serif;
	color: var(--card-text);
	background: var(--color-primary);
	background: linear-gradient(135deg, var(--color-primary), var(--color-accent)) fixed;
}

.card {
	max-width: 760px;
	margin: 0 auto;
	background: var(--card-bg);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12), 0 12px 32px rgba(0, 0, 0, .35);
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.card-header {
	padding: 12px;
}

.card-title {
	margin: 0;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.3;
}

.card-subtitle {
	text-align: center;
	margin: 4px 0 0;
	font-size: .875rem;
	color: var(--card-muted);
}

.card-content {
	text-align: center;
	padding: 0 12px 12px;
}

.card-content h2 {
	margin: 24px 0 8px;
	font-size: 1rem;
	font-weight: 500;
}

.card-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 12px;
	border-top: 1px solid var(--card-divider);
}

input[type=file] {
	width: 100%;
	width: fit-content;
	color: var(--card-muted);
	margin: 12px 0;
}

input[type=file]::file-selector-button {
	font: inherit;
	margin-right: 12px;
	padding: 6px 16px;
	cursor: pointer;
	color: var(--color-primary);
	background: transparent;
	border: 1px solid var(--card-divider);
	border-radius: 4px;
}

input[type=file]::file-selector-button:hover {
	background: rgba(0, 255, 185, .08);
}

button {
	font: inherit;
	font-weight: 500;
	letter-spacing: .03em;
	min-height: 36px;
	padding: 0 16px;
	cursor: pointer;
	color: #00382a;
	background: var(--color-primary);
	border: 0;
	border-radius: 4px;
	box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px rgba(0, 0, 0, .14), 0 1px 5px rgba(0, 0, 0, .12);
}

button:hover:not(:disabled) {
	filter: brightness(1.08);
}

button:focus-visible,
input[type=file]:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

button:disabled {
	color: rgba(255, 255, 255, .3);
	background: rgba(255, 255, 255, .12);
	box-shadow: none;
	cursor: not-allowed;
}

img.preview {
	display: block;
	width: 100%;
	max-height: 240px;
	object-fit: contain;
	background: #121212;
}

pre {
	margin: 0;
	padding: 12px 16px;
	max-height: 360px;
	overflow: auto;
	font-size: .85rem;
	white-space: pre-wrap;
	word-break: break-word;
	color: var(--card-text);
	background: #121212;
	border-radius: 4px;
	text-align: justify;
}

.muted {
	margin: 0;
	font-size: .875rem;
	color: var(--card-muted);
}