:root {
	--bg: #ffffff;
	--fg: #111114;
	--muted: #8a8a90;
	--panel: #efefef;
	--field: #ffffff;
	--line: #e2e2e5;
	--accent: #f22952;
	--highlight: #fbd4dd;
	--link: #2b3fd8;
	--danger: #b3261e;
	--ok: #1a7f37;
	--radius: 12px;
	--radius-sm: 8px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0b0b0c;
		--fg: #e8e8ea;
		--muted: #8a8a92;
		--panel: #1a1a1d;
		--field: #101012;
		--line: #2a2a2f;
		--highlight: #4a1526;
		--link: #8fa2ff;
		--danger: #f2726a;
		--ok: #5bc472;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font:
		16px/1.55 -apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Helvetica,
		Arial,
		sans-serif;
	-webkit-font-smoothing: antialiased;
}

[v-cloak] {
	display: none;
}

.wrap {
	max-width: 40rem;
	margin: 0 auto;
	padding: 1.5rem 1.25rem 3rem;
}

a {
	color: var(--link);
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.85em;
	word-break: break-all;
}

header {
	display: flex;
	justify-content: flex-end;
	padding: 1rem 0 2rem;
}

.brand {
	display: inline-flex;
	color: var(--accent);
	line-height: 0;
}

.brand svg {
	width: 2rem;
	height: 2rem;
}

.page-title {
	font-size: 1.75rem;
	line-height: 1.2;
	margin: 0 0 1.5rem;
}

footer {
	max-width: 40rem;
	margin: 0 auto;
	padding: 1rem 1.25rem 2rem;
	display: flex;
	gap: 1.25rem;
	font-size: 0.85rem;
}

footer a {
	color: var(--muted);
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

.panel {
	background: var(--panel);
	border-radius: var(--radius);
	margin-bottom: 1rem;
	overflow: hidden;
}

.panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	padding: 1rem 1.25rem;
	font: inherit;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--fg);
	text-align: left;
	background: none;
	border: 0;
	cursor: pointer;
}

.panel-head svg {
	width: 1rem;
	height: 1rem;
	flex: none;
	color: var(--muted);
	transition: transform 0.15s ease;
}

.panel-head.open svg {
	transform: rotate(90deg);
}

.panel-head.danger {
	color: var(--danger);
}

.panel-body {
	padding: 0 1.25rem 1.25rem;
}

.panel-body.pad {
	padding-top: 1.25rem;
}

.panel-body > .hint:first-child {
	margin-bottom: 1rem;
}

.field {
	margin-bottom: 1rem;
}

label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	font: inherit;
	color: var(--fg);
	background: var(--field);
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
}

input:focus-visible,
textarea:focus-visible {
	outline: 0;
	border-color: var(--fg);
}

textarea {
	resize: vertical;
}

input::placeholder,
textarea::placeholder {
	color: var(--muted);
}

.hint {
	margin: 0.4rem 0 0;
	color: var(--muted);
	font-size: 0.85rem;
}

.button {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	font: inherit;
	font-weight: 700;
	color: var(--bg);
	background: var(--fg);
	border: 1px solid var(--fg);
	border-radius: var(--radius-sm);
	text-decoration: none;
	cursor: pointer;
}

.button.caps {
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.button.danger {
	color: #fff;
	background: var(--danger);
	border-color: var(--danger);
}

.button.block {
	display: block;
	width: 100%;
	text-align: center;
}

.button:disabled {
	opacity: 0.4;
	cursor: default;
}

button.link {
	padding: 0;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--fg);
	background: none;
	border: 0;
	text-decoration: underline;
	cursor: pointer;
}

button.icon {
	display: inline-flex;
	padding: 0;
	color: var(--fg);
	background: none;
	border: 0;
	cursor: pointer;
	line-height: 0;
}

button.icon svg {
	width: 1rem;
	height: 1rem;
}

.check {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 1.25rem 0;
	font-size: 0.95rem;
	cursor: pointer;
}

input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 1.05rem;
	height: 1.05rem;
	margin: 0;
	flex: none;
	background: var(--line);
	border: 0;
	border-radius: 3px;
	cursor: pointer;
}

