:root {
	color-scheme: light dark;
	--bg: #fafafa;
	--surface: #ffffff;
	--text: #18181b;
	--text-muted: #71717a;
	--border: #e4e4e7;
	--border-hover: #a1a1aa;
	--accent: #18181b;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #101012;
		--surface: #17171a;
		--text: #f4f4f5;
		--text-muted: #8b8b93;
		--border: #26262b;
		--border-hover: #52525b;
		--accent: #f4f4f5;
	}
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.5;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	padding: 48px 24px 40px;
}

.page {
	width: 100%;
	max-width: 640px;
}

.header {
	margin-bottom: 40px;
}

.header h1 {
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.subtitle {
	font-size: 14px;
	color: var(--text-muted);
	margin-top: 2px;
}

.section-label {
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-muted);
	margin-bottom: 12px;
}

section {
	margin-bottom: 36px;
}

.grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.card:hover {
	border-color: var(--border-hover);
}

.card-icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--border);
	border-radius: 9px;
	color: var(--accent);
}

.card-icon svg {
	width: 18px;
	height: 18px;
}

.card-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.card-title {
	font-size: 15px;
	font-weight: 550;
}

.card-desc {
	font-size: 13px;
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.card-host {
	font-size: 11.5px;
	color: var(--text-muted);
	opacity: 0.75;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.card-chevron {
	margin-left: auto;
	color: var(--text-muted);
	font-size: 15px;
	flex: none;
}

.services {
	list-style: none;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	overflow: hidden;
}

.services li + li {
	border-top: 1px solid var(--border);
}

.row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 18px;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.15s ease;
}

.row:hover {
	background: color-mix(in srgb, var(--text) 4%, transparent);
}

.row-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.row-title {
	font-size: 14.5px;
	font-weight: 500;
}

.row-desc {
	font-size: 12.5px;
	color: var(--text-muted);
}

.row-host {
	margin-left: auto;
	font-size: 12px;
	color: var(--text-muted);
	white-space: nowrap;
}

.footer {
	margin-top: 8px;
	text-align: center;
}

.footer p {
	font-size: 12px;
	color: var(--text-muted);
	opacity: 0.7;
}

a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 12px;
}

@media (max-width: 560px) {
	body {
		padding: 32px 16px 32px;
	}

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

	.row-host {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
