:root {
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #1f2328;
	background: #ffffff;
	font-synthesis: none;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	background: #ffffff;
}

button,
input,
select {
	font: inherit;
}

a {
	color: inherit;
}

.site-header {
	width: min(840px, calc(100% - 32px));
	height: 64px;
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #d8dee4;
	font-size: 0.875rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 9px;
	color: #1f2328;
	text-decoration: none;
	font-weight: 650;
}

.brand img {
	width: 28px;
	height: 28px;
}

.site-header > a:last-child {
	color: #57606a;
}

.page {
	width: min(760px, calc(100% - 32px));
	margin: 56px auto 80px;
}

h1 {
	margin: 0;
	font-size: clamp(2rem, 6vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.035em;
}

h2 {
	margin: 0;
	font-size: 1rem;
}

.description {
	max-width: 610px;
	margin: 14px 0 32px;
	color: #57606a;
	line-height: 1.6;
}

.capacity {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	margin-bottom: 16px;
	border: 1px solid #d8dee4;
	border-radius: 8px;
}

.capacity div {
	display: grid;
	gap: 4px;
	padding: 14px 16px;
}

.capacity div + div {
	border-left: 1px solid #d8dee4;
}

.capacity span {
	color: #57606a;
	font-size: 0.75rem;
}

.capacity strong {
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}

.upload-panel {
	padding: 20px;
	border: 1px solid #d8dee4;
	border-radius: 8px;
}

.upload-options {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 20px;
}

.upload-options p {
	margin: 5px 0 0;
	color: #57606a;
	font-size: 0.8125rem;
}

.retention-field {
	display: grid;
	gap: 5px;
	color: #57606a;
	font-size: 0.75rem;
}

.retention-field select {
	min-width: 130px;
	padding: 7px 30px 7px 9px;
	border: 1px solid #afb8c1;
	border-radius: 6px;
	color: #1f2328;
	background: #ffffff;
}

.drop-zone {
	min-height: 220px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border: 1px dashed #8c959f;
	border-radius: 6px;
	cursor: pointer;
	text-align: center;
}

.drop-zone:hover,
.drop-zone.dragging {
	background: #f6f8fa;
	border-color: #57606a;
}

.drop-zone input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.drop-zone img {
	width: 48px;
	height: 48px;
	margin-bottom: 4px;
}

.drop-zone strong {
	font-size: 0.9375rem;
}

.drop-zone span {
	color: #57606a;
	font-size: 0.8125rem;
}

.queue-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 28px 0 10px;
}

.text-button {
	padding: 0;
	border: 0;
	color: #57606a;
	background: none;
	cursor: pointer;
	font-size: 0.8125rem;
	text-decoration: underline;
}

.queue {
	display: grid;
	gap: 8px;
}

.file-row {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	padding: 15px 16px;
	border: 1px solid #d8dee4;
	border-radius: 7px;
	background: #ffffff;
}

.file-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
	font-size: 0.875rem;
}

.file-meta {
	margin-top: 5px;
	color: #57606a;
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
}

.file-actions {
	display: flex;
	align-items: center;
	gap: 7px;
}

.icon-button,
.copy-button {
	padding: 6px 9px;
	border: 1px solid #afb8c1;
	border-radius: 6px;
	color: #1f2328;
	background: #f6f8fa;
	cursor: pointer;
	font-size: 0.75rem;
}

.icon-button:hover,
.copy-button:hover {
	background: #eaeef2;
}

.file-row.error {
	border-color: #cf222e;
}

.file-progress {
	position: absolute;
	inset: auto 0 0;
	height: 2px;
	background: #eaeef2;
}

.file-progress span {
	display: block;
	height: 100%;
	background: #57606a;
	transition: width 0.15s linear;
}

.toast {
	position: fixed;
	left: 50%;
	bottom: 20px;
	padding: 9px 13px;
	border: 1px solid #8c959f;
	border-radius: 6px;
	color: #ffffff;
	background: #24292f;
	font-size: 0.8125rem;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 8px);
	transition:
		opacity 0.15s,
		transform 0.15s;
}

.toast.visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.hidden {
	display: none;
}

.docs-page {
	width: min(840px, calc(100% - 32px));
	margin: 48px auto 80px;
}

.docs-page h1 {
	font-size: 2rem;
}

.docs-page h2 {
	margin: 32px 0 10px;
	font-size: 1.1rem;
}

.docs-page h3 {
	margin: 22px 0 8px;
	font-size: 0.9375rem;
}

.docs-page p,
.docs-page li {
	color: #57606a;
	line-height: 1.6;
	font-size: 0.875rem;
}

.docs-page code {
	padding: 2px 5px;
	border-radius: 4px;
	background: #eff1f3;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 0.8125rem;
}

.docs-page pre {
	overflow-x: auto;
	padding: 14px;
	border: 1px solid #d8dee4;
	border-radius: 6px;
	background: #f6f8fa;
}

.docs-page pre code {
	padding: 0;
	background: none;
}

.endpoint {
	display: grid;
	grid-template-columns: 70px 1fr;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #d8dee4;
	font-size: 0.875rem;
}

.endpoint strong {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 0.75rem;
}

@media (max-width: 600px) {
	.page {
		margin-top: 36px;
	}

	.capacity {
		grid-template-columns: 1fr;
	}

	.capacity div + div {
		border-top: 1px solid #d8dee4;
		border-left: 0;
	}

	.upload-options {
		flex-direction: column;
	}

	.retention-field,
	.retention-field select {
		width: 100%;
	}

	.file-row {
		grid-template-columns: 1fr;
	}

	.file-actions {
		justify-content: flex-end;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms;
	}
}
