/* Hallmark · genre: modern-minimal · macrostructure: Workbench · design-system: design.md · designed-as-app
 * theme: Quiet · tone: native-utilitarian · anchor hue: green · enrichment: none
 * navigation: persistent mobile tab bar · contrast: pass (46–50)
 * pre-emit critique: P5 H5 E5 S5 R5 V5
 */
@import "tailwindcss";
@import "./tokens.css";

@custom-variant dark (&:is(.dark *));

@layer base {
	* {
		border-color: var(--border);
		outline-color: color-mix(in oklch, var(--ring), transparent 50%);
	}

	html,
	body {
		margin: 0;
		min-height: 100%;
		overflow-x: clip;
		background: var(--background);
		color: var(--foreground);
		font-family: var(--font-sans);
		-webkit-font-smoothing: antialiased;
		text-rendering: optimizeLegibility;
	}

	body {
		background: var(--background);
	}

	h1,
	h2,
	h3,
	h4,
	h5 {
		min-width: 0;
		font-family: var(--font-display);
		letter-spacing: -0.02em;
		overflow-wrap: anywhere;
	}

	:focus {
		outline: none;
	}

	:focus-visible {
		outline: 2px solid var(--ring);
		outline-offset: 2px;
	}

	::selection {
		background: var(--accent);
		color: var(--accent-foreground);
	}
}

[data-slot="scroll-area-viewport"] {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

[data-slot="scroll-area-viewport"]::-webkit-scrollbar {
	display: none;
}

.app-chrome-row {
	height: calc(2.75rem + var(--safe-area-top));
	padding-top: var(--safe-area-top);
}

.calendar-chrome-row {
	height: calc(5.5rem + var(--safe-area-top));
}

@media (min-width: 40rem) {
	.calendar-chrome-row {
		height: calc(2.75rem + var(--safe-area-top));
	}
}

.mobile-tab-bar {
	z-index: 40;
	display: grid;
	min-height: calc(var(--mobile-tab-bar-height) + var(--safe-area-bottom));
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding-right: var(--safe-area-right);
	padding-bottom: var(--safe-area-bottom);
	padding-left: var(--safe-area-left);
	border-top: 1px solid var(--border);
	background: var(--background);
	color: var(--foreground);
}

@media (min-width: 48rem) {
	.mobile-tab-bar {
		display: none;
	}
}

.mobile-tab {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: var(--mobile-tab-bar-height);
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 0.125rem;
	color: var(--muted-foreground);
	text-decoration: none;
	transition:
		background-color var(--dur-fast) var(--ease-out),
		color var(--dur-fast) var(--ease-out),
		transform var(--dur-fast) var(--ease-out);
}

.mobile-tab::before {
	position: absolute;
	top: 0;
	left: 50%;
	width: 1.75rem;
	height: 2px;
	border-radius: 0 0 999px 999px;
	background: transparent;
	content: "";
	transform: translateX(-50%);
}

.mobile-tab:active {
	transform: translateY(1px);
}

.mobile-tab-active {
	color: var(--foreground);
}

.mobile-tab-active::before {
	background: var(--primary);
}

.mobile-tab-icon {
	display: flex;
	height: 1.5rem;
	align-items: center;
	justify-content: center;
}

.mobile-tab-label {
	max-width: 100%;
	overflow: hidden;
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pull-to-refresh {
	overscroll-behavior-y: contain;
}

.pull-to-refresh-indicator {
	opacity: 0.85;
	transform: translateY(calc(-100% + var(--pull-distance)));
	transition:
		opacity var(--dur-fast) var(--ease-out),
		transform var(--dur-fast) var(--ease-out);
}

.pull-to-refresh[aria-busy="true"] .pull-to-refresh-indicator {
	opacity: 1;
	transform: translateY(0);
}

.pull-refresh-keyboard-action {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 35;
	min-height: var(--touch-target-min);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--card);
	color: var(--foreground);
	padding: 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-0.5rem);
}

.pull-refresh-keyboard-action:focus-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
	.mobile-tab:hover {
		background: var(--muted);
		color: var(--foreground);
	}
}

.app-input {
	min-height: 2.25rem;
	width: 100%;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--card);
	color: var(--foreground);
	padding: 0 0.75rem;
	font-size: 0.875rem;
	outline: none;
	transition:
		border-color 150ms ease,
		box-shadow 150ms ease,
		background-color 150ms ease;
}

.app-input::placeholder {
	color: var(--muted-foreground);
}

.app-input:focus-visible {
	border-color: var(--ring);
	box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring), transparent 82%);
}

