*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	height: 100%;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	background: var(--bg);
}
body {
	margin: 0;
	height: 100%;
	overflow: hidden;
	background: var(--bg);
	color: var(--text);
	font: var(--text-body) / var(--leading-body) var(--font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
	overscroll-behavior: none;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
	margin: 0;
}
button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}
button {
	cursor: pointer;
	border: 0;
	background: none;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}
button:disabled {
	cursor: default;
}
a {
	color: var(--accent);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
img {
	max-width: 100%;
}
:focus {
	outline: none;
}
/* A sheet or an alert holds the focus itself when it opens (ui/sheet.js): never ringed. */
dialog:focus,
dialog:focus-visible {
	outline: none;
}
:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--system-blue) 70%, transparent);
	outline: 3px solid var(--system-blue);
	outline-offset: 2px;
	border-radius: 8px;
}
.icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.icon .icon-fill {
	fill: currentColor;
	stroke: none;
}
[hidden] {
	display: none !important;
}
.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: fixed;
	top: calc(8px + var(--safe-top));
	left: 8px;
	z-index: 100;
	padding: 10px 14px;
	border-radius: 12px;
	background: var(--card);
	color: var(--accent);
	transform: translateY(-200%);
}
.skip-link:focus-visible {
	transform: none;
}
::selection {
	background: color-mix(in srgb, var(--system-blue) 30%, transparent);
}
.mono {
	font-family: var(--font-mono);
	font-variant-ligatures: none;
}
.muted {
	color: var(--muted);
}
.tabular {
	font-variant-numeric: tabular-nums;
}

/* Thin, quiet scrollbars on pointer devices. */
@media (hover: hover) and (pointer: fine) {
	* {
		scrollbar-width: thin;
		scrollbar-color: var(--soft-strong) transparent;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 1ms !important;
		scroll-behavior: auto !important;
	}
}
