/* X-Font Preview — shell overrides (Layout Studio chrome in idealtype-layout-lab.css) */

html.xfp-desktop .ls-menubar[hidden] {
	display: none !important;
}

.xfp-help-modal {
	position: fixed;
	inset: 0;
	z-index: 500;
	display: grid;
	place-items: center;
	padding: 24px;
}

.xfp-help-modal[hidden] {
	display: none;
}

.xfp-help-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.xfp-help-modal__dialog {
	position: relative;
	width: min(100%, 420px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	background: #111114;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.xfp-help-modal__dialog--wide {
	width: min(100%, 480px);
}

.xfp-help-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.xfp-help-modal__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: #f4f4f5;
}

.xfp-help-modal__close {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 8px;
	color: rgba(244, 244, 245, 0.7);
	background: transparent;
	cursor: pointer;
}

.xfp-help-modal__close:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #f4f4f5;
}

.xfp-help-modal__close svg {
	width: 18px;
	height: 18px;
}

.xfp-help-modal__body {
	padding: 16px 18px 20px;
}

.xfp-help-modal__lead {
	margin: 0 0 12px;
	font-size: 0.875rem;
	line-height: 1.55;
	color: rgba(244, 244, 245, 0.72);
}

.xfp-help-modal__meta,
.xfp-help-modal__copy {
	margin: 0;
	font-size: 0.8125rem;
	color: rgba(244, 244, 245, 0.5);
}

.xfp-help-modal__meta {
	margin-bottom: 6px;
}

.xfp-shortcuts-list {
	margin: 0;
}

.xfp-shortcuts-list__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.xfp-shortcuts-list__row:last-child {
	border-bottom: 0;
}

.xfp-shortcuts-list__row dt {
	margin: 0;
	font-size: 0.875rem;
	color: rgba(244, 244, 245, 0.88);
}

.xfp-shortcuts-list__row dd {
	margin: 0;
	font-size: 0.8125rem;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	color: rgba(244, 244, 245, 0.5);
}


.fi-upload-panel-wrap--banner {
	cursor: default;
}

.fi-upload-panel-wrap--banner:focus-visible {
	outline: none;
}

.fi-upload-panel-wrap.is-drag-over .xfp-banner {
	border-color: rgba(var(--it-accent-rgb), 0.45);
	background: rgba(var(--it-accent-rgb), 0.06);
	box-shadow: 0 0 0 1px rgba(var(--it-accent-rgb), 0.08), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.xfp-banner {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 32px);
	width: 100%;
	min-height: 132px;
	padding: 22px 28px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background:
		linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
		rgba(0, 0, 0, 0.22);
	transition:
		border-color 0.2s ease,
		background 0.2s ease,
		box-shadow 0.2s ease;
}

.xfp-banner__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 88px;
	height: 88px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.xfp-banner__logo-img {
	display: block;
	width: 52px;
	height: auto;
	animation: it-logo-glitch 2s steps(1, end) infinite;
}

.xfp-banner__copy {
	min-width: 0;
	flex: 1 1 auto;
}

.xfp-banner__headline {
	margin: 0 0 8px;
	font-size: clamp(1.75rem, 3.6vw, 2.75rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
	color: var(--it-text);
}

.xfp-banner__text {
	display: inline-block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	vertical-align: bottom;
}

.xfp-banner__text.is-animating-out {
	animation: xfp-banner-text-out 0.42s ease forwards;
}

.xfp-banner__text.is-animating-in {
	animation: xfp-banner-text-in 0.52s ease forwards;
}

.xfp-banner__hint {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.45;
	color: var(--it-muted);
}

@keyframes xfp-banner-text-out {
	from {
		opacity: 1;
		transform: translateY(0);
		filter: blur(0);
	}
	to {
		opacity: 0;
		transform: translateY(-14px);
		filter: blur(3px);
	}
}

@keyframes xfp-banner-text-in {
	from {
		opacity: 0;
		transform: translateY(16px);
		filter: blur(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
		filter: blur(0);
	}
}

@media (max-width: 720px) {
	.xfp-banner {
		flex-direction: column;
		align-items: flex-start;
		padding: 18px 20px;
	}

	.xfp-banner__logo {
		width: 72px;
		height: 72px;
	}

	.xfp-banner__logo-img {
		width: 42px;
	}

	.xfp-banner__text {
		white-space: normal;
	}
}

.xfp-font-panel {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.xfp-font-panel.is-hidden {
	display: none !important;
}

.xfp-font-panel .fi-font-dock__title {
	margin-bottom: 2px;
}

.xfp-font-panel__card {
	width: 100%;
}

.xfp-font-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
