:root {
	--xc-dock-h: 64px;
	--xc-dock-bottom: max(12px, calc(env(safe-area-inset-bottom) - 4px));
	--xc-dock-space: calc(var(--xc-dock-h) + var(--xc-dock-bottom) + 28px);
	--xc-material: color-mix(in srgb, var(--xc-surface) 88%, transparent);
	--xc-material-ring: rgba(24, 24, 27, .09);
	--xc-material-hi: rgba(255, 255, 255, .7);
	--xc-material-shadow: 0 1px 2px rgba(24, 24, 27, .06), 0 14px 34px -12px rgba(24, 24, 27, .3);
	--xc-under: #1c1a16;
	--xc-sheet-shadow: 0 -1px 0 rgba(24, 24, 27, .06), 0 -24px 60px -24px rgba(24, 24, 27, .4);
	--xc-lens-ease: linear(0, 0.0745 4.2%, 0.2316 8.3%, 0.4112 12.5%, 0.5792 16.7%, 0.7197 20.8%, 0.828 25%, 0.9058 29.2%, 0.958 33.3%, 0.9902 37.5%, 1.008 41.7%, 1.0162 45.8%, 1.0183 50%, 1.017 54.2%, 1.0142 58.3%, 1.0109 62.5%, 1.0078 66.7%, 1.0052 70.8%, 1.0032 75%, 1.0018 79.2%, 1.0008 83.3%, 1.0002 87.5%, 1);
}

:root[data-theme="dark"] {
	--xc-material: color-mix(in srgb, var(--xc-surface-2) 93%, transparent);
	--xc-material-ring: rgba(255, 255, 255, .09);
	--xc-material-hi: rgba(255, 255, 255, .07);
	--xc-material-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 40px -12px rgba(0, 0, 0, .85);
	--xc-under: #000;
	--xc-sheet-shadow: 0 -1px 0 rgba(255, 255, 255, .06), 0 -24px 60px -24px rgba(0, 0, 0, .9);
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="system"] {
		--xc-material: color-mix(in srgb, var(--xc-surface-2) 93%, transparent);
		--xc-material-ring: rgba(255, 255, 255, .09);
		--xc-material-hi: rgba(255, 255, 255, .07);
		--xc-material-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 40px -12px rgba(0, 0, 0, .85);
		--xc-under: #000;
		--xc-sheet-shadow: 0 -1px 0 rgba(255, 255, 255, .06), 0 -24px 60px -24px rgba(0, 0, 0, .9);
	}
}

.xc-side__head,
.xc-nav__tile {
	display: contents;
}

.xc-side__close,
.xc-side__search,
.xc-side__grab,
.xc-side__appearance,
.xc-seg,
.xc-top__brand,
.xc-tabbar__lens,
.xc-tabbar__badge {
	display: none;
}