input[type="checkbox"]:checked {
	background: transparent;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2 8.5L6 12.5L14 3.5' fill='none' stroke='%23111114' stroke-width='2.4'/></svg>");
	background-size: 100% 100%;
}

@media (prefers-color-scheme: dark) {
	input[type="checkbox"]:checked {
		background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2 8.5L6 12.5L14 3.5' fill='none' stroke='%23e8e8ea' stroke-width='2.4'/></svg>");
	}
}

.rows {
	list-style: none;
	margin: 0;
	padding: 0;
}

.row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.6rem;
	padding: 0.75rem 1rem;
	background: var(--field);
	border-radius: var(--radius-sm);
	min-height: 3rem;
}

.row .name {
	font-weight: 700;
	text-transform: uppercase;
	color: var(--fg);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.row input {
	padding: 0;
	background: none;
}

.row input:focus-visible {
	border-color: transparent;
}

.intro h1 {
	font-size: 2rem;
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 0 0 2rem;
}

.intro h1 mark {
	color: inherit;
	background: var(--highlight);
	padding: 0.05em 0.1em;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.intro p {
	margin: 0 0 1.5rem;
	max-width: 34rem;
}

.intro .alt {
	margin-top: 1.25rem;
}

.composer {
	margin-bottom: 2.5rem;
}

.composer textarea {
	display: block;
	padding: 1rem 1.25rem;
	font-size: 1.35rem;
	line-height: 1.4;
	background: var(--panel);
	border: 0;
	border-radius: var(--radius);
	resize: none;
}

.composer textarea:focus-visible {
	outline: 0;
}

.composer.open textarea {
	min-height: 8.5rem;
}

.composer .bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1rem;
}

.overlay {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: rgba(17, 17, 20, 0.25);
	z-index: 20;
}

.dialog {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 25rem;
	min-height: min(22rem, 100%);
	max-height: min(34rem, 100%);
	background: var(--bg);
	border-radius: var(--radius);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
	overflow: hidden;
}

@media (prefers-color-scheme: dark) {
	.overlay {
		background: rgba(0, 0, 0, 0.6);
	}

	.dialog {
		border: 1px solid var(--line);
	}
}

.dialog h2 {
	margin: 0;
	padding: 1.25rem 1.5rem 0.75rem;
	font-size: 1.15rem;
}

.dialog .options {
	flex: 1;
	overflow-y: auto;
	padding: 0 1.5rem 1.25rem;
}

.dialog .options .check {
	margin: 0.75rem 0;
}

.upper,
input.upper {
	text-transform: uppercase;
}

input.upper::placeholder {
	text-transform: none;
}

.dialog .foot {
	padding: 1rem;
	text-align: center;
	border-top: 1px solid var(--line);
}

.dialog .foot a {
	color: var(--fg);
	font-weight: 700;
	text-decoration: none;
}

.push {
	margin-bottom: 1.75rem;
}

.push .meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.25rem;
	font-size: 0.95rem;
	color: var(--muted);
}

.push .from {
	color: var(--fg);
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
}

.push .text {
	margin: 0;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.empty,
.loading,
.alt {
	color: var(--muted);
	margin: 1.5rem 0;
}

.notice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	padding: 0.85rem 1.25rem;
	background: var(--panel);
	border-radius: var(--radius);
	font-size: 0.9rem;
}

.panel-body .notice {
	background: var(--field);
}

.notice button {
	font: inherit;
	font-weight: 700;
	color: var(--fg);
	background: none;
	border: 0;
	text-decoration: underline;
	cursor: pointer;
	flex: none;
}

.toast {
	position: fixed;
	left: 50%;
	top: calc(1.25rem + env(safe-area-inset-top));
	transform: translateX(-50%);
	max-width: calc(100% - 2.5rem);
	padding: 0.75rem 1.25rem;
	border-radius: var(--radius-sm);
	color: #fff;
	background: var(--danger);
	font-size: 0.9rem;
	cursor: pointer;
	z-index: 30;
}

.toast.success {
	background: var(--ok);
}

.prose h3 {
	margin-top: 2rem;
	font-size: 1.05rem;
}

.prose li {
	margin-bottom: 0.25rem;
}