/*
 * iOS Safari zooms the viewport when an editable control has text smaller
 * than 16px. Keep every native or rich-text editing surface at that minimum
 * on touch-first devices; larger viewports retain their compact desktop type.
 * This unlayered rule deliberately overrides Tailwind's layered text utilities.
 */
@media (hover: none) and (pointer: coarse) {
	.touch-target {
		min-height: var(--touch-target-min);
	}

	.touch-target-square {
		min-width: var(--touch-target-min);
		min-height: var(--touch-target-min);
	}
}

@media (hover: none) and (pointer: coarse) {
	input,
	textarea,
	select,
	[contenteditable]:not([contenteditable="false"]),
	.app-input {
		font-size: 1rem;
	}
}

.command-row {
	color: var(--foreground);
	transition:
		background-color 120ms ease,
		color 120ms ease;
}

.command-row:hover,
.command-row:focus-visible {
	background: var(--muted);
}

.kbd {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.375rem;
	padding: 0.125rem 0.375rem;
	border: 1px solid var(--border);
	border-radius: calc(var(--radius-sm));
	background: var(--muted);
	color: var(--muted-foreground);
	font-family: var(--font-mono);
	font-size: 0.625rem;
	font-weight: 500;
	line-height: 1.2;
	text-transform: lowercase;
}

.mail-search-control {
	min-height: 2.75rem;
	background: var(--background);
	color: var(--foreground);
	outline: 2px solid transparent;
	outline-offset: -2px;
	transition: background-color var(--dur-fast) var(--ease-out);
}

.mail-header::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10;
	height: 1px;
	pointer-events: none;
	background: var(--border);
	content: "";
}

.mail-search-control:focus-within {
	background: var(--card);
	outline-color: var(--event-teal);
}

.mail-search-control[data-state="error"] {
	box-shadow: inset 0 -2px 0 var(--destructive);
}

.mail-search-control[data-state="success"] {
	box-shadow: inset 0 -1px 0 color-mix(in oklch, var(--primary), transparent 35%);
}

.mail-search-icon-button {
	display: inline-flex;
	height: 2.75rem;
	width: 2.75rem;
	flex: none;
	align-items: center;
	justify-content: center;
	color: var(--muted-foreground);
	outline: 2px solid transparent;
	outline-offset: -3px;
	transition:
		background-color var(--dur-fast) var(--ease-out),
		color var(--dur-fast) var(--ease-out),
		transform var(--dur-fast) var(--ease-out);
}

.mail-search-icon-button:focus-visible {
	color: var(--foreground);
	outline-color: var(--event-teal);
}

.mail-search-icon-button:active {
	background: var(--muted);
	color: var(--foreground);
	transform: translateY(1px);
}

.mail-search-icon-button[aria-pressed="true"] {
	background: var(--muted);
	color: var(--foreground);
}

.mail-search-icon-button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.mail-search-submit {
	display: inline-flex;
	min-height: 2.75rem;
	width: 2.75rem;
	flex: none;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: var(--muted-foreground);
	padding: 0;
	font-size: 0.75rem;
	font-weight: 600;
	outline: 2px solid transparent;
	outline-offset: -3px;
	transition:
		background-color var(--dur-fast) var(--ease-out),
		color var(--dur-fast) var(--ease-out),
		transform var(--dur-fast) var(--ease-out),
		opacity var(--dur-fast) var(--ease-out);
}

.mail-search-submit:focus-visible {
	color: var(--foreground);
	outline-color: var(--event-teal);
}

.mail-search-submit:active {
	transform: translateY(1px);
}

.mail-search-submit:disabled {
	cursor: wait;
	opacity: 0.55;
}

.mail-search-submit[data-state="error"] {
	background: transparent;
	color: var(--destructive);
}

.mail-search-submit[data-state="success"] {
	background: transparent;
	color: var(--event-teal);
}

.mail-search-field:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.mail-search-control:has(.mail-search-field:disabled) {
	background: var(--muted);
	color: var(--muted-foreground);
}

.mail-search-panel {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0.375rem;
	left: 0.375rem;
	z-index: 60;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--popover);
	color: var(--popover-foreground);
	box-shadow:
		0 1px 2px color-mix(in oklch, var(--foreground), transparent 94%),
		0 12px 36px color-mix(in oklch, var(--foreground), transparent 88%);
	animation: mail-search-panel-in var(--dur-fast) var(--ease-out);
}

.mail-search-panel-heading {
	display: flex;
	min-height: 2.25rem;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	border-bottom: 1px solid var(--border);
	padding: 0.5rem 0.75rem;
	font-size: 0.6875rem;
	font-weight: 600;
}