@media (max-width: 960px) {
	html {
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
		scroll-padding-bottom: var(--xc-dock-space);
	}

	body.xc {
		overscroll-behavior-y: none;
	}

	.xc .xc-input,
	.xc .xc-select,
	.xc .xc-textarea,
	.xc input[type="text"],
	.xc input[type="search"],
	.xc input[type="email"],
	.xc input[type="url"],
	.xc input[type="number"],
	.xc input[type="password"],
	.xc input[type="tel"],
	.xc select,
	.xc textarea {
		font-size: 16px;
	}

	.xc-content {
		padding-left: max(var(--xc-gutter), env(safe-area-inset-left));
		padding-right: max(var(--xc-gutter), env(safe-area-inset-right));
		padding-bottom: var(--xc-dock-space);
	}

	.xc-top {
		gap: 4px;
		height: calc(var(--xc-top-h) + env(safe-area-inset-top));
		padding: env(safe-area-inset-top) max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left));
		background: color-mix(in srgb, var(--xc-bg) 88%, transparent);
		-webkit-backdrop-filter: blur(20px) saturate(1.6);
		backdrop-filter: blur(20px) saturate(1.6);
	}

	.xc-iconbtn.xc-top__menu {
		display: none;
	}

	.xc-top__brand {
		display: inline-grid;
		place-items: center;
		flex: none;
		width: 44px;
		height: 44px;
		border-radius: 14px;
	}

	.xc-top__brand svg {
		width: 30px;
		height: 30px;
		filter: drop-shadow(0 4px 10px rgba(138, 98, 32, .28));
		transition: transform var(--xc-fast) var(--xc-ease);
	}

	.xc-top__brand:active svg {
		transform: scale(.9);
	}

	.xc-top .xc-crumbs {
		justify-content: flex-start;
		padding-left: 2px;
		font-size: 16px;
	}

	.xc-top .xc-crumbs > :not(.xc-crumbs__current) {
		display: none;
	}

	.xc-top .xc-crumbs__current {
		font-weight: 650;
		letter-spacing: -.015em;
		opacity: 0;
		transform: translate3d(0, 8px, 0);
		transition: opacity 180ms var(--xc-ease), transform 360ms var(--xc-ease-out);
	}

	.xc-top.is-condensed .xc-crumbs__current {
		opacity: 1;
		transform: none;
	}

	.xc-top .xc-iconbtn,
	.xc-top .xc-search {
		width: 44px;
		height: 44px;
		border-radius: 14px;
	}

	.xc-top .xc-iconbtn:active,
	.xc-top .xc-search:active {
		background: var(--xc-bg-tint);
	}

	.xc-top .xc-iconbtn__count {
		top: 5px;
		right: 4px;
	}

	.xc-tabbar {
		position: fixed;
		top: auto;
		left: max(12px, env(safe-area-inset-left));
		right: max(12px, env(safe-area-inset-right));
		bottom: var(--xc-dock-bottom);
		z-index: 60;
		display: grid;
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		gap: 2px;
		max-width: 560px;
		height: var(--xc-dock-h);
		margin: 0 auto;
		padding: 6px;
		border: 0;
		border-radius: 26px;
		background: var(--xc-material);
		-webkit-backdrop-filter: blur(24px) saturate(1.8);
		backdrop-filter: blur(24px) saturate(1.8);
		box-shadow: inset 0 0 0 .5px var(--xc-material-ring), inset 0 1px 0 var(--xc-material-hi), var(--xc-material-shadow);
		transform-origin: 50% 100%;
		transition: transform 420ms var(--xc-ease-out), opacity 200ms var(--xc-ease);
	}

	.xc-tabbar.is-compact {
		transform: translate3d(0, 6px, 0) scale(.94);
	}

	.xc-tabbar__item {
		position: relative;
		isolation: isolate;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		min-width: 0;
		height: 100%;
		padding: 0 2px;
		border: 0;
		border-radius: 20px;
		background: none;
		color: var(--xc-ink-3);
		font: inherit;
		font-size: var(--xc-t-xs);
		font-weight: 620;
		letter-spacing: .005em;
		line-height: 1;
		white-space: nowrap;
		cursor: pointer;
		-webkit-user-select: none;
		user-select: none;
	}

	.xc-tabbar__label {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		transition: opacity 200ms var(--xc-ease), transform 360ms var(--xc-ease-out);
	}

	.xc-tabbar.is-compact .xc-tabbar__label {
		opacity: 0;
		transform: translate3d(0, 4px, 0);
	}

	.xc-tabbar__item .xc-tabbar__duo,
	.xc-tabbar__item > .xc-icon {
		width: 24px;
		height: 24px;
		transition: transform 160ms var(--xc-ease);
	}

	.xc-tabbar.is-compact .xc-tabbar__duo,
	.xc-tabbar.is-compact .xc-tabbar__item > .xc-icon {
		transform: translate3d(0, 7px, 0);
	}

	.xc-tabbar__item:active .xc-tabbar__duo,
	.xc-tabbar__item:active > .xc-icon {
		transform: scale(.86);
	}

	.xc-tabbar__item[aria-current="page"],
	.xc-tabbar__item[aria-expanded="true"] {
		color: var(--xc-ink);
	}

	.xc-tabbar__lens {
		display: block;
		position: absolute;
		inset: 0;
		z-index: -1;
		border-radius: inherit;
		background: color-mix(in srgb, var(--xc-gold) 16%, var(--xc-surface));
		box-shadow: inset 0 0 0 1px var(--xc-gold-line), 0 6px 16px -10px rgba(138, 98, 32, .55);
		view-transition-name: xc-dock-lens;
	}

	.xc-tabbar__badge {
		display: grid;
		place-items: center;
		position: absolute;
		top: 3px;
		left: calc(50% + 7px);
		min-width: 18px;
		height: 18px;
		padding: 0 4.5px;
		border-radius: 9px;
		background: var(--xc-gold);
		color: var(--xc-on-gold);
		box-shadow: 0 0 0 2px var(--xc-surface);
		font-size: var(--xc-t-xs);
		font-weight: 700;
		font-variant-numeric: tabular-nums;
		line-height: 1;
	}

	.xc-tabbar__badge--red {
		background: var(--xc-red);
		color: var(--xc-on-red);
	}

	.xc-tabbar__menu-icon {
		width: 24px;
		height: 24px;
	}

	.xc-toasts {
		left: max(12px, env(safe-area-inset-left));
		right: max(12px, env(safe-area-inset-right));
		bottom: calc(var(--xc-dock-h) + var(--xc-dock-bottom) + 12px);
	}

	.xc-scrim {
		position: fixed;
		inset: 0;
		z-index: 85;
		display: block;
		background: rgba(8, 8, 10, .46);
		opacity: 0;
		pointer-events: none;
		touch-action: none;
		transition: none;
	}

	.xc-app.is-nav-open .xc-scrim {
		pointer-events: auto;
	}

	html.xc-sheet-lock,
	html.xc-sheet-lock body {
		overflow: hidden;
	}

	html.xc-sheet-lock body.xc {
		background: var(--xc-under);
	}

	.xc-main.is-pushed {
		background: var(--xc-bg);
		will-change: transform;
	}

	.xc-side {
		position: fixed;
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		display: flex;
		flex-direction: column;
		gap: 0;
		width: auto;
		max-width: 640px;
		height: min(calc(100dvh - 40px - env(safe-area-inset-top)), 900px);
		margin: 0 auto;
		padding: 0 0 calc(20px + env(safe-area-inset-bottom));
		border: 0;
		border-radius: 28px 28px 0 0;
		background: var(--xc-bg);
		box-shadow: var(--xc-sheet-shadow);
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: none;
		transform: translate3d(0, 105%, 0);
		visibility: hidden;
		transition: none;
		view-transition-name: none;
	}

	.xc-side::-webkit-scrollbar {
		display: none;
	}

	.xc-app.is-nav-open .xc-side,
	.xc-side.is-moving {
		visibility: visible;
	}

	.xc-app.is-nav-open .xc-side:not(.is-moving) {
		transform: none;
	}

	.xc-side__head {
		position: sticky;
		top: 0;
		z-index: 3;
		order: 0;
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 22px 14px 12px 18px;
		background: color-mix(in srgb, var(--xc-bg) 95%, transparent);
		-webkit-backdrop-filter: blur(16px) saturate(1.5);
		backdrop-filter: blur(16px) saturate(1.5);
		touch-action: none;
		cursor: grab;
	}

	.xc-side__grab {
		display: block;
		position: absolute;
		top: 8px;
		left: 50%;
		width: 38px;
		height: 5px;
		margin-left: -19px;
		border-radius: 3px;
		background: color-mix(in srgb, var(--xc-ink) 18%, transparent);
	}

	.xc-side.is-scrolled .xc-side__head {
		box-shadow: 0 1px 0 var(--xc-line);
	}

	.xc-side .xc-brand {
		flex: 1;
		min-width: 0;
		gap: 12px;
		padding: 0;
	}

	.xc-side .xc-brand__mark {
		width: 40px;
		height: 40px;
		filter: drop-shadow(0 6px 14px rgba(138, 98, 32, .3));
	}

	.xc-side .xc-brand__name {
		font-size: 19px;
		font-weight: 700;
		letter-spacing: -.025em;
	}

	.xc-side .xc-brand__sub {
		margin-top: 2px;
		font-size: 13px;
	}

	.xc-side__close {
		display: inline-grid;
		place-items: center;
		flex: none;
		width: 36px;
		height: 36px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: color-mix(in srgb, var(--xc-ink) 7%, transparent);
		color: var(--xc-ink-2);
		cursor: pointer;
	}

	.xc-side__close .xc-icon {
		width: 18px;
		height: 18px;
		stroke-width: 2.4;
	}

	.xc-side__close:active {
		transform: scale(.9);
		background: color-mix(in srgb, var(--xc-ink) 12%, transparent);
	}

	.xc-side__search {
		order: 1;
		display: flex;
		align-items: center;
		gap: 10px;
		height: 46px;
		margin: 6px 16px 14px;
		padding: 0 14px;
		border: 0;
		border-radius: 14px;
		background: color-mix(in srgb, var(--xc-ink) 6%, transparent);
		color: var(--xc-ink-3);
		font: inherit;
		font-size: 16px;
		text-align: left;
		cursor: pointer;
	}

	.xc-side__search .xc-icon {
		width: 19px;
		height: 19px;
	}

	.xc-side__search:active {
		background: color-mix(in srgb, var(--xc-ink) 10%, transparent);
	}

	.xc-side .xc-ws {
		order: 2;
		margin: 0 16px 22px;
	}

	.xc-side .xc-ws__button {
		gap: 12px;
		min-height: 64px;
		padding: 10px 14px;
		border: 0;
		border-radius: 18px;
		box-shadow: var(--xc-shadow-1);
	}

	.xc-side .xc-ws__button .xc-avatar {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.xc-side .xc-ws__name {
		font-size: 16px;
	}

	.xc-side .xc-ws__role {
		font-size: 13px;
	}

	.xc-side .xc-ws__menu {
		border-radius: 16px;
	}

	.xc-side .xc-ws__menu .xc-menu__item {
		min-height: 48px;
		font-size: 15px;
	}

	.xc-side .xc-nav {
		order: 3;
		flex: none;
		gap: 24px;
		padding: 0 16px;
	}

	.xc-side .xc-nav__group {
		gap: 0;
	}

	.xc-side .xc-nav__title {
		padding: 0 16px 8px;
		font-size: 12.5px;
		font-weight: 600;
		letter-spacing: .06em;
		color: var(--xc-ink-3);
	}

	.xc-side .xc-nav__link {
		gap: 14px;
		min-height: 54px;
		padding: 9px 14px 9px 12px;
		border-radius: 0;
		background: var(--xc-surface);
		color: var(--xc-ink);
		font-size: 16.5px;
		font-weight: 500;
		letter-spacing: -.01em;
		box-shadow: none;
		transition: background-color 90ms linear;
	}

	.xc-side .xc-nav__link + .xc-nav__link {
		background: linear-gradient(var(--xc-line), var(--xc-line)) 58px 0 / calc(100% - 58px) 1px no-repeat, var(--xc-surface);
	}

	.xc-side .xc-nav__title + .xc-nav__link {
		border-top-left-radius: 18px;
		border-top-right-radius: 18px;
	}

	.xc-side .xc-nav__link:last-child {
		border-bottom-left-radius: 18px;
		border-bottom-right-radius: 18px;
	}

	.xc-side .xc-nav__link::after {
		content: "";
		flex: none;
		width: 8px;
		height: 8px;
		margin: 0 4px 0 2px;
		border-top: 2px solid var(--xc-ink-4);
		border-right: 2px solid var(--xc-ink-4);
		border-radius: 1px;
		opacity: .55;
		transform: rotate(45deg);
	}

	.xc-side .xc-nav__link[aria-current="page"]::before {
		display: none;
	}

	.xc-side .xc-nav__link:active {
		background-color: var(--xc-bg-tint);
	}

	.xc-side .xc-nav__link[aria-current="page"] {
		background-color: color-mix(in srgb, var(--xc-gold) 11%, var(--xc-surface));
		font-weight: 620;
	}

	.xc-side .xc-nav__tile {
		display: grid;
		place-items: center;
		flex: none;
		width: 32px;
		height: 32px;
		border-radius: 9px;
		background: var(--xc-tile-bg);
		box-shadow: inset 0 0 0 1px var(--xc-tile-ring);
	}

	.xc-side .xc-nav__tile .xc-nav__duo {
		width: 18px;
		height: 18px;
		--xc-duo-1: var(--xc-gold-ink);
		--xc-duo-2: var(--xc-gold);
		--xc-duo-o: .5;
		transform: none;
	}

	.xc-side .xc-nav__link[aria-current="page"] .xc-nav__tile {
		background: var(--xc-key-bg);
		box-shadow: var(--xc-key-lift);
	}

	.xc-side .xc-nav__link[aria-current="page"] .xc-nav__tile .xc-nav__duo {
		--xc-duo-1: var(--xc-key-hi);
		--xc-duo-2: #3a2708;
		--xc-duo-o: .42;
	}

	.xc-side .xc-nav__badge {
		min-width: 24px;
		height: 24px;
		padding: 0 8px;
		border-radius: 12px;
		font-size: 13px;
		line-height: 24px;
	}

	.xc-side .xc-roomrow {
		order: 4;
		display: flex;
		align-items: center;
		gap: 14px;
		min-height: 54px;
		margin: 24px 16px 0;
		padding: 9px 16px;
		border: 0;
		border-radius: 18px;
		background: var(--xc-surface);
		box-shadow: none;
		color: var(--xc-ink);
		font-size: 16.5px;
		font-weight: 500;
	}

	.xc-side .xc-roomrow > .xc-icon:first-child {
		box-sizing: border-box;
		width: 32px;
		height: 32px;
		padding: 7px;
		border-radius: 9px;
		background: var(--xc-tile-bg);
		box-shadow: inset 0 0 0 1px var(--xc-tile-ring);
		color: var(--xc-gold-ink);
	}

	.xc-side .xc-roomrow__label {
		flex: 1;
	}

	.xc-side .xc-side__foot {
		order: 5;
		gap: 10px;
		margin: 24px 16px 0;
		padding: 0;
		border: 0;
	}

	.xc-side .xc-side__foot > .xc-nav__link {
		display: none;
	}

	.xc-side .xc-side__appearance {
		display: block;
	}

	.xc-seg {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2px;
		padding: 3px;
		border-radius: 14px;
		background: color-mix(in srgb, var(--xc-ink) 7%, transparent);
	}

	.xc-seg__label {
		padding: 0 16px 8px;
		font-size: 12.5px;
		font-weight: 600;
		letter-spacing: .06em;
		text-transform: uppercase;
		color: var(--xc-ink-3);
	}

	.xc-seg__button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 7px;
		height: 40px;
		padding: 0 8px;
		border: 0;
		border-radius: 11px;
		background: transparent;
		color: var(--xc-ink-2);
		font: inherit;
		font-size: 14.5px;
		font-weight: 560;
		cursor: pointer;
		transition: background-color 160ms var(--xc-ease), color 160ms var(--xc-ease), box-shadow 160ms var(--xc-ease);
	}

	.xc-seg__button .xc-icon {
		width: 16px;
		height: 16px;
	}

	.xc-seg__button[aria-pressed="true"] {
		background: var(--xc-surface);
		color: var(--xc-ink);
		box-shadow: 0 1px 2px rgba(24, 24, 27, .1), 0 3px 10px -4px rgba(24, 24, 27, .18);
	}

	.xc-seg__button[aria-pressed="true"] .xc-icon {
		color: var(--xc-gold-ink);
	}

	.xc-menu.xc-alerts-panel,
	#xc-user-menu {
		position: fixed !important;
		top: calc(var(--xc-top-h) + env(safe-area-inset-top) + 6px) !important;
		left: max(10px, env(safe-area-inset-left)) !important;
		right: max(10px, env(safe-area-inset-right)) !important;
		width: auto !important;
		max-height: calc(100dvh - var(--xc-top-h) - var(--xc-dock-space)) !important;
		border-radius: 20px;
		overflow-y: auto;
		overscroll-behavior: contain;
		animation: xc-pop-in 260ms var(--xc-ease-out);
	}

	#xc-user-menu .xc-menu__item {
		min-height: 48px;
		font-size: 15.5px;
	}

	@keyframes xc-pop-in {
		from { opacity: 0; transform: translate3d(0, -6px, 0) scale(.98); }
	}

	.xc-btn {
		touch-action: manipulation;
	}

	.xc-btn:active {
		transform: scale(.97);
	}
}

