.u-badge,
.u-delta {
	display: inline-flex;
	flex: none;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border: 1px solid color-mix(in srgb, var(--tone) 32%, transparent);
	border-radius: var(--radius-control);
	background: color-mix(in srgb, var(--tone) 12%, transparent);
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--tone-text);
	white-space: nowrap;
}
.u-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 32px;
	padding: 0 12px;
	border: 1px solid transparent;
	border-radius: var(--radius-input);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition-property: background-color, border-color, color;
	transition-duration: var(--motion-instant);
	transition-timing-function: var(--ease-standard);
}
.u-btn.u-md {
	height: 36px;
	padding: 0 14px;
}
.u-btn.u-lg {
	height: 40px;
	padding: 0 16px;
}
.u-btn-solid {
	background: var(--product);
	color: var(--product-on);
}
.u-btn-solid:hover {
	background: var(--product-hover);
}
.u-btn-solid:active {
	background: var(--product-active);
}
.u-btn-outline {
	border-color: var(--sep);
	background: var(--card);
}
.u-btn-outline:hover {
	border-color: var(--input);
	background: var(--hover);
}
.u-btn-ghost {
	color: var(--text2);
}
.u-btn-ghost:hover {
	background: var(--hover);
	color: var(--text);
}
.u-btn.u-icon {
	width: 32px;
	padding: 0;
	border-radius: var(--radius-pill);
}
.u-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}
.u-spin {
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: u-spin var(--motion-hero) linear infinite;
}
@keyframes u-spin {
	to {
		transform: rotate(1turn);
	}
}
.u-crumb ol {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--text2);
}
.u-crumb li {
	display: flex;
	gap: 6px;
	white-space: nowrap;
}
.u-crumb li + li::before {
	content: "›";
}
.u-crumb a:hover,
.u-crumb [aria-current="page"] {
	color: var(--text);
}
.u-dialog {
	width: min(640px, calc(100vw - 32px));
	max-height: calc(100dvh - 64px);
	margin: 15vh auto auto;
	border: 1px solid var(--sep);
	border-radius: var(--radius-card);
	background: var(--raised);
	color: var(--text);
	box-shadow: var(--shadow-pop);
}
.u-dialog::backdrop {
	background: var(--scrim);
}
.u-dialog-h {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 8px 0 16px;
}
.u-dialog-t {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text2);
}
.u-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.u-field-row {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 2px 8px;
}
.u-field-row > input {
	grid-area: 1 / 1;
}
.u-field-row > .u-label {
	grid-area: 1 / 2;
}
.u-field-row > .u-hint {
	grid-area: 2 / 2;
}
.u-input {
	width: 100%;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--input);
	border-radius: var(--radius-input);
	background: var(--page);
}
.u-input::placeholder {
	color: var(--text3);
}
.u-input:focus-visible {
	border-color: var(--ring);
}
.u-textarea {
	height: auto;
	padding: 8px 12px;
	resize: vertical;
}
.u-switch,
.u-check {
	width: 16px;
	height: 16px;
	accent-color: var(--product);
}
.u-hint {
	font-size: 12px;
	color: var(--text2);
}
.u-table-wrap {
	min-width: 0;
}
.u-table {
	width: 100%;
}
.u-table thead {
	position: sticky;
	top: calc(var(--topbar) + 1px);
	z-index: 1;
	background: var(--card);
}
.u-table th {
	height: 40px;
	padding: 0 12px;
	border-bottom: 1px solid var(--sep);
	font-weight: 400;
	text-align: start;
	color: var(--text2);
	white-space: nowrap;
}
.u-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--sep);
	vertical-align: middle;
}
.u-table td :is(.u-status, .u-badge, time) {
	white-space: nowrap;
}
.u-table tbody tr:last-child td {
	border-bottom: 0;
}
.u-table tbody tr:hover td,
.u-table tr[aria-selected="true"] td {
	background: var(--hover);
}
.u-table .u-end {
	text-align: end;
	font-variant-numeric: tabular-nums;
}
.u-table th[aria-sort] {
	color: var(--text);
}
.u-sort:hover {
	color: var(--text);
}
.u-table th[aria-sort="descending"] .u-sort::after {
	content: " ↓";
}
.u-table th[aria-sort="ascending"] .u-sort::after {
	content: " ↑";
}
.u-table-empty {
	padding: 32px 24px;
	text-align: center;
	color: var(--text2);
}
.u-grid-sel {
	width: 36px;
}
.u-grid-g th {
	font-size: 12px;
	font-weight: 600;
	color: var(--text2);
}
.u-grid-bar,
.u-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 0 0 12px;
}
.u-grid-bar .u-input {
	width: auto;
	flex: 0 1 240px;
	height: 32px;
}
.u-grid-filters {
	position: relative;
}
.u-grid-filters > summary {
	list-style: none;
}
.u-grid-filters .u-popover {
	position: absolute;
	z-index: 30;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
	padding: 12px;
}
.u-pager {
	padding: 12px 0 0;
}
.u-pager-size {
	margin-left: auto;
	color: var(--text2);
}
.u-pager-size a[aria-current] {
	color: var(--text);
	font-weight: 600;
}
.u-cbar {
	display: block;
	width: 100%;
	height: 6px;
	border: 0;
	border-radius: var(--radius-pill);
	overflow: hidden;
	appearance: none;
	background: var(--fill);
}
.u-cbar::-webkit-progress-bar {
	background: var(--fill);
}
.u-cbar::-webkit-progress-value {
	background: var(--product);
}
.u-cbar::-moz-progress-bar {
	background: var(--product);
}
@container (max-width: 1059px) {
	.u-table .u-o1 {
		display: none;
	}
}
@container (max-width: 719px) {
	.u-table .u-o2 {
		display: none;
	}
	.u-table-wrap {
		overflow-x: auto;
	}
	.u-grid-bar {
		position: relative;
	}
	.u-grid-filters {
		position: static;
	}
	.u-grid-filters .u-popover {
		left: 0;
		right: 0;
	}
}
.u-grid-cols label {
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}
.u-ic {
	width: 16px;
	height: 16px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.u-kbd {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border: 1px solid var(--sep);
	border-radius: 5px;
	background: var(--page);
	font: 400 12px / 1 var(--mono);
	color: var(--text2);
}
.u-popover {
	min-width: 200px;
	padding: 4px;
	border: 1px solid var(--sep);
	border-radius: var(--radius-card);
	background: var(--raised);
	color: var(--text);
	box-shadow: var(--shadow-pop);
}
@supports (position-area: bottom) {
	[popover].u-popover {
		inset: auto;
		margin: 4px 0 0;
		position-area: bottom span-right;
	}
}
.u-menu a {
	display: block;
	padding: 8px 10px;
	border-radius: var(--radius-control);
}
.u-menu a:hover,
.u-menu a:focus-visible {
	background: var(--hover);
}