.mail-search-option {
	display: flex;
	min-height: 2.75rem;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	outline: none;
	transition: background-color var(--dur-fast) var(--ease-out);
}

.mail-search-option > span {
	min-width: 0;
	white-space: nowrap;
}

.mail-search-option > span:last-child {
	overflow: hidden;
	flex: 1;
	text-align: right;
	text-overflow: ellipsis;
}

.mail-search-option.is-active,
.mail-search-option[aria-selected="true"] {
	background: var(--muted);
	color: var(--foreground);
}

.mail-search-panel-footer {
	display: flex;
	min-height: 2.25rem;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	border-top: 1px solid var(--border);
	padding: 0.5rem 0.75rem;
	color: var(--muted-foreground);
	font-size: 0.6875rem;
}

.mail-search-panel-footer code {
	border-radius: var(--radius-sm);
	background: var(--muted);
	color: var(--foreground);
	padding: 0.0625rem 0.25rem;
	font-family: var(--font-mono);
	font-size: 0.625rem;
}

.mail-search-error {
	min-height: 2.75rem;
	border-left: 3px solid var(--destructive);
	background: color-mix(in oklch, var(--destructive), transparent 92%);
	color: var(--foreground);
	padding: 0.75rem;
	font-size: 0.75rem;
	line-height: 1.4;
}

@media (hover: hover) {
	.mail-search-control:hover {
		background: var(--muted);
	}

	.mail-search-control:focus-within {
		background: var(--card);
	}

	.mail-search-icon-button:hover {
		background: var(--muted);
		color: var(--foreground);
	}

	.mail-search-submit:hover:not(:disabled) {
		background: var(--muted);
		color: var(--foreground);
	}

	.mail-search-submit[data-state="error"]:hover:not(:disabled) {
		background: color-mix(in oklch, var(--destructive), transparent 90%);
		color: var(--destructive);
	}

	.mail-search-submit[data-state="success"]:hover:not(:disabled) {
		background: var(--muted);
		color: var(--event-teal);
	}

	.mail-search-option:hover {
		background: var(--muted);
		color: var(--foreground);
	}
}