@media (max-width: 640px) {
	.xc-palette {
		width: 100vw;
		max-width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		margin: 0;
		border: 0;
		border-radius: 0;
		padding-top: env(safe-area-inset-top);
		padding-bottom: env(safe-area-inset-bottom);
	}

	.xc-palette {
		--xc-pal-in: translate3d(0, 100%, 0);
		--xc-pal-out: translate3d(0, 100%, 0);
		opacity: 1;
		transition: transform 220ms var(--xc-ease-in), overlay 220ms allow-discrete, display 220ms allow-discrete;
	}

	.xc-palette[open] {
		transition: transform var(--xc-spring-d) var(--xc-spring), overlay var(--xc-spring-d) allow-discrete, display var(--xc-spring-d) allow-discrete;
	}

	.xc-palette.is-dragging,
	.xc-palette.is-flung {
		transition: none;
	}

	.xc-palette__field {
		gap: 10px;
		margin: 10px 12px 6px;
		padding: 0 6px 0 14px;
		border: 0;
		border-radius: 14px;
		background: color-mix(in srgb, var(--xc-ink) 6%, transparent);
	}

	.xc-palette__input {
		height: 48px;
		font-size: 17px;
	}

	.xc-palette__field .xc-kbd {
		display: inline-grid;
		place-items: center;
		height: 34px;
		padding: 0 12px;
		border: 0;
		border-radius: 10px;
		background: none;
		box-shadow: none;
		color: var(--xc-gold-ink);
		font-family: var(--xc-font);
		font-size: 15px;
		font-weight: 600;
	}

	.xc-palette__item {
		min-height: 52px;
	}

	.xc-palette__foot {
		display: none;
	}

	.xc-dialog {
		width: 100vw;
		max-width: 100vw;
		max-height: calc(100dvh - 24px - env(safe-area-inset-top));
		margin: auto 0 0;
		border: 0;
		border-radius: 26px 26px 0 0;
		padding-bottom: env(safe-area-inset-bottom);
	}

	.xc-dialog,
	.xc-drawer {
		--xc-sheet-out: translate3d(0, 100%, 0);
		--xc-sheet-in: translate3d(0, 100%, 0);
		transition: transform 220ms var(--xc-ease-in), opacity 1ms 219ms, overlay 220ms allow-discrete, display 220ms allow-discrete;
	}

	.xc-dialog[open],
	.xc-drawer[open] {
		transition: transform var(--xc-spring-d) var(--xc-spring), opacity 1ms, overlay var(--xc-spring-d) allow-discrete, display var(--xc-spring-d) allow-discrete;
	}

	.xc-dialog::before,
	.xc-drawer::before {
		content: "";
		position: absolute;
		top: 7px;
		left: 50%;
		z-index: 5;
		width: 38px;
		height: 5px;
		margin-left: -19px;
		border-radius: 3px;
		background: color-mix(in srgb, var(--xc-ink) 18%, transparent);
		pointer-events: none;
	}

	.xc-dialog__head,
	.xc-drawer__head {
		touch-action: none;
	}

	.xc-dialog__foot {
		padding-bottom: 16px;
	}

	.xc-dialog__foot .xc-btn {
		flex: 1;
		height: 46px;
		font-size: 15px;
	}

	.xc-drawer {
		top: auto;
		height: calc(100dvh - 12px - env(safe-area-inset-top));
		border: 0;
		border-radius: 26px 26px 0 0;
		padding-bottom: env(safe-area-inset-bottom);
	}

	@keyframes xc-sheet-up {
		from { transform: translate3d(0, 100%, 0); }
	}
}