@keyframes mail-search-panel-in {
	from {
		opacity: 0;
		transform: translateY(-0.25rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fab {
	position: fixed;
	right: 1rem;
	bottom: calc(var(--mobile-tab-bar-height) + var(--safe-area-bottom) + 0.75rem);
	z-index: 40;
	display: flex;
	height: 2.75rem;
	width: 2.75rem;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--foreground);
	color: var(--background);
	transition:
		background-color var(--dur-fast) var(--ease-out),
		transform var(--dur-fast) var(--ease-out);
}

.fab:hover {
	background: color-mix(in oklch, var(--foreground), transparent 12%);
}

.fab:active {
	background: color-mix(in oklch, var(--foreground), transparent 20%);
	transform: translateY(1px);
}

.row-selected {
	background: var(--muted);
	color: var(--foreground);
}

.nav-item-active {
	background: var(--muted);
	color: var(--foreground);
	font-weight: 500;
	box-shadow: inset 1px 0 0 color-mix(in oklch, var(--foreground), transparent 80%);
}

.mobile-nav-item-active {
	box-shadow: none;
}

.app-rail-org-mark {
	display: flex;
	height: 1.75rem;
	width: 1.75rem;
	padding: 1px;
	border-radius: 0.5rem;
	background: linear-gradient(
		145deg,
		color-mix(in oklch, var(--foreground), transparent 55%),
		color-mix(in oklch, var(--accent-foreground), transparent 70%)
	);
	box-shadow: 0 1px 2px color-mix(in oklch, var(--background), transparent 40%);
	transition:
		transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 160ms ease;
}

.group:hover .app-rail-org-mark {
	transform: scale(1.04);
	box-shadow: 0 2px 8px color-mix(in oklch, var(--foreground), transparent 88%);
}

.app-rail-org-mark-inner {
	display: flex;
	height: 100%;
	width: 100%;
	align-items: center;
	justify-content: center;
	border-radius: calc(0.5rem - 1px);
	background: var(--card);
}

.app-rail-org-initials {
	font-family: var(--font-display);
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1;
	color: var(--foreground);
	letter-spacing: -0.03em;
}

.app-rail-item {
	position: relative;
	display: flex;
	height: 2.25rem;
	width: 2.25rem;
	align-items: center;
	justify-content: center;
	border-radius: 0.5rem;
	color: var(--muted-foreground);
	transition:
		background-color 140ms ease,
		color 140ms ease,
		transform 140ms cubic-bezier(0.16, 1, 0.3, 1);
}

.app-rail-item:hover {
	background: color-mix(in oklch, var(--muted), transparent 35%);
	color: var(--foreground);
}

.app-rail-item:active {
	transform: scale(0.96);
}

.app-rail-item-active {
	background: color-mix(in oklch, var(--foreground), transparent 91%);
	color: var(--foreground);
}

.app-rail-item-active:hover {
	background: color-mix(in oklch, var(--foreground), transparent 87%);
}

.app-rail-item-indicator {
	position: absolute;
	left: -0.5rem;
	top: 50%;
	width: 2px;
	height: 0.875rem;
	border-radius: 9999px;
	background: var(--foreground);
	transform: translateY(-50%);
}

.app-rail-item-utility {
	opacity: 0.82;
}

.app-rail-item-utility:hover {
	opacity: 1;
}

.app-rail-divider {
	height: 1px;
	width: 1.25rem;
	margin: 0.25rem 0 0.375rem;
	background: var(--border);
}

.app-rail-account {
	display: flex;
	height: 1.625rem;
	width: 1.625rem;
	padding: 1px;
	border-radius: 9999px;
	background: color-mix(in oklch, var(--border), transparent 20%);
	transition: transform 140ms cubic-bezier(0.16, 1, 0.3, 1);
}

.app-rail-account:hover {
	transform: scale(1.06);
}

.app-rail-account-inner {
	display: flex;
	height: 100%;
	width: 100%;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	background: var(--muted);
}

.app-rail-account-initials {
	font-size: 0.5625rem;
	font-weight: 600;
	line-height: 1;
	color: var(--foreground);
	letter-spacing: -0.02em;
}

.thread-row {
	position: relative;
	transition:
		background-color 120ms ease,
		box-shadow 120ms ease;
}

.thread-row:hover {
	background: color-mix(in oklch, var(--muted), transparent 35%);
}

.thread-row[data-active="true"],
.thread-row:has([data-active="true"]) {
	background: var(--muted);
	box-shadow: inset 1px 0 0 color-mix(in oklch, var(--foreground), transparent 80%);
}

.thread-row[data-active="true"]:hover,
.thread-row:has([data-active="true"]):hover {
	background: var(--muted);
}

.thread-row[data-nav-cursor="true"]:not([data-active="true"]):not(:has([data-active="true"])),
.thread-row:has([data-nav-cursor="true"]):not([data-active="true"]):not(:has([data-active="true"])) {
	background: color-mix(in oklch, var(--muted), transparent 20%);
	box-shadow: inset 2px 0 0 var(--ring);
}

.thread-row[data-unread="true"]:not([data-active="true"]):not(:has([data-active="true"]))::before,
.thread-row:has([data-unread="true"]):not([data-active="true"]):not(:has([data-active="true"]))::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 3rem;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	transform: translateY(-50%);
	background: color-mix(in oklch, var(--foreground), transparent 25%);
}

.label-badge {
	display: inline-flex;
	align-items: center;
	border-radius: 9999px;
	font-size: 0.625rem;
	font-weight: 500;
	line-height: 1.2;
	padding: 0.125rem 0.5rem;
}

.event-chip {
	background-color: color-mix(in oklch, currentColor 10%, var(--background));
	border-radius: var(--radius-sm);
}

.command-palette {
	animation: palette-in 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet-backdrop {
	animation: fade-in 140ms ease;
}

.dialog-overlay[data-state="open"] {
	animation: fade-in var(--dur-medium) var(--ease-out);
}

.dialog-content[data-presentation="bottom-sheet"][data-state="open"] {
	animation: bottom-sheet-in var(--dur-medium) var(--ease-out);
}

.dialog-content[data-presentation="side"][data-side="left"][data-state="open"] {
	animation: side-sheet-left-in var(--dur-medium) var(--ease-out);
}

.dialog-content[data-presentation="side"][data-side="right"][data-state="open"] {
	animation: side-sheet-right-in var(--dur-medium) var(--ease-out);
}

.event-composer-panel {
	inset: 0;
	height: 100dvh;
	max-height: 100dvh;
	width: 100%;
	max-width: none;
	border-radius: 0;
}

.compose-panel {
	inset: 0;
	height: 100dvh;
	max-height: 100dvh;
	width: 100%;
	max-width: none;
	border-radius: 0;
}

.compose-panel[data-minimized="true"] {
	top: auto;
	bottom: calc(var(--mobile-tab-bar-height) + var(--safe-area-bottom));
	height: 2.75rem;
	max-height: 2.75rem;
}

@media (min-width: 640px) {
	.compose-panel {
		inset: auto 1rem 0 auto;
		width: min(30rem, calc(100vw - 2rem));
		max-height: calc(100dvh - 1rem);
		border-radius: var(--radius-xl) var(--radius-xl) 0 0;
	}

	.compose-panel[data-minimized="false"] {
		height: min(32rem, calc(100dvh - 1rem));
	}

	.compose-panel[data-minimized="true"] {
		bottom: 0;
		height: 2.75rem;
		max-height: 2.75rem;
	}
}

@media (min-width: 640px) {
	.event-composer-panel {
		inset: auto;
		left: var(--event-composer-left);
		top: var(--event-composer-top);
		height: auto;
		max-height: var(--event-composer-max-height);
		width: 28rem;
		max-width: calc(100vw - 1rem);
		border-radius: var(--radius-xl);
	}
}

.navigation-progress {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: 0.1875rem;
	overflow: hidden;
	pointer-events: none;
	background: color-mix(in oklch, var(--color-primary), transparent 82%);
}

.navigation-progress-bar {
	height: 100%;
	width: 40%;
	background: var(--color-primary);
	box-shadow: 0 0 0.5rem color-mix(in oklch, var(--color-primary), transparent 35%);
	animation: navigation-progress 900ms ease-in-out infinite;
}

@keyframes palette-in {
	from {
		opacity: 0;
		transform: translateY(-8px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* The sign-in domain lockup is the one animated element on that screen: a
   single restrained load-in. The global reduced-motion rule below neutralises
   it for anyone who asks for less motion. */
.sign-in-lockup {
	animation: sign-in-lockup 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes sign-in-lockup {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes bottom-sheet-in {
	from {
		opacity: 0;
		transform: translateY(1.5rem);
	}
}

@keyframes side-sheet-left-in {
	from {
		opacity: 0;
		transform: translateX(-1.5rem);
	}
}

@keyframes side-sheet-right-in {
	from {
		opacity: 0;
		transform: translateX(1.5rem);
	}
}

@keyframes navigation-progress {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(250%);
	}
}

.event-dialog-field:focus-visible,
.compose-field:focus-visible,
.mail-search-field:focus-visible {
	outline: none;
}

/* The compose live-markdown surface. Tailwind's reset strips list, heading
   and quote styling, so the editor restores just enough to render its own
   block types legibly. Raw (active) lines show markdown source verbatim. */
.markdown-editor > :first-child {
	margin-top: 0;
}
.markdown-editor p {
	margin: 0 0 0.5rem;
}
.markdown-editor .md-raw {
	white-space: pre-wrap;
}
/* Markdown syntax on the active line: visible but visually receding, so the
   content formatting (bold, heading size, links) stays the star. */
.markdown-editor .md-syn {
	color: var(--color-muted-foreground);
	opacity: 0.75;
}
.markdown-editor .md-link {
	color: var(--color-primary);
	text-decoration: underline;
}
.markdown-editor h1,
.markdown-editor h2,
.markdown-editor h3 {
	margin: 0.5rem 0;
	font-weight: 600;
	line-height: 1.3;
}
.markdown-editor h1 {
	font-size: 1.375rem;
}
.markdown-editor h2 {
	font-size: 1.125rem;
}
.markdown-editor h3 {
	font-size: 1rem;
}
.markdown-editor ul,
.markdown-editor ol {
	margin: 0 0 0.5rem;
	padding-left: 1.5rem;
}
.markdown-editor ul {
	list-style: disc;
}
.markdown-editor ol {
	list-style: decimal;
}
.markdown-editor li {
	margin: 0.125rem 0;
}
.markdown-editor blockquote {
	margin: 0 0 0.5rem;
	border-left: 3px solid var(--color-border);
	padding-left: 0.75rem;
	color: var(--color-muted-foreground);
}
.markdown-editor a {
	color: var(--color-primary);
	text-decoration: underline;
}
.markdown-editor code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.8125rem;
	background: var(--color-muted);
	border-radius: 0.25rem;
	padding: 0.0625rem 0.25rem;
}

/* Sub-16px text at the caret inside an editable surface can still trigger
   the iOS focus zoom, so inline code follows the same touch-device minimum
   as the editable-surface rule above. Placed after the base rule so it wins
   the cascade at equal specificity. */
@media (hover: none) and (pointer: coarse) {
	.markdown-editor code {
		font-size: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.navigation-progress-bar {
		width: 100%;
		animation: none;
	}

	*,
	*::before,
	*::after {
		animation-duration: 1ms;
		animation-iteration-count: 1;
		scroll-behavior: auto;
		transition-duration: 1ms;
	}
}

@media (min-width: 768px) {
	.fab {
		display: none;
	}
}