@media (prefers-reduced-motion: reduce) {
	.xc-tabbar,
	.xc-tabbar__label,
	.xc-top .xc-crumbs__current {
		transition: opacity 150ms linear;
	}

	.xc-tabbar.is-compact,
	.xc-tabbar.is-compact .xc-tabbar__duo,
	.xc-tabbar.is-compact .xc-tabbar__label {
		transform: none;
	}

	.xc-palette[open] {
		animation: xc-fade-in 160ms linear;
	}
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.xc-tabbar {
		background: color-mix(in srgb, var(--xc-surface) 97%, transparent) !important;
	}

	.xc-top,
	.xc-side__head {
		background: var(--xc-bg) !important;
	}
}

@media (prefers-reduced-transparency: reduce) {
	.xc-tabbar,
	.xc-top,
	.xc-side__head {
		background: var(--xc-surface);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

::view-transition-group(xc-dock-lens) {
	animation-duration: 560ms;
	animation-timing-function: var(--xc-lens-ease);
}

::view-transition-old(xc-dock-lens),
::view-transition-new(xc-dock-lens) {
	animation: none;
	height: 100%;
}

@media (prefers-reduced-motion: reduce) {
	::view-transition-group(xc-dock-lens) {
		animation-duration: 0s;
	}
}

.xc-side:focus {
	outline: none;
	box-shadow: var(--xc-sheet-shadow);
}

@media (max-width: 640px) {
	.xc .xc-palette__input {
		font-size: 17px;
	}
}

@media (max-width: 960px) {
	.xc .xc-eyebrow {
		font-size: 12px;
	}

	.xc .xc-beta-tag {
		font-size: var(--xc-t-xs);
	}

	.xc .xc-beta-tag--s {
		font-size: var(--xc-t-xs);
	}

	.xc-beta-strip .xc-btn,
	.xc-error .xc-btn {
		height: 44px;
		padding-inline: 18px;
		font-size: 15px;
	}

	html.xc-typing .xc-tabbar {
		transform: translate3d(0, calc(100% + var(--xc-dock-bottom) + 24px), 0);
		opacity: 0;
		pointer-events: none;
	}
}

@media (max-width: 960px) {
	.xc .xc-table th {
		top: calc(var(--xc-top-h) + env(safe-area-inset-top));
	}

	.xc .xc-avatar--s {
		font-size: 12px;
	}
}

@media (max-width: 640px) {
	.xc-drawer {
		height: auto;
		max-height: calc(100dvh - 12px - env(safe-area-inset-top));
	}

	.xc-drawer[open] {
		min-height: min(320px, calc(100dvh - 12px - env(safe-area-inset-top)));
	}
}

@media (max-width: 960px) {
	.xc .xc-tag {
		height: 22px;
		font-size: 12px;
	}

	.xc .xc-segmented__item {
		height: 40px;
		font-size: 14px;
	}
}

@media (max-width: 960px) and (pointer: coarse) {
	.xc .xc-link.xc-small {
		display: inline-block;
		padding-block: 6px;
		margin-block: -6px;
	}
}

@media (min-width: 961px) and (max-width: 1180px) {
	.xc-top .xc-search {
		width: 40px;
		padding: 0;
		justify-content: center;
		border-color: transparent;
		background: transparent;
		box-shadow: none;
	}

	.xc-top .xc-search__label,
	.xc-top .xc-search .xc-kbd {
		display: none;
	}
}

@media (max-width: 340px) {
	.xc .xc-tabbar__item {
		font-size: 11px;
	}
}
