.fi-app {
	min-height: 100vh;
	--it-max: 1800px;
}

.fi-app .it-nav__inner,
.fi-app .it-footer__inner {
	max-width: var(--it-max);
	margin-left: auto;
	margin-right: auto;
}

.is-hidden {
	display: none !important;
}

.fi-hero {
	max-width: var(--it-max);
	margin: 0 auto;
	padding: 40px clamp(20px, 3vw, 40px) 24px;
}

.fi-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 1.1fr);
	gap: 24px 40px;
	align-items: stretch;
	min-height: min(46vh, 400px);
}

.fi-hero__copy {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.fi-hero__flow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-top: 6px;
	font-size: 0.92rem;
	line-height: 1.4;
}

.fi-hero__flow-step {
	color: var(--it-text);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s ease, opacity 0.15s ease;
}

.fi-hero__flow-step:hover {
	color: #ffffff;
}

.fi-hero__flow-step:focus-visible {
	outline: none;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fi-hero__flow-arrow {
	color: var(--it-muted);
	font-size: 0.9rem;
	line-height: 1;
	user-select: none;
}

.fi-hero__points {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 0.84rem;
	line-height: 1.45;
	color: var(--it-muted);
}

.fi-hero__points li {
	position: relative;
	padding-left: 14px;
}

.fi-hero__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(var(--it-accent-rgb), 0.75);
}

.fi-hero__preview {
	position: relative;
	min-height: min(44vh, 380px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.fi-hero-preview {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: min(44vh, 380px);
	padding: 8px 8px 8px clamp(48px, 8vw, 72px);
}

.fi-hero-preview__glyph {
	font-size: clamp(5rem, 16vw, 9.5rem);
	font-weight: 700;
	line-height: 1;
	color: rgba(255, 255, 255, 0.88);
	z-index: 1;
	animation: fi-inspector-weight 2.8s ease-in-out infinite;
}

.fi-hero-preview__metric {
	position: absolute;
	left: clamp(8px, 2vw, 20px);
	right: clamp(8px, 2vw, 24px);
	height: 1px;
	background: rgba(255, 255, 255, 0.22);
	opacity: 0;
	transform: scaleX(0);
	transform-origin: left center;
	animation: fi-inspector-line 2.8s ease-out infinite;
}

.fi-hero-preview__metric--asc { top: 22%; animation-delay: 0.05s; }
.fi-hero-preview__metric--cap { top: 32%; animation-delay: 0.12s; }
.fi-hero-preview__metric--x { top: 48%; background: none; border-top: 1px dashed rgba(255, 255, 255, 0.18); height: 0; animation-delay: 0.19s; }
.fi-hero-preview__metric--base { top: 62%; background: rgba(255, 255, 255, 0.45); animation-delay: 0.26s; }
.fi-hero-preview__metric--desc { top: 76%; animation-delay: 0.33s; }

.fi-hero-preview__readout {
	position: absolute;
	right: clamp(4px, 1vw, 12px);
	bottom: clamp(4px, 1vh, 12px);
	padding: 5px 10px;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: clamp(0.65rem, 1.2vw, 0.78rem);
	color: rgba(255, 255, 255, 0.5);
	opacity: 0;
	animation: fi-inspector-readout 2.8s ease-out infinite;
}

.fi-hero__preview:hover .fi-hero-preview__glyph {
	animation-duration: 2.2s;
}

.fi-hero__preview:hover .fi-hero-preview__metric {
	animation-duration: 2.2s;
}

.fi-hero__preview:hover .fi-hero-preview__readout {
	animation-duration: 2.2s;
}

@keyframes fi-inspector-line {
	0%, 12% { opacity: 0; transform: scaleX(0); }
	22%, 78% { opacity: 1; transform: scaleX(1); }
	88%, 100% { opacity: 0; transform: scaleX(0); }
}

@keyframes fi-inspector-weight {
	0%, 20%, 100% { transform: scale(1); opacity: 0.88; }
	40%, 60% { transform: scale(1.06); opacity: 1; letter-spacing: 0.02em; }
}

@keyframes fi-inspector-readout {
	0%, 30% { opacity: 0; transform: translateY(4px); }
	40%, 75% { opacity: 1; transform: translateY(0); }
	85%, 100% { opacity: 0; transform: translateY(4px); }
}

.fi-hero__eyebrow {
	margin: 0 0 10px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--it-muted);
}

.fi-hero__title {
	margin: 0 0 8px;
	font-size: clamp(1.65rem, 3vw, 2.25rem);
	font-weight: 600;
	letter-spacing: -0.03em;
}

.fi-hero__lead {
	margin: 0;
	max-width: 40rem;
	color: var(--it-muted);
	line-height: 1.6;
	font-size: 0.95rem;
}

@media (max-width: 768px) {
	.fi-hero__grid {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.fi-hero__preview {
		order: -1;
		min-height: min(38vh, 320px);
	}

	.fi-hero-preview {
		min-height: min(38vh, 320px);
	}

	.fi-hero__flow {
		gap: 8px 12px;
	}

	.fi-hero-preview__glyph {
		font-size: clamp(4.5rem, 28vw, 7rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fi-hero-preview__glyph,
	.fi-hero-preview__metric,
	.fi-hero-preview__readout {
		animation: none !important;
		opacity: 1;
		transform: none;
	}

	.fi-hero-preview__metric {
		opacity: 0.65;
		transform: scaleX(1);
	}

	.fi-hero-preview__readout {
		opacity: 1;
	}
}

.fi-stage {
	max-width: var(--it-max);
	margin: 0 auto;
	padding: 12px clamp(16px, 2.5vw, 32px) 72px;
}

.fi-stage__sheet {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 4px;
	background:
		linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
		radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
	background-size: auto, 18px 18px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.fi-workspace-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 22%);
	gap: 0;
	align-items: stretch;
	min-height: 0;
}

.fi-workspace-split--full {
	grid-template-columns: minmax(0, 1fr);
}

.fi-workspace-side {
	display: flex;
	flex-direction: column;
	padding: 12px;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.14);
	overflow: auto;
	max-height: calc(100vh - 120px);
	position: sticky;
	top: 72px;
	align-self: start;
}

.fi-workspace-typography {
	position: static;
	top: auto;
	align-self: stretch;
	max-height: none;
	border-right: none;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	overflow: hidden;
	flex: 0 0 auto;
	padding: 8px 12px;
}

.fi-typography-dock {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
}

.fi-typography-dock__track {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 10px;
	min-width: 0;
	overflow: visible;
}

.fi-typography-dock__card {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.18);
}

.fi-typography-dock__card-title {
	margin: 0;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--it-muted);
}

.fi-workspace-typography .fi-preview-settings.fi-typography-dock__card {
	flex: 0 0 auto;
	min-width: 272px;
	max-width: 320px;
	margin: 0;
}

.fi-workspace-typography .fi-hero-controls {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 2px;
}

.fi-workspace-typography .fi-segmented__btn {
	padding: 6px 5px;
	font-size: 0.64rem;
}

.fi-overlays-dock {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.fi-overlays-dock.is-hidden {
	display: none !important;
}

.fi-overlay-fields-host {
	display: none !important;
}

.fi-media-library--horizontal {
	flex: 1 1 auto;
	min-width: 0;
	margin-top: 0;
	overflow: hidden;
}

.fi-media-library--horizontal .fi-media-library__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 2px;
}

.fi-media-library--horizontal .fi-media-library__import {
	flex-shrink: 0;
	padding: 5px 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--it-text);
	font-size: 0.72rem;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.fi-media-library--horizontal .fi-media-library__import:hover {
	border-color: rgba(var(--it-accent-rgb), 0.45);
	background: rgba(var(--it-accent-rgb), 0.08);
}

.fi-media-library--horizontal .fi-media-library__drop {
	flex: 1 1 auto;
	min-height: 108px;
	max-height: 132px;
	display: flex;
	flex-direction: column;
	padding: 8px 10px;
	border: 1px dashed rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.02);
	overflow: hidden;
}

.fi-media-library--horizontal .fi-media-library__empty {
	padding: 28px 12px;
	font-size: 0.76rem;
}

.fi-media-library--horizontal .fi-media-library__grid {
	display: none;
	grid-auto-flow: column;
	grid-auto-columns: 92px;
	grid-template-rows: 1fr;
	gap: 10px;
	align-items: stretch;
	max-height: none;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 2px 2px 6px;
	scrollbar-width: thin;
}

.fi-media-library--horizontal .fi-media-library__grid.is-visible {
	display: grid;
}

.fi-media-library--horizontal .fi-media-library__item {
	width: 92px;
	min-height: 104px;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.22);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.fi-media-library--horizontal .fi-media-library__item:hover {
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.05);
	transform: translateY(-1px);
}

.fi-media-library--horizontal .fi-media-library__item.is-selected {
	border-color: rgba(var(--it-accent-rgb), 0.55);
	background: rgba(var(--it-accent-rgb), 0.1);
	box-shadow: 0 0 0 1px rgba(var(--it-accent-rgb), 0.2);
}

.fi-media-library--horizontal .fi-media-library__thumb {
	min-height: 56px;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.35);
}

.fi-media-library--horizontal .fi-media-library__thumb img {
	max-height: 48px;
}

.fi-media-library--horizontal .fi-media-library__name {
	font-size: 0.68rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.72);
}

.fi-color-palette--horizontal {
	flex: 1 1 auto;
	min-width: 280px;
	margin-top: 0;
	overflow: hidden;
}

.fi-color-palette--sidebar {
	flex: 1 1 auto;
	min-width: 0;
	margin-top: 0;
	overflow: hidden;
}

.fi-color-palette--horizontal .fi-color-palette__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
	flex-wrap: wrap;
}

.fi-color-palette__tools {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	min-width: 0;
}

.fi-color-palette__upload,
.fi-color-palette__clear {
	flex-shrink: 0;
	padding: 5px 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--it-text);
	font-size: 0.72rem;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.fi-color-palette__upload:hover,
.fi-color-palette__clear:hover {
	border-color: rgba(var(--it-accent-rgb), 0.45);
	background: rgba(var(--it-accent-rgb), 0.08);
}

.fi-color-palette__clear.is-hidden {
	display: none;
}

.fi-palette-stepper {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.03);
}

.fi-palette-stepper__label {
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}

.fi-palette-stepper__btn {
	width: 22px;
	height: 22px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: var(--it-text);
	font-size: 0.9rem;
	line-height: 1;
	cursor: pointer;
}

.fi-palette-stepper__btn:hover:not(:disabled) {
	border-color: rgba(var(--it-accent-rgb), 0.45);
	background: rgba(var(--it-accent-rgb), 0.1);
}

.fi-palette-stepper__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.fi-palette-stepper__value {
	min-width: 1rem;
	font-size: 0.74rem;
	font-weight: 600;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.fi-color-palette__body {
	display: flex;
	align-items: stretch;
	gap: 10px;
	min-height: 108px;
	max-height: 132px;
	padding: 8px 10px;
	border: 1px dashed rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.02);
	overflow: hidden;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.fi-color-palette__body.is-drop-target {
	border-color: rgba(var(--it-accent-rgb), 0.42);
	background: rgba(var(--it-accent-rgb), 0.06);
}

.fi-color-palette__source {
	display: none !important;
}

.fi-color-palette__thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 100%;
	min-height: 88px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.28);
}

.fi-color-palette__thumb.is-hidden {
	display: none;
}

.fi-color-palette__thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fi-color-palette__body.has-palette {
	min-height: 56px;
	max-height: 56px;
	padding: 6px 8px;
}

.fi-color-palette__track {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: stretch;
}

.fi-color-palette__cards {
	display: none;
	align-items: stretch;
	width: 100%;
	height: 44px;
	border-radius: 6px;
	overflow: hidden;
}

.fi-color-palette__cards.is-visible {
	display: flex;
}

.fi-color-palette--sidebar .fi-color-palette__body {
	max-height: none;
}

.fi-color-palette--sidebar .fi-color-palette__body.has-palette {
	min-height: 0;
	max-height: none;
}

.fi-color-palette--sidebar .fi-color-palette__track {
	align-items: flex-start;
}

.fi-color-palette--sidebar .fi-color-palette__cards.is-visible {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
	width: 100%;
	height: auto;
	overflow: visible;
	border-radius: 0;
}

.fi-color-palette--sidebar .fi-palette-card {
	flex: none;
	width: 100%;
	height: 40px;
	min-width: 0;
	border-radius: 6px;
}

.fi-palette-card-wrap {
	position: relative;
	min-width: 0;
}

.fi-palette-card-wrap .fi-palette-card {
	display: block;
}

.fi-palette-favorite {
	position: absolute;
	top: 3px;
	right: 3px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.45);
	color: rgba(255, 255, 255, 0.82);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.fi-palette-favorite svg {
	display: block;
	width: 13px;
	height: 13px;
}

.fi-palette-favorite:hover {
	background: rgba(0, 0, 0, 0.62);
	color: #fff;
	transform: scale(1.05);
}

.fi-palette-favorite.is-active {
	background: rgba(var(--it-accent-rgb, 47, 111, 237), 0.92);
	color: #fff;
}

.fi-palette-favorite:focus-visible {
	outline: 2px solid rgba(var(--it-accent-rgb, 47, 111, 237), 0.65);
	outline-offset: 1px;
}

.fi-color-palette__favorites {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fi-color-palette__favorites-head {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.fi-color-palette__favorites-icon {
	display: grid;
	place-items: center;
	color: rgba(255, 255, 255, 0.45);
}

.fi-color-palette__favorites-label {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}

.fi-color-palette__favorites-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
}

.fi-color-palette__favorites-grid:empty {
	display: none;
}

.fi-color-palette__favorites-empty {
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.38);
}

.fi-color-palette__favorites-empty.is-hidden {
	display: none;
}

.fi-color-palette__empty {
	margin: auto;
	padding: 20px 12px;
	text-align: center;
	font-size: 0.76rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.42);
}

.fi-color-palette__empty.is-hidden {
	display: none;
}

.fi-palette-card {
	flex: 1 1 0;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.fi-palette-card:hover {
	filter: brightness(1.08);
	z-index: 1;
}

.fi-palette-card.is-active {
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
	z-index: 2;
}

.fi-palette-card:focus-visible {
	outline: none;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.95);
}

.fi-color-palette__meta {
	margin: 6px 0 0;
	font-size: 0.68rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.42);
}

.fi-overlay-col {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.fi-workspace-typography .fi-overlay-field {
	flex: none;
	min-width: 0;
	width: 100%;
	padding: 8px 10px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.02);
}

.fi-workspace-typography .fi-overlay-sliders {
	gap: 6px;
}

.fi-workspace-typography .fi-preview-text__input {
	padding: 6px 8px;
	font-size: 0.76rem;
}

.fi-workspace-side.is-hidden {
	display: none !important;
}

.fi-workspace-stage {
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-height: 0;
	gap: 4px;
}

.fi-workspace-canvas-row {
	display: flex;
	flex: 1 1 0;
	min-height: 0;
	gap: 12px;
	align-items: stretch;
}

.fi-workspace-dock {
	flex: 0 0 var(--xfp-media-w, 180px);
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
	align-self: stretch;
}

.fi-font-dock {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.18);
}

.fi-logo-dock {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.18);
}

.fi-overlay-logo--dock {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.fi-logo-dock__name {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.4;
	color: var(--it-text);
	word-break: break-word;
}

.fi-logo-dock__name.is-empty {
	color: var(--it-muted);
}

.fi-logo-dock__clear {
	align-self: flex-start;
}

.fi-logo-dock__clear.is-hidden {
	display: none;
}

.fi-font-dock__title {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--it-muted);
}

.fi-font-dock__empty {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fi-font-dock__empty.is-hidden {
	display: none;
}

.fi-font-dock__upload {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 36px;
	padding: 8px 12px;
	border: 1px dashed rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--it-text);
	font-size: 0.78rem;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.fi-font-dock__upload:hover {
	border-color: rgba(var(--it-accent-rgb), 0.42);
	background: rgba(var(--it-accent-rgb), 0.06);
}

.fi-font-dock__hint {
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.42);
	text-align: center;
}

.fi-workspace-canvas {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
}

.fi-workspace-main {
	min-width: 0;
	padding: 12px 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: calc(100vh - 120px);
	overflow: hidden;
}

.fi-workspace-props {
	display: flex;
	flex-direction: column;
	padding: 12px;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.14);
	overflow: auto;
	max-height: calc(100vh - 120px);
	position: sticky;
	top: 72px;
	align-self: start;
}

.fi-props-panel {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.fi-props-panel__kicker {
	margin: 0 0 2px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--it-muted);
}

.fi-props-panel__kicker--spaced {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fi-props-panel .fi-svg-lib {
	margin-bottom: 4px;
}

.fi-custom-presets {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fi-custom-presets__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fi-custom-presets__label {
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--it-muted);
}

.fi-custom-presets__dropdown {
	position: relative;
}

.fi-custom-presets__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.28);
	color: var(--it-fg);
	font: inherit;
	font-size: 0.82rem;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.fi-custom-presets__trigger:hover:not(:disabled) {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.05);
}

.fi-custom-presets__trigger[aria-expanded="true"] {
	border-color: rgba(var(--it-accent-rgb), 0.45);
	background: rgba(var(--it-accent-rgb), 0.08);
}

.fi-custom-presets__trigger:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.fi-custom-presets__trigger:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.35);
	outline-offset: 2px;
}

.fi-custom-presets__trigger svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	opacity: 0.65;
}

.fi-custom-presets__trigger span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fi-custom-presets__menu {
	position: absolute;
	z-index: 80;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	margin: 0;
	padding: 4px;
	max-height: 480px;
	overflow-y: auto;
	list-style: none;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	background: #12141a;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.fi-custom-presets__menu::-webkit-scrollbar {
	width: 8px;
}

.fi-custom-presets__menu::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.24);
}

.fi-custom-presets__menu[hidden] {
	display: none;
}

.fi-custom-presets__group {
	margin: 8px 2px 4px;
	padding: 0;
	pointer-events: none;
}

.fi-custom-presets__group:first-child {
	margin-top: 2px;
}

.fi-custom-presets__group-label {
	display: block;
	padding: 7px 10px;
	border-radius: 7px;
	border: 1px solid rgba(var(--it-accent-rgb), 0.45);
	background: var(--it-accent);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #0a0a08;
}

.fi-custom-presets__option {
	display: block;
	width: 100%;
	margin: 0 2px;
	padding: 8px 10px 8px 14px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--it-fg);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 400;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.fi-custom-presets__option:hover {
	background: rgba(255, 255, 255, 0.06);
}

.fi-custom-presets__option.is-active {
	background: rgba(var(--it-accent-rgb), 0.14);
}

.fi-custom-presets__hint {
	margin: 0;
	font-size: 0.74rem;
	line-height: 1.4;
	color: var(--it-muted);
}

.fi-media-library {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.18);
}

.fi-media-library--dock {
	flex: 1 1 auto;
	margin-top: 0;
	min-height: 0;
	max-height: none;
	overflow: hidden;
	align-self: stretch;
}

.fi-media-library--dock .fi-media-library__bar {
	flex-direction: column;
	align-items: stretch;
}

.fi-media-library--dock .fi-media-library__color {
	flex: 0 0 auto;
	max-width: none;
}

.fi-media-library--dock .fi-media-library__drop {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.fi-media-library--dock .fi-media-library__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-height: none;
	flex: 1 1 auto;
	overflow: auto;
}

.fi-media-library__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.fi-media-library__title {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--it-muted);
}

.fi-media-library__color {
	flex: 1 1 220px;
	max-width: 280px;
}

.fi-media-library__color .fi-color-field__label {
	display: none;
}

.fi-media-library__color-hint {
	margin: 0;
}

.fi-media-library__drop {
	position: relative;
	min-height: 88px;
	padding: 10px;
	border: 1px dashed rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.02);
	transition: border-color 0.15s ease, background 0.15s ease;
	cursor: pointer;
}

.fi-media-library__drop.is-drop-target {
	border-color: rgba(var(--it-accent-rgb), 0.42);
	background: rgba(var(--it-accent-rgb), 0.06);
}

.fi-media-library__empty {
	margin: 0;
	padding: 18px 8px;
	text-align: center;
	font-size: 0.78rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.42);
}

.fi-media-library__empty.is-hidden {
	display: none;
}

.fi-media-library__grid {
	display: none;
	grid-template-columns: repeat(10, minmax(0, 1fr));
	gap: 6px;
	max-height: 320px;
	overflow: auto;
}

.fi-media-library__grid.is-visible {
	display: grid;
}

.fi-media-library__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.fi-media-library__item:hover {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.05);
}

.fi-media-library__item.is-selected {
	border-color: rgba(var(--it-accent-rgb), 0.42);
	background: rgba(var(--it-accent-rgb), 0.08);
}

.fi-media-library__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 4px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.28);
	pointer-events: none;
}

.fi-media-library__thumb img {
	display: block;
	max-width: 100%;
	max-height: 40px;
	width: auto;
	height: auto;
}

.fi-media-library__name {
	min-width: 0;
	font-size: 0.62rem;
	line-height: 1.2;
	color: var(--it-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
	pointer-events: none;
}

.fi-layers {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	margin: 0;
}

.fi-layers-section {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fi-layers-section__title {
	margin: 0 0 8px;
}

.fi-layers--props {
	flex: 1;
	min-height: 0;
	max-height: clamp(140px, 32vh, 320px);
	overflow: hidden;
}

.fi-layers--props .fi-layers-list {
	flex: 1;
	min-height: 0;
}

.fi-layers-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.fi-layers-section__head .fi-layers-section__title {
	margin: 0;
}

.fi-layers-section__tools {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
}

.fi-layers-blend {
	display: flex;
	gap: 8px;
	align-items: stretch;
	margin-bottom: 8px;
}

.fi-layers-blend__select {
	flex: 1 1 52%;
	min-width: 0;
	width: auto;
	padding: 6px 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.22);
	color: var(--it-text);
	font-size: 0.78rem;
	cursor: pointer;
	color-scheme: dark;
}

.fi-layers-opacity {
	flex: 1 1 48%;
	min-width: 0;
}

.fi-layers-opacity .fi-track-slider {
	margin-bottom: 0;
}

.fi-layers-opacity .fi-track-slider__shell {
	height: 32px;
}

.fi-layers-opacity .fi-track-slider__label {
	font-size: 0.72rem;
}

.fi-layers-opacity .fi-track-slider__value {
	font-size: 0.72rem;
	min-width: 2.4rem;
}

.fi-layers-opacity .fi-track-slider__input:disabled {
	cursor: default;
}

.fi-layers-blend__select option {
	background: #1c1d21;
	color: #ffffff;
}

.fi-layers-blend__select hr {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	margin: 4px 0;
}

.fi-layers-blend__select:disabled {
	opacity: 0.45;
	cursor: default;
}

.fi-layers-blend__select:focus {
	outline: none;
	border-color: rgba(var(--it-accent-rgb), 0.45);
	box-shadow: 0 0 0 2px rgba(var(--it-accent-rgb), 0.12);
}

.fi-layers-section__tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: rgba(244, 244, 245, 0.55);
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease;
}

.fi-layers-section__tool:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.fi-layers-section__tool:disabled {
	opacity: 0.35;
	cursor: default;
}

.fi-layers-section__tool svg {
	width: 15px;
	height: 15px;
	display: block;
}

.fi-layers-group {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fi-layers-group__head {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 4px 6px;
	border-radius: 8px;
	cursor: pointer;
	color: rgba(244, 244, 245, 0.88);
	transition: background 0.12s ease;
}

.fi-layers-group__head:hover {
	background: rgba(255, 255, 255, 0.05);
}

.fi-layers-group__head.is-selected {
	background: rgba(255, 255, 255, 0.08);
}

.fi-layers-group__toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: rgba(244, 244, 245, 0.5);
	cursor: pointer;
	transition: transform 0.15s ease, color 0.12s ease;
}

.fi-layers-group__toggle.is-collapsed svg {
	transform: rotate(-90deg);
}

.fi-layers-group__toggle:hover {
	color: #fff;
}

.fi-layers-group__toggle svg {
	width: 12px;
	height: 12px;
	display: block;
}

.fi-layers-group__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	color: rgba(244, 244, 245, 0.65);
}

.fi-layers-group__icon svg {
	display: block;
}

.fi-layers-group__name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 500;
}

.fi-layers-group__children {
	list-style: none;
	margin: 0;
	padding: 0 0 0 14px;
}

.fi-layers-group.is-collapsed .fi-layers-group__children {
	display: none;
}

.fi-layers-item--nested {
	padding-left: 4px;
}

.fi-layers--props .fi-layers-item.is-selected {
	background: rgba(255, 255, 255, 0.08);
	box-shadow: none;
}

.fi-layers--props .fi-layers-item.is-selected .fi-layers-item__thumb {
	border-color: #fff;
}

.fi-layers-item__btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: rgba(244, 244, 245, 0.55);
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease;
}

.fi-layers-item__btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.fi-layers-item__btn.is-active {
	color: #93c5fd;
}

.fi-layers-item__btn svg {
	display: block;
	width: 13px;
	height: 13px;
}

.fi-layers-item__eye {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-right: 2px;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: color 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

.fi-layers-item__eye:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.fi-layers-item__eye svg {
	display: block;
	width: 15px;
	height: 15px;
}

.fi-layers-item__eye.is-hidden-layer {
	color: rgba(255, 255, 255, 0.32);
}

/* Placeholder keeps rows without a hide toggle aligned with the rest. */
.fi-layers-item__eye--placeholder {
	width: 22px;
	height: 22px;
	margin-right: 2px;
}

.fi-layers-item--hidden .fi-layers-item__name,
.fi-layers-item--hidden .fi-layers-item__thumb {
	opacity: 0.4;
}

.fi-layers-empty {
	padding: 10px 12px;
	border: 1px dashed rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.02);
}

.fi-layers-empty p {
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.42);
}

.fi-layers-empty.is-hidden {
	display: none;
}

.fi-layers-list {
	display: flex;
	flex-direction: column;
	gap: 1px;
	flex: 1;
	min-height: 0;
	margin: 0;
	padding: 2px 0 6px;
	list-style: none;
	overflow-y: auto;
}

.fi-layers-list.is-hidden {
	display: none;
}

.fi-layers-item {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 4px 6px 4px 4px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: rgba(255, 255, 255, 0.88);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
	transition: background 0.12s ease;
	user-select: none;
}

.fi-layers-item:hover {
	background: rgba(255, 255, 255, 0.05);
}

.fi-layers-item.is-selected {
	background: rgba(var(--it-accent-rgb), 0.12);
	box-shadow: inset 2px 0 0 var(--it-accent, #2f6fed);
}

.fi-layers-item__thumb {
	position: relative;
	flex: 0 0 auto;
	width: 36px;
	height: 27px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	overflow: hidden;
	background-color: #2a2a2e;
	background-image:
		linear-gradient(45deg, #35353a 25%, transparent 25%),
		linear-gradient(-45deg, #35353a 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #35353a 75%),
		linear-gradient(-45deg, transparent 75%, #35353a 75%);
	background-size: 8px 8px;
	background-position: 0 0, 0 4px, 4px -4px, -4px 0;
}

.fi-layers-item__thumb--fill {
	background-image: none;
}

.fi-layers-item__thumb--text,
.fi-layers-item__thumb--path {
	background-image: none;
	background-color: #242428;
	border-color: rgba(255, 255, 255, 0.14);
}

.fi-layers-item__thumb-letter {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}

.fi-layers-item__thumb-icon {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: rgba(255, 255, 255, 0.52);
}

.fi-layers-item__thumb-icon svg {
	display: block;
	width: 14px;
	height: 14px;
}

.fi-layers-item__thumb-fill {
	position: absolute;
	inset: 5px 7px;
	border-radius: 3px;
}

.fi-layers-item__name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 12px;
	font-weight: 400;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fi-layers-item--clipped {
	padding-left: 12px;
}

.fi-layers-item__clip-arrow {
	flex: 0 0 14px;
	width: 14px;
	align-self: stretch;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 4px;
	margin-right: 0;
	color: rgba(255, 255, 255, 0.72);
}

.fi-layers-item__clip-arrow-icon {
	display: block;
	width: 12px;
	height: 12px;
}

.fi-layers-item--clip-base .fi-layers-item__name {
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.34);
	text-underline-offset: 2px;
}

.fi-layers-item--preview-text .fi-layers-item__name,
.fi-layers-item--custom-text .fi-layers-item__name,
.fi-layers-item--overlay-text .fi-layers-item__name {
	font-weight: 400;
}

.fi-layers-item__actions {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 2px;
	margin-left: auto;
	opacity: 0;
	transition: opacity 0.12s ease;
}

.fi-layers--props .fi-layers-item__actions,
.fi-layers--props .fi-layers-item.is-selected .fi-layers-item__actions,
.fi-layers--props .fi-layers-item:hover .fi-layers-item__actions,
.fi-layers--props .fi-layers-item__actions:focus-within {
	opacity: 1;
}

.fi-layers-item__swatch {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
	background: transparent;
	cursor: pointer;
	transition: transform 0.12s ease, border-color 0.12s ease;
}

.fi-layers-item__swatch:hover {
	transform: scale(1.08);
	border-color: rgba(255, 255, 255, 0.34);
}

.fi-layers-item__swatch:focus-visible {
	outline: 2px solid rgba(var(--it-accent-rgb), 0.45);
	outline-offset: 1px;
}

.fi-layers-item__lock-badge {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 4px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.42);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.12s ease, color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

/* Legacy lock badge — props panel uses .fi-layers-item__btn */
.fi-layers-item__lock-badge.is-locked,
.fi-layers-item__btn.is-active {
	color: #93c5fd;
}

.fi-layers-item__lock-badge svg {
	display: block;
	width: 12px;
	height: 12px;
}

.fi-layers-item__lock-badge.is-locked {
	opacity: 1;
	color: #ff6b6b;
	background: rgba(229, 72, 77, 0.14);
	border-color: rgba(229, 72, 77, 0.38);
}

.fi-layers-item--locked .fi-layers-item__actions {
	opacity: 1;
}

.fi-layers-item--locked .fi-layers-item__name {
	color: rgba(255, 255, 255, 0.62);
}

.fi-layers-item:hover .fi-layers-item__lock-badge,
.fi-layers-item.is-selected .fi-layers-item__lock-badge,
.fi-layers-item__lock-badge.is-locked,
.fi-layers-item__lock-badge:focus-visible {
	opacity: 1;
}

.fi-layers-item__lock-badge:hover {
	border-color: rgba(255, 255, 255, 0.24);
}

.fi-layers-item__lock-badge.is-locked:hover {
	color: #ff8585;
	border-color: rgba(229, 72, 77, 0.55);
	background: rgba(229, 72, 77, 0.2);
}

.fi-layers-item__lock-badge:focus-visible {
	outline: 2px solid rgba(var(--it-accent-rgb), 0.45);
	outline-offset: 1px;
}

.fi-layers-item--background {
	cursor: pointer;
}

.fi-props-bg,
.fi-props-text,
.fi-props-logo,
.fi-props-overlay-text {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fi-props-text.is-hidden,
.fi-props-logo.is-hidden,
.fi-props-overlay-text.is-hidden {
	display: none;
}

.fi-props-bg.is-hidden {
	display: none;
}

.fi-props-bg__hint {
	margin: 0;
	font-size: 0.68rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.38);
}

.fi-canvas-layer {
	position: absolute;
	pointer-events: auto;
	touch-action: none;
	cursor: grab;
	user-select: none;
	transform-origin: center center;
}

.fi-canvas-layer.is-dragging {
	cursor: grabbing;
	z-index: 6;
	will-change: left, top, transform;
}

.fi-canvas-layer.is-selected {
	outline: none;
}

.fi-props-empty {
	padding: 12px 10px;
	border: 1px dashed rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.02);
}

.fi-props-empty p {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.45);
}

.fi-props-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fi-props-body.is-hidden {
	display: none !important;
}

.fi-color-field.is-hidden {
	display: none !important;
}

.fi-props-name {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--it-text);
	word-break: break-word;
}

.fi-props-delete {
	align-self: flex-start;
}

.fi-props-layer {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fi-svg-lib {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fi-svg-lib__hint,
.fi-svg-lib__empty {
	margin: 0;
	font-size: 0.74rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.42);
}

.fi-svg-lib__empty.is-hidden {
	display: none;
}

.fi-svg-lib__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.fi-svg-lib__grid.is-hidden {
	display: none;
}

.fi-svg-lib__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	cursor: grab;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.fi-svg-lib__item:hover {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.05);
}

.fi-svg-lib__item.is-selected {
	border-color: rgba(var(--it-accent-rgb), 0.42);
	background: rgba(var(--it-accent-rgb), 0.08);
}

.fi-design-color {
	margin-top: 2px;
}

.fi-design-color__hint {
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.42);
}

.fi-color-picker__input:disabled,
.fi-color-picker__hex:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.fi-svg-lib__item:active {
	cursor: grabbing;
	transform: scale(0.98);
}

.fi-svg-lib__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 6px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.28);
	pointer-events: none;
}

.fi-svg-lib__thumb img {
	display: block;
	max-width: 100%;
	max-height: 48px;
	width: auto;
	height: auto;
}

.fi-svg-lib__name {
	font-size: 0.68rem;
	line-height: 1.25;
	color: var(--it-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

.fi-props-layer.is-hidden,
.fi-props-delete.is-hidden {
	display: none;
}

.fi-canvas-viewport > .fi-canvas-elements,
.fi-artboard-overlay-layer > .fi-canvas-elements {
	z-index: 4;
}

.fi-canvas-element {
	position: absolute;
	pointer-events: none;
	touch-action: none;
	cursor: grab;
	user-select: none;
	transform-origin: center center;
}

.fi-canvas-element.is-dragging {
	cursor: grabbing;
	z-index: 6;
}

.fi-canvas-element.is-selected {
	outline: 2px solid rgba(var(--it-accent-rgb), 0.55);
	outline-offset: 2px;
}

.fi-canvas-stage.is-svg-drop-target {
	border-color: rgba(var(--it-accent-rgb), 0.42);
	box-shadow: inset 0 0 0 2px rgba(var(--it-accent-rgb), 0.16);
}

.fi-side-panel {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fi-side-panel__kicker {
	margin: 0 0 2px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--it-muted);
}

.fi-side-panel__kicker span {
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.35);
}

.fi-side-section + .fi-side-section,
.fi-side-section + .fi-settings--compact,
.fi-preview-settings + .fi-settings--compact {
	margin-top: 0;
}

.fi-side-section__title {
	margin: 0 0 6px;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}

.fi-side-grid {
	display: grid;
	gap: 8px;
}

.fi-side-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fi-side-grid__full {
	grid-column: 1 / -1;
}

.fi-side-disclosure {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.02);
}

.fi-side-disclosure + .fi-side-disclosure {
	margin-top: 0;
}

.fi-side-disclosure__summary {
	display: flex;
	align-items: center;
	min-height: 34px;
	padding: 0 10px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--it-muted);
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.fi-side-disclosure__summary::-webkit-details-marker {
	display: none;
}

.fi-side-disclosure__summary::after {
	content: "+";
	margin-left: auto;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.35);
}

.fi-side-disclosure[open] .fi-side-disclosure__summary::after {
	content: "−";
}

.fi-side-disclosure > .fi-overlay-fields,
.fi-side-disclosure > .fi-mp-grid {
	padding: 0 10px 10px;
}

.fi-workspace-side:not(.fi-workspace-typography) .fi-preview-settings {
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
}

.fi-workspace-side:not(.fi-workspace-typography) .fi-settings,
.fi-workspace-side:not(.fi-workspace-typography) .fi-settings--compact {
	margin: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fi-workspace-side:not(.fi-workspace-typography) .fi-settings__block--compact {
	margin: 0;
}

.fi-workspace-side:not(.fi-workspace-typography) .fi-settings__block--compact .fi-settings__block-title {
	display: block;
	margin: 0 0 5px;
}

.fi-workspace-side:not(.fi-workspace-typography) .fi-preview-settings__sliders {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.fi-color-picker--compact {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 6px;
	align-items: center;
	width: 100%;
}

.fi-color-picker--compact .fi-color-picker__input {
	width: 36px;
	height: 32px;
	padding: 2px;
	flex-shrink: 0;
}

.fi-color-picker--compact .fi-color-picker__hex {
	width: 100%;
	min-width: 0;
	padding: 7px 8px;
	font-size: 0.78rem;
}

.fi-colors-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	align-items: start;
}

.fi-color-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.fi-color-field__label {
	margin: 0;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	line-height: 1.2;
	min-height: 1.2em;
}

.fi-hero-controls {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
}

.fi-segmented {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.fi-segmented--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fi-segmented--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fi-segmented__btn {
	padding: 7px 6px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--it-muted);
	font: inherit;
	font-size: 0.66rem;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	text-align: center;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fi-segmented__btn:hover {
	color: var(--it-text);
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.06);
}

.fi-segmented__btn.is-active {
	color: var(--it-text);
	border-color: rgba(var(--it-accent-rgb), 0.35);
	background: rgba(var(--it-accent-rgb), 0.12);
}

.fi-segmented__btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.fi-hero-align {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 8px;
	align-items: center;
}

.fi-hero-align__label {
	font-size: 0.68rem;
	font-weight: 500;
	color: var(--it-muted);
	white-space: nowrap;
}

.fi-workspace-side:not(.fi-workspace-typography) .fi-preview-text__input {
	padding: 7px 9px;
	font-size: 0.8rem;
}

.fi-workspace-side:not(.fi-workspace-typography) .fi-overlay-fields {
	gap: 8px;
}

.fi-toolbar__action--sm {
	padding: 5px 10px;
	font-size: 0.76rem;
}

.fi-mp-grid--compact {
	grid-template-columns: 1fr;
	gap: 6px;
}

.fi-mp-card--compact {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 8px;
	row-gap: 1px;
	align-items: center;
	padding: 7px 9px;
	border-radius: 8px;
}

.fi-mp-card--compact .fi-mp-card__badge {
	position: static;
	grid-row: 1 / span 2;
	padding: 4px 6px;
	font-size: 0.62rem;
	background: color-mix(in srgb, var(--mp-accent, #5b8cff) 28%, rgba(0, 0, 0, 0.35));
}

.fi-mp-card--compact .fi-mp-card__name {
	font-size: 0.76rem;
	line-height: 1.2;
}

.fi-mp-card--compact .fi-mp-card__meta {
	font-size: 0.62rem;
}

.fi-app.is-workspace-ready .fi-hero {
	display: none;
}

.fi-app.is-workspace-ready .fi-stage {
	padding-top: 8px;
	padding-bottom: 24px;
}

.fi-app.is-workspace-ready .fi-upload-panel--empty .xfp-banner {
	min-height: 108px;
	padding: 16px 20px;
}

.fi-stage__sheet.is-loaded .fi-topbar {
	padding: 10px 16px;
}

.fi-topbar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.18);
}

.fi-topbar__upload {
	min-width: 0;
}

.fi-upload-panel-wrap {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	outline: none;
}

.fi-upload-panel-wrap:focus-visible .fi-upload-panel__dropzone {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.fi-upload-panel--empty {
	width: 100%;
}

.fi-upload-panel__dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 148px;
	padding: 28px 24px;
	border: 1.5px dashed rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
	text-align: center;
	transition:
		border-color 0.2s ease,
		background 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.fi-upload-panel-wrap:hover .fi-upload-panel__dropzone {
	border-color: rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.04);
}

.fi-upload-panel-wrap.is-drag-over .fi-upload-panel__dropzone {
	border-color: rgba(var(--it-accent-rgb), 0.45);
	background: rgba(var(--it-accent-rgb), 0.06);
	transform: scale(1.01);
	box-shadow: 0 0 0 1px rgba(var(--it-accent-rgb), 0.08), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.fi-upload-panel {
	display: flex;
	align-items: center;
	gap: 12px;
}

.fi-upload-panel--loaded {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 14px 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
}

.fi-upload-panel__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 16px;
	color: var(--it-muted);
}

.fi-upload-panel__icon-arrow {
	width: 40px;
	height: 40px;
	animation: fi-upload-bounce 1.6s cubic-bezier(0.34, 1.4, 0.64, 1) infinite;
}

@keyframes fi-upload-bounce {
	0%, 100% { transform: translateY(0); }
	40% { transform: translateY(-10px); }
	55% { transform: translateY(2px); }
	70% { transform: translateY(-4px); }
	82% { transform: translateY(0); }
}

.fi-upload-panel-wrap.is-drag-over .fi-upload-panel__icon-arrow {
	animation-duration: 0.9s;
	color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
	.fi-upload-panel__icon-arrow {
		animation: none;
	}
}

.fi-upload-panel__hint {
	margin: 8px 0 0;
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--it-muted);
}

.fi-upload-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fi-toolbar__meta {
	font-size: 0.82rem;
	color: var(--it-muted);
}

.fi-toolbar__action {
	padding: 8px 14px;
	border-radius: var(--it-btn-radius, 8px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: transparent;
	color: var(--it-text);
	font: inherit;
	font-size: 0.82rem;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.fi-toolbar__action:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.22);
}

.fi-upload__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.fi-preview-settings {
	margin-top: 16px;
	margin-bottom: 12px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.02);
}

.fi-preview-settings__sliders {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
	min-width: 0;
}

.fi-size {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	--fi-slider-track-h: 2px;
	--fi-slider-thumb: 12px;
	--fi-slider-track: rgba(255, 255, 255, 0.14);
	--fi-slider-thumb-color: rgba(255, 255, 255, 0.82);
}

.fi-size__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.fi-preview-text {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.fi-preview-text__label,
.fi-size__label {
	font-size: 0.74rem;
	font-weight: 500;
	color: var(--it-muted);
}

.fi-preview-text__input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--it-text);
	font: inherit;
	font-size: 0.88rem;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.fi-preview-text__input::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.fi-preview-text__input:hover {
	border-color: rgba(255, 255, 255, 0.18);
}

.fi-preview-text__input:focus {
	outline: none;
	border-color: rgba(var(--it-accent-rgb), 0.45);
	background: rgba(255, 255, 255, 0.05);
	box-shadow: 0 0 0 2px rgba(var(--it-accent-rgb), 0.12);
}

.fi-preview-toolbar {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 0;
	padding: 8px 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.02);
}

.fi-preview-toolbar__title {
	margin: 0 0 12px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--it-muted);
}

.fi-size input[type="range"],
.fi-preview-settings__sliders input[type="range"] {
	display: block;
	width: 100%;
	height: var(--fi-slider-thumb);
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.fi-size input[type="range"]::-webkit-slider-runnable-track {
	height: var(--fi-slider-track-h);
	border: none;
	border-radius: 999px;
	background: var(--fi-slider-track);
}

.fi-size input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: var(--fi-slider-thumb);
	height: var(--fi-slider-thumb);
	margin-top: calc((var(--fi-slider-track-h) - var(--fi-slider-thumb)) / 2);
	border: none;
	border-radius: 50%;
	background: var(--fi-slider-thumb-color);
	cursor: pointer;
	transition: transform 0.12s ease, background 0.12s ease;
}

.fi-size input[type="range"]::-moz-range-track {
	height: var(--fi-slider-track-h);
	border: none;
	border-radius: 999px;
	background: var(--fi-slider-track);
}

.fi-size input[type="range"]::-moz-range-thumb {
	width: var(--fi-slider-thumb);
	height: var(--fi-slider-thumb);
	border: none;
	border-radius: 50%;
	background: var(--fi-slider-thumb-color);
	cursor: pointer;
}

.fi-size input[type="range"]:hover::-webkit-slider-thumb,
.fi-size input[type="range"]:hover::-moz-range-thumb {
	background: #ffffff;
}

.fi-size input[type="range"]:focus {
	outline: none;
}

.fi-size input[type="range"]:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.fi-size input[type="range"]:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.fi-size__value {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.72rem;
	color: var(--it-text);
	white-space: nowrap;
}

.fi-preview {
	padding: 0;
}

.fi-preview-modes-row {
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 12px;
}

.fi-preview-modes.is-hidden {
	display: none;
}

.fi-preview-modes-row:has(.fi-preview-modes.is-hidden) {
	justify-content: flex-end;
}

.fi-preview-modes {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	gap: 4px;
	min-width: 0;
}

.fi-preview-export {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	align-self: flex-start;
	white-space: nowrap;
}

.fi-export {
	position: relative;
	flex-shrink: 0;
	align-self: flex-start;
}

.fi-export--toolbar {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.fi-export__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.fi-export__icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.fi-export__caret {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	opacity: 0.85;
}

.fi-export__panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 40;
	width: min(360px, calc(100vw - 32px));
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	background: #12141a;
	box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5);
}

.fi-export__panel[hidden] {
	display: none !important;
}

.fi-export__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.fi-export__title {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.fi-export__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--it-muted);
	cursor: pointer;
}

.fi-export__close:hover {
	color: var(--it-text);
	background: rgba(255, 255, 255, 0.06);
}

.fi-export__close svg {
	width: 16px;
	height: 16px;
}

.fi-export__section + .fi-export__section {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fi-export__label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--it-muted);
}

.fi-export__label-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.fi-export__label-row .fi-export__label {
	margin-bottom: 0;
}

.fi-export__formats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	margin-bottom: 12px;
}

.fi-export__format {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 8px 6px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--it-muted);
	font: inherit;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fi-export__format--locked {
	opacity: 0.55;
	cursor: not-allowed;
}

.fi-export__format--locked:disabled {
	pointer-events: none;
}

.fi-export__lock {
	display: block;
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	color: inherit;
}

.fi-export__format:hover {
	color: var(--it-text);
	border-color: rgba(255, 255, 255, 0.16);
}

.fi-export__format.is-active {
	color: var(--it-text);
	border-color: rgba(var(--it-accent-rgb), 0.45);
	background: rgba(var(--it-accent-rgb), 0.14);
}

.fi-export__preset-wrap {
	position: relative;
}

.fi-export__preset {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 11px 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--it-text);
	font: inherit;
	font-size: 0.82rem;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.fi-export__preset:hover {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.05);
}

.fi-export__preset[aria-expanded="true"] {
	border-color: rgba(var(--it-accent-rgb), 0.45);
	background: rgba(var(--it-accent-rgb), 0.08);
}

.fi-export__preset svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	opacity: 0.65;
}

.fi-export__preset-menu {
	position: absolute;
	z-index: 20;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	margin: 0;
	padding: 6px;
	list-style: none;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	background: #12141a;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.fi-export__preset-menu[hidden] {
	display: none;
}

.fi-export__preset-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--it-text);
	font: inherit;
	font-size: 0.8rem;
	text-align: left;
	cursor: pointer;
}

.fi-export__preset-option:hover {
	background: rgba(255, 255, 255, 0.06);
}

.fi-export__preset-option.is-active {
	background: rgba(var(--it-accent-rgb), 0.14);
	color: var(--it-text);
}

.fi-export__preset-option-name {
	font-weight: 500;
}

.fi-export__preset-option-meta {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.66rem;
	color: var(--it-muted);
	white-space: nowrap;
}

.fi-export__dim-note {
	margin: 8px 0 0;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.68rem;
	color: var(--it-muted);
}

.fi-export__more {
	margin-top: 14px;
}

.fi-export__more-toggle {
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--it-muted);
	cursor: pointer;
	list-style: none;
}

.fi-export__more-toggle::-webkit-details-marker {
	display: none;
}

.fi-export__more-body {
	margin-top: 12px;
}

.fi-export__quality {
	display: block;
}

.fi-export__quality.is-hidden {
	display: none !important;
}

.fi-export__quality-label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.76rem;
	color: var(--it-muted);
}

.fi-export__quality-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
}

.fi-export__quality-row input[type="range"] {
	width: 100%;
}

.fi-export__quality-row output {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.72rem;
	color: var(--it-muted);
}

.fi-export__actions {
	display: grid;
	gap: 8px;
	margin-top: 16px;
}

.fi-export__download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
}

.fi-export__download svg {
	width: 16px;
	height: 16px;
}

.fi-export__copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 11px 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--it-btn-radius, 8px);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(var(--it-accent-rgb), 0.95);
	font: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.fi-export__copy:hover {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.16);
}

.fi-export__copy svg {
	width: 16px;
	height: 16px;
}


.fi-preview-export__icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.fi-preview-modes__btn {
	padding: 5px 9px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--it-muted);
	font: inherit;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fi-preview-modes__btn:hover {
	color: var(--it-text);
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.06);
}

.fi-preview-modes__btn.is-active {
	color: var(--it-text);
	border-color: rgba(var(--it-accent-rgb), 0.35);
	background: rgba(var(--it-accent-rgb), 0.12);
}

.fi-preview-modes__btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.fi-canvas-workspace {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 10px;
	flex: 1 1 auto;
	min-height: 0;
}

.fi-canvas-workspace > .fi-canvas-stage {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
}

.fi-artboard-dock {
	flex: 0 0 auto;
	align-self: center;
	position: relative;
	z-index: 20;
	pointer-events: none;
}

.fi-artboard-dock.is-floating {
	position: absolute;
	left: auto;
	top: auto;
	right: 8px;
	bottom: 8px;
	transform: none;
}

.fi-artboard-dock.is-hidden {
	display: none !important;
}

.fi-artboard-dock.is-dragging {
	z-index: 30;
}

.fi-artboard-panel {
	pointer-events: auto;
}

.fi-artboard-panel__inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	border-radius: 14px;
	background: rgba(18, 20, 24, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	overflow: hidden;
}

.fi-artboard-panel__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 10px 0 4px;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.82);
	cursor: pointer;
}

.fi-artboard-panel__icon {
	display: block;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.fi-artboard-panel__toggle:active {
	cursor: pointer;
}

.fi-artboard-panel__grip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: 100%;
	padding: 2px 0 4px;
	cursor: grab;
	opacity: 0.45;
}

.fi-artboard-panel__grip span {
	display: block;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
}

.fi-artboard-dock.is-dragging .fi-artboard-panel__grip,
.fi-artboard-dock.is-dragging .fi-artboard-panel__toggle {
	cursor: grabbing;
}

.fi-artboard-panel__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 2px 10px 12px;
	min-width: 84px;
}

.fi-artboard-panel__inner.is-collapsed .fi-artboard-panel__body {
	display: none;
}

.fi-artboard-panel__list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-height: min(52vh, 360px);
	overflow: auto;
	padding: 2px 0;
}

.fi-artboard-panel__list::-webkit-scrollbar {
	width: 4px;
}

.fi-artboard-panel__list::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.18);
	border-radius: 999px;
}

.fi-artboard-item {
	display: block;
	width: 56px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	background: #ececec;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fi-artboard-item:hover {
	border-color: rgba(255, 255, 255, 0.28);
	transform: translateY(-1px);
}

.fi-artboard-item.is-active {
	border-color: rgba(var(--it-accent-rgb, 47, 111, 237), 0.95);
	box-shadow: 0 0 0 1px rgba(var(--it-accent-rgb, 47, 111, 237), 0.45);
}

.fi-artboard-item__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background-color: #f3f3f3;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.fi-artboard-panel__add {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.88);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.fi-artboard-panel__add:hover,
.fi-artboard-panel__add:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.24);
	transform: scale(1.04);
}

.fi-artboard-panel__add svg {
	width: 16px;
	height: 16px;
}

.fi-canvas-toolbar-dock {
	flex: 0 0 auto;
	align-self: center;
	position: relative;
	z-index: 20;
	pointer-events: none;
}

.fi-canvas-toolbar-dock.is-floating {
	position: absolute;
	left: 50%;
	top: 8px;
	transform: translateX(-50%);
}

.fi-canvas-stage {
	position: relative;
	display: block;
	width: 100%;
	margin-bottom: 0;
	padding: 32px;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: transparent;
	overflow: auto;
	cursor: default;
	isolation: isolate;
}

.fi-canvas-stage::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	background-color: var(--xfp-grid-bg, #ffffff);
	opacity: var(--xfp-grid-opacity, 1);
	background-image: radial-gradient(circle, var(--xfp-grid-dot, rgba(0, 0, 0, 0.14)) 1.2px, transparent 1.2px);
	background-size: 15px 15px;
	pointer-events: none;
}

.fi-canvas-stage > .fi-canvas-viewport {
	position: relative;
	flex-shrink: 0;
	z-index: 1;
}

.fi-canvas-stage > .fi-canvas-upload,
.fi-canvas-stage > .fi-canvas-loading {
	position: absolute;
	inset: 0;
	z-index: 3;
}

.fi-canvas-stage > .fi-canvas-loading {
	z-index: 4;
}

.fi-canvas-stage > .fi-canvas-upload {
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
}

.fi-canvas-stage::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

.fi-canvas-stage::-webkit-scrollbar-thumb {
	background: transparent;
	border-radius: 999px;
}

.fi-canvas-stage:hover::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.22);
}

.fi-canvas-stage::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.34);
}

.fi-canvas-stage::-webkit-scrollbar-track {
	background: transparent;
}

.fi-canvas-stage {
	scrollbar-width: thin;
	scrollbar-color: transparent transparent;
}

.fi-canvas-stage:hover {
	scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.fi-canvas-toolbar-dock.is-hidden {
	display: none;
}

.fi-hero-metrics-dock {
	position: absolute;
	left: 50%;
	bottom: 14px;
	transform: translateX(-50%);
	z-index: 21;
	pointer-events: none;
}

.fi-hero-metrics-dock.is-floating {
	left: auto;
	bottom: auto;
	transform: none;
}

.fi-hero-metrics-dock.is-hidden {
	display: none;
}

.fi-hero-metrics-dock.is-dragging {
	user-select: none;
}

.fi-hero-metrics {
	pointer-events: auto;
}

.fi-hero-metrics__inner {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	padding: 7px 10px 7px 8px;
	border-radius: var(--xfp-pill-radius, 5px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(17, 17, 20, 0.94);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(10px);
	transition: padding 0.28s ease, box-shadow 0.28s ease;
}

.fi-hero-metrics__inner.is-collapsed {
	padding-right: 8px;
}

.fi-hero-metrics__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: var(--xfp-pill-radius, 5px);
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background 0.16s ease, transform 0.2s ease;
}

.fi-hero-metrics__brand:hover {
	background: rgba(255, 255, 255, 0.08);
}

.fi-hero-metrics__brand:active {
	transform: scale(0.94);
}

.fi-hero-metrics__inner.is-collapsed .fi-hero-metrics__brand {
	cursor: grab;
}

.fi-hero-metrics-dock.is-dragging .fi-hero-metrics__brand {
	cursor: grabbing;
}

.fi-hero-metrics__logo {
	display: block;
	width: 20px;
	height: auto;
	position: relative;
	z-index: 1;
	animation: it-logo-glitch 2s steps(1, end) infinite;
}

.fi-hero-metrics__body {
	display: grid;
	grid-template-columns: 1fr;
	opacity: 1;
	transition:
		grid-template-columns 0.32s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.24s ease;
}

.fi-hero-metrics__inner.is-collapsed .fi-hero-metrics__body {
	grid-template-columns: 0fr;
	opacity: 0;
	pointer-events: none;
}

.fi-hero-metrics__body-inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	min-width: 0;
	overflow: hidden;
}

.fi-hero-metrics__grip {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	flex: 0 0 auto;
	padding: 0 2px;
	cursor: grab;
	opacity: 0.45;
}

.fi-hero-metrics__grip span {
	display: block;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
}

.fi-hero-metrics-dock.is-dragging .fi-hero-metrics__grip {
	cursor: grabbing;
}

.fi-hero-metrics__controls {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.fi-hero-metrics__case {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 2px;
	padding: 2px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.fi-hero-metrics__case-btn {
	min-width: 2rem;
	height: 1.65rem;
	padding: 0 0.45rem;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.68rem;
	font-weight: 600;
	font-family: Inter, system-ui, sans-serif;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.fi-hero-metrics__case-btn:hover {
	color: rgba(255, 255, 255, 0.88);
	background: rgba(255, 255, 255, 0.06);
}

.fi-hero-metrics__case-btn.is-active {
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
}

.fi-hero-metrics__case-btn:focus-visible {
	outline: 2px solid rgba(var(--it-accent-rgb), 0.55);
	outline-offset: 1px;
}

.fi-hero-metric {
	display: grid;
	grid-template-columns: auto minmax(88px, 132px) auto;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin: 0;
	cursor: default;
}

.fi-hero-metric__label {
	font-size: 0.72rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.52);
	white-space: nowrap;
}

.fi-hero-metric__value {
	min-width: 3.4em;
	font-size: 0.72rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, 0.9);
	text-align: right;
	white-space: nowrap;
}

.fi-hero-metric__range {
	width: 100%;
	min-width: 0;
	height: 4px;
	margin: 0;
	padding: 0;
	appearance: none;
	background: transparent;
	cursor: pointer;
}

.fi-hero-metric__range::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
}

.fi-hero-metric__range::-webkit-slider-thumb {
	appearance: none;
	width: 12px;
	height: 12px;
	margin-top: -4px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.fi-hero-metric__range::-moz-range-track {
	height: 4px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
}

.fi-hero-metric__range::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.fi-hero-metric__range:hover::-webkit-slider-thumb,
.fi-hero-metric__range:hover::-moz-range-thumb {
	transform: scale(1.06);
}

.fi-hero-metric__range:focus {
	outline: none;
}

.fi-hero-metric__range:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 2px rgba(var(--it-accent-rgb), 0.35);
}

.fi-hero-metric__range:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 2px rgba(var(--it-accent-rgb), 0.35);
}

@media (max-width: 860px) {
	.fi-hero-metrics__controls {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.fi-hero-metric {
		grid-template-columns: auto minmax(64px, 1fr) auto;
	}
}

.fi-canvas-toolbar-dock.is-dragging {
	user-select: none;
}

.fi-canvas-toolbar {
	pointer-events: auto;
}

.fi-canvas-toolbar__inner {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 999px;
	border: 1px solid #e6e6e6;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
	backdrop-filter: none;
	transition: padding 0.28s ease, box-shadow 0.28s ease;
}

.fi-canvas-toolbar__inner.is-collapsed {
	padding: 8px;
}

.fi-canvas-toolbar__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #e2e2e2;
	border-radius: 50%;
	background: #ffffff;
	color: #111111;
	cursor: pointer;
	transition: background 0.16s ease, border-color 0.16s ease, transform 0.2s ease;
}

.fi-canvas-toolbar__brand:hover {
	background: #f5f5f5;
	border-color: #d4d4d4;
}

.fi-canvas-toolbar__brand:active {
	transform: scale(0.96);
}

.fi-canvas-toolbar__inner.is-collapsed .fi-canvas-toolbar__brand {
	height: 40px;
	cursor: grab;
}

.fi-canvas-toolbar-dock.is-dragging .fi-canvas-toolbar__brand {
	cursor: grabbing;
}

.fi-canvas-toolbar__logo {
	display: block;
	width: 18px;
	height: auto;
	position: relative;
	z-index: 1;
	filter: brightness(0);
	animation: none;
}

.fi-canvas-toolbar__tools {
	display: grid;
	grid-template-columns: 1fr;
	width: auto;
	opacity: 1;
	transform: translateX(0);
	overflow: visible;
	transition:
		grid-template-columns 0.32s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.24s ease,
		transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.fi-canvas-toolbar__inner.is-collapsed .fi-canvas-toolbar__tools {
	grid-template-columns: 0fr;
	opacity: 0;
	transform: translateX(-4px);
	pointer-events: none;
	overflow: hidden;
}

.fi-canvas-toolbar__tools-inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	min-width: 0;
	overflow: visible;
}

.fi-canvas-toolbar__grip {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: 10px;
	height: 40px;
	padding: 0;
	cursor: grab;
	opacity: 0.55;
}

.fi-canvas-toolbar__grip span {
	display: block;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #c8c8c8;
}

.fi-canvas-toolbar-dock.is-dragging .fi-canvas-toolbar__grip {
	cursor: grabbing;
}

.fi-canvas-toolbar__sep {
	flex-shrink: 0;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #cfcfcf;
}

.fi-canvas-toolbar__btn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid #e2e2e2;
	border-radius: 50%;
	padding: 0;
	background: #ffffff;
	color: #1a1a1a;
	cursor: pointer;
	transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.fi-canvas-toolbar__embed-only {
	display: none;
}

html[data-xfp-embed] .fi-canvas-toolbar__sep.fi-canvas-toolbar__embed-only {
	display: block;
}

html[data-xfp-embed] .fi-canvas-toolbar__btn.fi-canvas-toolbar__embed-only {
	display: grid;
}

.fi-canvas-toolbar__btn svg {
	width: 18px;
	height: 18px;
}

.fi-canvas-toolbar__btn.is-busy svg {
	animation: fi-toolbar-reload-spin 0.75s linear infinite;
}

@keyframes fi-toolbar-reload-spin {
	to { transform: rotate(360deg); }
}

.fi-canvas-toolbar__btn:hover {
	color: #111111;
	background: #f5f5f5;
	border-color: #d4d4d4;
}

.fi-canvas-toolbar__btn.is-active {
	color: #ffffff;
	background: #111111;
	border-color: #111111;
	box-shadow: none;
}

.fi-canvas-toolbar__btn.is-active:hover {
	background: #252525;
	border-color: #252525;
}

.fi-canvas-toolbar__shape {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
}

.fi-canvas-toolbar__shape .fi-canvas-toolbar__btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.fi-canvas-toolbar__shape.is-active {
	background: transparent;
	box-shadow: none;
}

.fi-canvas-toolbar__shape.is-active .fi-canvas-toolbar__btn,
.fi-canvas-toolbar__shape.is-active .fi-canvas-toolbar__chev {
	color: #ffffff;
}

.fi-canvas-toolbar__shape.is-active .fi-canvas-toolbar__btn.is-active {
	background: #111111;
	border-color: #111111;
	box-shadow: none;
}

.fi-canvas-toolbar__shape.is-active .fi-canvas-toolbar__chev {
	border-color: #111111;
	background: #111111;
	color: #ffffff;
}

.fi-canvas-toolbar__shape.is-active:hover {
	background: transparent;
}

[data-fi-shape-tool-trigger] {
	position: relative;
	overflow: hidden;
}

[data-fi-shape-tool-trigger] [data-fi-shape-tool-icon] {
	position: absolute;
	inset: 0;
	margin: auto;
}

[data-fi-shape-tool-trigger] [data-fi-shape-tool-icon][hidden] {
	display: none !important;
}

.fi-canvas-toolbar__chev {
	display: grid;
	place-items: center;
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	border: 1px solid #e2e2e2;
	border-radius: 50%;
	background: #ffffff;
	color: #1a1a1a;
	cursor: pointer;
	z-index: 1;
}

.fi-canvas-toolbar__chev svg {
	width: 8px;
	height: 8px;
}

.fi-canvas-toolbar__chev:hover {
	color: #111111;
	background: #f5f5f5;
	border-color: #d4d4d4;
}

.fi-canvas-toolbar__shape.is-open .fi-canvas-toolbar__chev {
	color: #111111;
	background: #f0f0f0;
}

.fi-shape-tool-menu {
	position: absolute;
	z-index: 200;
	min-width: 168px;
	padding: 4px;
	border: 1px solid #e6e6e6;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.fi-shape-tool-menu[hidden] {
	display: none !important;
}

.fi-shape-tool-menu--workspace {
	top: calc(100% + 6px);
	bottom: auto;
	left: 50%;
	transform: translateX(-50%);
}

.fi-shape-tool-menu__item {
	display: grid;
	grid-template-columns: 16px 20px 1fr auto;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 7px 8px;
	border: 0;
	border-radius: 10px;
	color: #1a1a1a;
	font-size: 12px;
	text-align: left;
	background: transparent;
	cursor: pointer;
}

.fi-shape-tool-menu__item:hover {
	background: #f4f4f4;
}

.fi-shape-tool-menu__item.is-active {
	color: #111111;
	background: #f0f0f0;
}

.fi-shape-tool-menu__check {
	opacity: 0;
	font-size: 11px;
	line-height: 1;
}

.fi-shape-tool-menu__item.is-active .fi-shape-tool-menu__check {
	opacity: 1;
}

.fi-shape-tool-menu__icon {
	display: grid;
	place-items: center;
	color: #555555;
}

.fi-shape-tool-menu__item.is-active .fi-shape-tool-menu__icon {
	color: #111111;
}

.fi-shape-tool-menu__icon svg {
	width: 16px;
	height: 16px;
}

.fi-shape-tool-menu__key {
	font-size: 10px;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	color: #888888;
}

.fi-canvas-stage.is-canvas-tool-move {
	cursor: default;
}

.fi-canvas-stage.is-canvas-tool-text {
	cursor: text;
}

.fi-canvas-stage.is-canvas-tool-shape {
	cursor: crosshair;
}

.fi-canvas-stage.is-canvas-tool-pen,
.fi-canvas-stage.is-canvas-tool-pen .fi-canvas {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 19l7-7 3 3-7 7-3-3z' fill='%23ffffff' stroke='%23000000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z' fill='%23ffffff' stroke='%23000000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M2 2l7.586 7.586' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='11' cy='11' r='2' fill='%23ffffff' stroke='%23000000' stroke-width='1.5'/%3E%3C/svg%3E") 2 2, crosshair;
}

.fi-canvas-stage.is-canvas-tool-brush,
.fi-canvas-stage.is-canvas-tool-brush .fi-canvas {
	cursor: crosshair;
}

.fi-canvas-stage.is-canvas-tool-edit,
.fi-canvas-stage.is-canvas-tool-edit .fi-canvas {
	cursor: default;
}

.fi-canvas-stage.is-canvas-tool-hand,
.fi-canvas-stage.is-canvas-tool-hand .fi-canvas-viewport {
	cursor: grab;
}

.fi-canvas-viewport.is-hand-tool {
	cursor: grab;
}

.fi-canvas-viewport.is-panning,
.fi-canvas-viewport.is-panning * {
	cursor: grabbing !important;
}

.fi-canvas-viewport.is-pen-convert,
.fi-canvas-viewport.is-pen-convert * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 19l7-7 3 3-7 7-3-3z' fill='%23ffffff' stroke='%23000000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z' fill='%23ffffff' stroke='%23000000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M2 2l7.586 7.586' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M16.5 3l4 4M20.5 3l-4 4' stroke='%230d99ff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 2 2, crosshair !important;
}

.fi-canvas-viewport.is-pen-connect,
.fi-canvas-viewport.is-pen-connect * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 19l7-7 3 3-7 7-3-3z' fill='%23ffffff' stroke='%23000000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z' fill='%23ffffff' stroke='%23000000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M2 2l7.586 7.586' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M18 5.5m-2.5 0a2.5 2.5 0 1 0 5 0a2.5 2.5 0 1 0 -5 0' fill='none' stroke='%230d99ff' stroke-width='1.5'/%3E%3C/svg%3E") 2 2, crosshair !important;
}

/* Vector path / shape context bar (sticky under selection) */
.fi-path-shape-bar {
	display: flex;
	align-items: center;
}

.fi-path-shape-bar--sticky {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 45;
	pointer-events: none;
	margin: 0;
	will-change: left, top;
}

.fi-path-shape-bar.is-hidden,
.fi-path-shape-bar[hidden] {
	display: none !important;
}

.fi-path-shape-bar__inner {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	border-radius: 5px;
	background: rgba(20, 22, 26, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
	pointer-events: auto;
}

.fi-image-bar {
	display: flex;
	align-items: center;
}

.fi-image-bar--sticky {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 45;
	pointer-events: none;
	margin: 0;
	will-change: left, top;
}

.fi-image-bar.is-hidden,
.fi-image-bar[hidden] {
	display: none !important;
}

.fi-image-bar__inner {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 6px;
	border-radius: 6px;
	background: rgba(20, 22, 26, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
	pointer-events: auto;
}

.fi-image-bar__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 12px;
	border: 0;
	border-radius: 5px;
	background: rgba(var(--it-accent-rgb, 47, 111, 237), 0.16);
	color: var(--it-text, #f4f4f5);
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.fi-image-bar__btn:hover {
	background: rgba(var(--it-accent-rgb, 47, 111, 237), 0.28);
}

.fi-image-bar__btn:disabled,
.fi-image-bar__btn.is-busy {
	opacity: 0.75;
	cursor: progress;
}

/* Minimal loading overlay while background removal runs. */
.fi-bg-remove-fx {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 44;
	display: grid;
	place-items: center;
	pointer-events: none;
	overflow: hidden;
	border-radius: 3px;
	background: transparent;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	will-change: left, top, width, height, transform;
}

.fi-bg-remove-fx.is-hidden,
.fi-bg-remove-fx[hidden] {
	display: none !important;
}

.fi-bg-remove-fx__veil {
	position: absolute;
	inset: 0;
	background: rgba(8, 10, 14, 0.28);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	animation: fi-bg-remove-veil-pulse 2.4s ease-in-out infinite;
}

.fi-bg-remove-fx__loader {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	gap: 6px;
	min-width: 64px;
	padding: 10px 12px;
	border-radius: 999px;
	background: rgba(12, 14, 18, 0.55);
	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.22),
		inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.fi-bg-remove-fx__pct {
	font-size: 11px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	color: rgba(255, 255, 255, 0.92);
	letter-spacing: 0.02em;
}

.fi-bg-remove-fx__ring {
	display: block;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.14);
	border-top-color: rgba(var(--it-accent-rgb, 47, 111, 237), 0.95);
	animation: fi-bg-remove-spin 0.75s linear infinite;
}

@keyframes fi-bg-remove-spin {
	to { transform: rotate(360deg); }
}

@keyframes fi-bg-remove-veil-pulse {
	0%, 100% { opacity: 0.92; }
	50% { opacity: 1; }
}

.fi-image-bar__icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.fi-text-fmt-bar {
	display: flex;
	align-items: center;
}

.fi-text-fmt-bar--sticky {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 45;
	pointer-events: none;
	margin: 0;
	will-change: left, top;
}

.fi-text-fmt-bar.is-hidden,
.fi-text-fmt-bar[hidden] {
	display: none !important;
}

.fi-text-fmt-bar__inner {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	border-radius: 8px;
	background: rgba(20, 22, 26, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
	pointer-events: auto;
}

.fi-text-fmt-bar__sep {
	width: 1px;
	height: 20px;
	background: rgba(255, 255, 255, 0.12);
}

.fi-text-fmt-bar__btn {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 7px;
	background: transparent;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9rem;
	cursor: pointer;
}

.fi-text-fmt-bar__btn--bold {
	font-weight: 800;
	font-family: Georgia, "Times New Roman", serif;
}

.fi-text-fmt-bar__btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.fi-text-fmt-bar__btn.is-active {
	background: rgba(13, 153, 255, 0.22);
	border-color: rgba(13, 153, 255, 0.6);
	color: #fff;
}

.fi-text-fmt-bar__swatch {
	display: inline-flex;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	overflow: hidden;
	cursor: pointer;
	background: #f5f5f5;
}

.fi-text-fmt-bar__color {
	width: 200%;
	height: 200%;
	margin: -25%;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
}

.fi-text-fmt-bar__font {
	max-width: 120px;
	padding: 0 6px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.82);
}

.fi-path-shape-bar__group {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 0 2px;
}

.fi-path-shape-bar__lbl {
	font-size: 12px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.55);
}

.fi-path-shape-bar__swatch {
	position: relative;
	display: block;
	width: 26px;
	height: 22px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	cursor: pointer;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.fi-path-shape-bar__color {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: none;
	opacity: 0;
	cursor: pointer;
}

.fi-path-shape-bar__none {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border: none;
	border-radius: 6px;
	color: rgba(255, 255, 255, 0.5);
	background: transparent;
	cursor: pointer;
	transition: background 0.12s, color 0.12s;
}

.fi-path-shape-bar__none svg {
	width: 16px;
	height: 16px;
}

.fi-path-shape-bar__none:hover {
	color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.06);
}

.fi-path-shape-bar__none.is-active {
	color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.08);
}

.fi-path-shape-bar__sep {
	width: 1px;
	height: 20px;
	background: rgba(255, 255, 255, 0.12);
}

.fi-path-shape-bar__num {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 6px;
	border-radius: 6px;
	border: 1px solid transparent;
}

.fi-path-shape-bar__num:focus-within {
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.04);
}

.fi-path-shape-bar__input {
	width: 36px;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.88);
	font-size: 12px;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	text-align: right;
}

.fi-path-shape-bar__input:focus {
	outline: none;
}

.fi-path-shape-bar__input::-webkit-outer-spin-button,
.fi-path-shape-bar__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.fi-path-shape-bar__unit {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.45);
}

.fi-path-shape-bar__icon {
	display: grid;
	place-items: center;
	color: rgba(255, 255, 255, 0.45);
}

.fi-path-shape-bar__icon svg {
	width: 15px;
	height: 15px;
}

.fi-path-shape-bar__num--radius .fi-path-shape-bar__input {
	width: 40px;
	text-align: center;
}

.fi-path-shape-bar__num--radius[hidden],
.fi-path-shape-bar__sep[hidden] {
	display: none;
}

.fi-canvas-stage > .fi-canvas-viewport {
	z-index: 1;
	margin: 0;
}

.fi-canvas-stage > .fi-canvas-upload {
	z-index: 3;
}

.fi-canvas-stage > .fi-canvas-loading {
	z-index: 4;
}

.fi-canvas-viewport {
	position: relative;
	display: block;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	max-width: none;
	max-height: none;
	margin: 0;
	flex-shrink: 0;
}

.fi-artboard-pasteboard {
	position: relative;
	width: 100%;
	height: 100%;
}

.fi-artboard-pasteboard.is-single-view .fi-artboard-frame__header {
	cursor: default;
}

.fi-artboard-nav {
	position: absolute;
	left: 50%;
	bottom: 16px;
	z-index: 6;
	display: flex;
	align-items: center;
	gap: 10px;
	transform: translateX(-50%);
	padding: 6px 8px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(20, 20, 22, 0.82);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(10px);
	pointer-events: auto;
}

.fi-artboard-nav[hidden] {
	display: none;
}

.fi-artboard-nav__btn {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.92);
	cursor: pointer;
}

.fi-artboard-nav__btn:hover:not(:disabled),
.fi-artboard-nav__btn:focus-visible:not(:disabled) {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.28);
}

.fi-artboard-nav__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.fi-artboard-nav__index {
	min-width: 3.6em;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-align: center;
	color: rgba(255, 255, 255, 0.88);
	user-select: none;
}

.fi-artboard-frame {
	position: absolute;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	overflow: visible;
	isolation: isolate;
}

.fi-artboard-frame[hidden],
.fi-artboard-frame.is-offstage {
	display: flex !important;
	visibility: hidden;
	pointer-events: none;
}

.fi-artboard-frame__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	height: 28px;
	padding: 0 4px 0 10px;
	background: rgba(28, 28, 30, 0.96);
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0;
	cursor: grab;
	user-select: none;
	box-sizing: border-box;
	flex-shrink: 0;
}

.fi-artboard-frame__header.is-dragging {
	cursor: grabbing;
}

.fi-artboard-frame.is-active .fi-artboard-frame__header {
	background: rgba(34, 34, 38, 0.98);
}

.fi-artboard-frame__title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.01em;
	color: rgba(255, 255, 255, 0.72);
}

.fi-artboard-frame.is-active .fi-artboard-frame__title {
	color: rgba(255, 255, 255, 0.92);
}

.fi-artboard-frame__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	flex-shrink: 0;
}

.fi-artboard-frame__close:hover {
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.92);
}

.fi-artboard-frame__close svg {
	width: 14px;
	height: 14px;
}

.fi-artboard-frame__close[hidden] {
	display: none;
}

.fi-artboard-frame__body {
	position: relative;
	flex: 1;
	min-height: 0;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.fi-artboard-frame.is-active .fi-canvas {
	box-shadow: 0 8px 28px rgba(17, 17, 28, 0.14);
}

.fi-artboard-frame:not(.is-active) .fi-canvas {
	box-shadow: 0 4px 16px rgba(17, 17, 28, 0.1);
	cursor: pointer;
}

.fi-canvas:focus,
.fi-canvas:focus-visible {
	outline: none;
}

.fi-artboard-frame__body.is-transparent-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-color: #ffffff;
	background-image:
		linear-gradient(45deg, #e6e6e6 25%, transparent 25%),
		linear-gradient(-45deg, #e6e6e6 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #e6e6e6 75%),
		linear-gradient(-45deg, transparent 75%, #e6e6e6 75%);
	background-size: 16px 16px;
	background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.fi-artboard-frame__body.is-transparent-bg > .fi-canvas {
	position: relative;
	z-index: 1;
}

.fi-artboard-overlay-layer {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	pointer-events: auto;
	overflow: visible;
}

.fi-artboard-overlay-layer > .fi-text-box-preview,
.fi-artboard-overlay-layer > .fi-marquee-preview,
.fi-artboard-overlay-layer > .fi-canvas-elements,
.fi-artboard-overlay-layer > .fi-canvas-snap-guides {
	pointer-events: none;
}

.fi-artboard-overlay-layer > .fi-text-edit-wrap,
.fi-artboard-overlay-layer > .fi-canvas-transform .fi-canvas-transform__handle,
.fi-artboard-overlay-layer > .fi-canvas-transform .fi-canvas-transform__rotate,
.fi-artboard-overlay-layer > .fi-canvas-transform .fi-canvas-transform__corner-radius {
	pointer-events: auto;
}

.fi-canvas-viewport > .fi-canvas,
.fi-artboard-frame > .fi-canvas {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	aspect-ratio: auto;
	box-shadow: 0 8px 28px rgba(17, 17, 28, 0.14);
}

.fi-canvas-viewport.is-transparent-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-color: #ffffff;
	background-image:
		linear-gradient(45deg, #e6e6e6 25%, transparent 25%),
		linear-gradient(-45deg, #e6e6e6 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #e6e6e6 75%),
		linear-gradient(-45deg, transparent 75%, #e6e6e6 75%);
	background-size: 16px 16px;
	background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.fi-canvas-viewport.is-transparent-bg > .fi-canvas {
	position: relative;
	z-index: 1;
}

.fi-canvas-viewport > .fi-canvas-elements,
.fi-artboard-overlay-layer > .fi-canvas-elements {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	pointer-events: none;
}

.fi-canvas-snap-guides {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	overflow: visible;
}

.fi-canvas-snap-guides[hidden] {
	display: none !important;
}

.fi-canvas-snap-guide {
	position: absolute;
	background: #5ac8fa;
	opacity: 0.92;
}

.fi-canvas-snap-guide--v {
	top: 0;
	bottom: 0;
	width: 1px;
	transform: translateX(-0.5px);
}

.fi-canvas-snap-guide--h {
	left: 0;
	right: 0;
	height: 1px;
	transform: translateY(-0.5px);
}

.fi-canvas-layer {
	pointer-events: none !important;
}

.fi-canvas-layer.is-selected.is-multi {
	outline: 1px solid var(--fi-transform-cyan, #40c4ff);
	outline-offset: -1px;
}

.fi-text-edit-wrap {
	position: absolute;
	z-index: 5;
	pointer-events: none;
	box-sizing: border-box;
	display: flex;
	overflow: visible;
}

.fi-text-edit-wrap.is-editing {
	pointer-events: auto;
	outline: none;
	background: transparent;
	box-shadow: none;
	border-radius: 2px;
}

.fi-text-edit-wrap[hidden] {
	display: none !important;
}

.fi-text-box-preview {
	position: absolute;
	z-index: 3;
	pointer-events: none;
	box-sizing: border-box;
	border: 1px dashed rgba(var(--it-accent-rgb), 0.75);
	background: rgba(var(--it-accent-rgb), 0.06);
}

.fi-text-box-preview[hidden] {
	display: none !important;
}

.fi-marquee-preview {
	position: absolute;
	z-index: 3;
	pointer-events: none;
	box-sizing: border-box;
	border: 1px dashed rgba(20, 120, 255, 0.85);
	background: rgba(20, 120, 255, 0.06);
}

.fi-marquee-preview[hidden] {
	display: none !important;
}

.fi-text-edit {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	resize: none;
	overflow: hidden;
	outline: none;
	box-shadow: none;
	box-sizing: border-box;
	cursor: text;
	caret-color: rgb(var(--it-accent-rgb));
	-webkit-text-fill-color: currentColor;
	scrollbar-width: none;
}

.fi-text-edit::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.fi-text-edit-wrap.is-box-frame .fi-text-edit {
	color: transparent;
	-webkit-text-fill-color: transparent;
	overflow: hidden !important;
}

.fi-text-edit-wrap.is-box-frame .fi-text-edit::selection {
	background: rgba(var(--it-accent-rgb), 0.38);
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.fi-canvas-stage.is-canvas-tool-text .fi-canvas-layer--custom-text {
	cursor: text;
}

.fi-canvas-viewport > .fi-canvas-transform,
.fi-artboard-overlay-layer > .fi-canvas-transform {
	position: absolute;
	inset: 0;
	z-index: 6;
	pointer-events: none;
}

.fi-canvas-transform.is-hidden {
	display: none !important;
}

.fi-canvas-transform__frame {
	position: absolute;
	box-sizing: border-box;
	border: 1px solid var(--fi-transform-cyan, #40c4ff);
	transform-origin: center center;
	pointer-events: auto;
	cursor: move;
}

.fi-canvas-transform__handle,
.fi-canvas-transform__rotate {
	position: absolute;
	pointer-events: auto;
	touch-action: none;
	box-sizing: border-box;
}

.fi-canvas-transform__handle {
	background: #ffffff;
	border: 1.5px solid var(--fi-transform-cyan, #40c4ff);
	box-shadow: none;
	border-radius: 50%;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
}

.fi-canvas-transform__handle--nw { left: 0; top: 0; cursor: nwse-resize; }
.fi-canvas-transform__handle--ne { left: 100%; top: 0; cursor: nesw-resize; }
.fi-canvas-transform__handle--se { left: 100%; top: 100%; cursor: nwse-resize; }
.fi-canvas-transform__handle--sw { left: 0; top: 100%; cursor: nesw-resize; }

.fi-canvas-transform__handle--n,
.fi-canvas-transform__handle--s {
	opacity: 0;
	pointer-events: none;
}

.fi-canvas-transform__handle--e,
.fi-canvas-transform__handle--w {
	width: 8px;
	height: 18px;
	border-radius: 999px;
	margin: -9px 0 0 -4px;
}

.fi-canvas-transform__handle--e { left: 100%; top: 50%; cursor: ew-resize; }
.fi-canvas-transform__handle--w { left: 0; top: 50%; cursor: ew-resize; }

.fi-canvas-transform__rotate {
	left: 50%;
	top: 0;
	width: 22px;
	height: 22px;
	margin: -40px 0 0 -11px;
	border-radius: 50%;
	background: var(--fi-transform-cyan, #40c4ff);
	border: none;
	box-shadow: none;
	cursor: grab;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
}

.fi-canvas-transform__rotate-icon {
	width: 14px;
	height: 14px;
	display: block;
	pointer-events: none;
}

.fi-canvas-transform__rotate::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	width: 1px;
	height: 12px;
	margin-left: -0.5px;
	background: var(--fi-transform-cyan, #40c4ff);
	pointer-events: none;
}

.fi-canvas-transform__rotate:active {
	cursor: grabbing;
}

.fi-canvas-transform__corner-radius {
	position: absolute;
	z-index: 2;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	border-radius: 50%;
	pointer-events: auto;
	touch-action: none;
	background: #ffffff;
	border: 1.5px solid var(--fi-transform-cyan, #40c4ff);
	box-shadow: none;
}

.fi-canvas-transform__corner-radius:hover {
	background: rgba(64, 196, 255, 0.14);
}

.fi-canvas-stage.is-drag-over {
	border-color: rgba(var(--it-accent-rgb), 0.42);
	box-shadow: inset 0 0 0 2px rgba(var(--it-accent-rgb), 0.16);
}

.fi-canvas-stage.is-awaiting-font .fi-canvas-viewport {
	display: none !important;
}

.fi-canvas-stage.is-drag-over .fi-canvas-upload__icon-wrap {
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24), 0 0 0 2px rgba(var(--it-accent-rgb), 0.35);
}

.fi-canvas-upload {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	pointer-events: auto;
}

.fi-canvas-upload.is-hidden {
	display: none !important;
}

.fi-canvas-upload:focus-visible {
	outline: 2px solid rgba(0, 0, 0, 0.35);
	outline-offset: 4px;
	border-radius: var(--xfp-pill-radius, 5px);
}

.fi-canvas-upload__halo {
	position: absolute;
	inset: 4px;
	border-radius: var(--xfp-pill-radius, 5px);
	border: 1px solid rgba(var(--it-accent-rgb, 47, 111, 237), 0.22);
	animation: fi-canvas-upload-halo 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
	pointer-events: none;
}

.fi-canvas-upload__halo--delayed {
	animation-delay: 1.4s;
}

.fi-canvas-upload__icon-wrap {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: var(--xfp-pill-radius, 5px);
	border: 1px solid rgba(var(--it-accent-rgb, 47, 111, 237), 0.28);
	background: rgba(17, 17, 20, 0.94);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	animation: fi-canvas-upload-float 3s ease-in-out infinite;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.fi-canvas-upload:hover .fi-canvas-upload__icon-wrap,
.fi-canvas-upload:focus-visible .fi-canvas-upload__icon-wrap {
	transform: translateY(-1px) scale(1.03);
	border-color: rgba(var(--it-accent-rgb, 47, 111, 237), 0.45);
	box-shadow: 0 12px 28px rgba(var(--it-accent-rgb, 47, 111, 237), 0.18);
}

.fi-canvas-upload__plus {
	width: 28px;
	height: 28px;
	color: var(--it-accent, #2f6fed);
	animation: fi-canvas-upload-plus 2.4s ease-in-out infinite;
}

@keyframes fi-canvas-upload-halo {
	0% {
		transform: scale(0.88);
		opacity: 0.75;
	}
	70% {
		opacity: 0.28;
	}
	100% {
		transform: scale(1.45);
		opacity: 0;
	}
}

@keyframes fi-canvas-upload-float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-3px);
	}
}

@keyframes fi-canvas-upload-plus {
	0%, 100% {
		opacity: 0.88;
		transform: scale(1);
	}
	50% {
		opacity: 1;
		transform: scale(1.08);
	}
}

.fi-app.is-workspace-ready .fi-canvas-loading,
.fi-canvas-loading {
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: 32px 20px;
	text-align: center;
	background: rgba(0, 0, 0, 0.42);
	backdrop-filter: blur(4px);
}

.fi-canvas-loading.is-hidden {
	display: none !important;
}

.fi-canvas-loading__inner {
	width: min(100%, 360px);
}

.fi-canvas-loading__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
	width: 56px;
	height: 64px;
}

.fi-canvas-loading__logo {
	display: block;
	width: 48px;
	height: auto;
	position: relative;
	z-index: 1;
	animation: it-logo-glitch 1.4s steps(1, end) infinite;
}

.fi-canvas-loading__label {
	margin: 0 0 16px;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--it-text);
}

.fi-canvas-loading__track {
	position: relative;
	height: 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.fi-canvas-loading__fill {
	position: relative;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, #1d4ed8 0%, var(--it-accent, #2f6fed) 45%, var(--it-accent-hover, #3b82f6) 100%);
	transition: width 0.12s ease-out;
	overflow: hidden;
}

.fi-canvas-loading__fill::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 255, 255, 0.35) 50%,
		transparent 100%
	);
	animation: fi-loading-shimmer 1.1s ease-in-out infinite;
}

.fi-canvas-loading__pct {
	margin-top: 10px;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: var(--it-muted);
}

@keyframes fi-loading-shimmer {
	0% { transform: translateX(-120%); }
	100% { transform: translateX(220%); }
}

.fi-canvas-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: min(42vh, 420px);
	padding: 40px 24px;
	text-align: center;
}

.fi-canvas-empty__icon {
	margin-bottom: 14px;
	color: rgba(255, 255, 255, 0.35);
}

.fi-canvas-empty__title {
	margin: 0 0 6px;
	font-size: 1rem;
	font-weight: 600;
}

.fi-canvas-empty__hint {
	margin: 0;
	font-size: 0.82rem;
	color: var(--it-muted);
}

.fi-canvas {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	aspect-ratio: 3 / 2;
	image-rendering: auto;
}

.fi-canvas.is-custom-edit {
	cursor: text;
}

.fi-canvas.is-custom-edit:focus-visible {
	outline: 2px solid rgba(var(--it-accent-rgb), 0.45);
	outline-offset: 2px;
}

.fi-canvas.is-hidden {
	display: none !important;
}

/* —— Setting panel (below canvas) —— */

.fi-settings {
	margin-top: 0;
	padding: 16px 18px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
}

.fi-settings.is-hidden {
	display: none !important;
}

.fi-settings__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fi-settings__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.72);
}

.fi-settings__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.fi-settings__badge {
	margin-left: auto;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.fi-settings__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
	gap: 20px 28px;
	align-items: start;
}

.fi-settings__col {
	min-width: 0;
}

.fi-settings__hint {
	font-size: 0.74rem;
	color: var(--it-muted);
	line-height: 1.45;
}

.fi-settings__block + .fi-settings__block,
.fi-preview-text + .fi-settings__block {
	margin-top: 18px;
}

.fi-settings__block-title {
	margin: 0 0 4px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--it-muted);
}

.fi-settings__block-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.fi-settings__block-head .fi-settings__block-title {
	margin: 0;
}

.fi-settings__badge--soon {
	flex-shrink: 0;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(var(--it-accent-rgb), 0.95);
	background: rgba(var(--it-accent-rgb), 0.12);
	border: 1px solid rgba(var(--it-accent-rgb), 0.28);
}

.fi-settings__block-cta {
	color: rgba(255, 255, 255, 0.58);
}

.fi-settings__block-lead {
	margin: 0 0 12px;
	font-size: 0.78rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.42);
}

.fi-overlay-fields {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fi-workspace-typography .fi-overlay-fields.fi-overlay-fields--grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 8px 12px;
	align-items: start;
}

.fi-overlay-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fi-overlay-sliders {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 10px;
}

.fi-size--compact {
	--fi-slider-thumb: 10px;
	gap: 4px;
}

.fi-size--compact .fi-size__label {
	font-size: 0.68rem;
}

.fi-size--compact .fi-size__value {
	font-size: 0.66rem;
}

.fi-overlay-logo {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.fi-overlay-logo__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.fi-overlay-logo__name {
	flex: 1 1 120px;
	min-width: 0;
	font-size: 0.78rem;
	color: var(--it-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fi-overlay-logo__name.is-empty {
	color: var(--it-muted);
}

.fi-overlay-logo__clear.is-hidden {
	display: none;
}

.fi-overlay-logo__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.fi-mp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 10px;
}

.fi-mp-card {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--it-text);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.fi-mp-card:hover {
	border-color: rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.05);
}

.fi-mp-card.is-active {
	border-color: rgba(var(--it-accent-rgb), 0.65);
	background: rgba(var(--it-accent-rgb), 0.08);
	box-shadow: 0 0 0 1px rgba(var(--it-accent-rgb), 0.28);
}

.fi-mp-card__preview {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 68px;
	overflow: hidden;
	border-radius: 8px;
	background: linear-gradient(
		145deg,
		color-mix(in srgb, var(--mp-accent, #5b8cff) 42%, #0a0b0d) 0%,
		rgba(255, 255, 255, 0.04) 72%
	);
}

.fi-mp-card__badge {
	position: absolute;
	top: 7px;
	left: 7px;
	z-index: 1;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.92);
	background: rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(4px);
}

.fi-mp-card__sheet {
	display: block;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.fi-mp-card__name {
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.25;
}

.fi-mp-card__meta {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.66rem;
	color: var(--it-muted);
}

.fi-color-picker {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 10px;
	align-items: end;
}

.fi-color-picker__swatch,
.fi-color-picker__hex-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.fi-color-picker__label {
	font-size: 0.72rem;
	color: var(--it-muted);
}

.fi-color-picker__input {
	width: 52px;
	height: 40px;
	padding: 3px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	cursor: pointer;
}

.fi-color-picker__input:hover {
	border-color: rgba(255, 255, 255, 0.18);
}

.fi-color-picker__input:focus {
	outline: none;
	border-color: rgba(var(--it-accent-rgb), 0.45);
	box-shadow: 0 0 0 2px rgba(var(--it-accent-rgb), 0.12);
}

.fi-color-picker__hex {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--it-text);
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.fi-color-picker__hex::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.fi-color-picker__hex:hover {
	border-color: rgba(255, 255, 255, 0.18);
}

.fi-color-picker__hex:focus {
	outline: none;
	border-color: rgba(var(--it-accent-rgb), 0.45);
	background: rgba(255, 255, 255, 0.05);
	box-shadow: 0 0 0 2px rgba(var(--it-accent-rgb), 0.12);
}

/* Alignment / Position / Rotation panel */
.fi-align-section {
	margin-top: 14px;
}

.fi-align-section__title {
	margin: 0 0 10px;
}

.fi-align__rows {
	display: flex;
	gap: 8px;
	margin-bottom: 4px;
}

.fi-align__cluster {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
}

.fi-align__btn {
	display: grid;
	place-items: center;
	width: 30px;
	height: 28px;
	border: 0;
	border-radius: 6px;
	color: rgba(255, 255, 255, 0.5);
	background: transparent;
	cursor: pointer;
	transition: color 0.12s, background 0.12s;
}

.fi-align__btn svg {
	width: 18px;
	height: 18px;
}

.fi-align__btn:hover:not(:disabled) {
	color: rgba(255, 255, 255, 0.92);
	background: rgba(255, 255, 255, 0.08);
}

.fi-align__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.fi-align__group {
	margin-top: 14px;
}

.fi-align__group-title {
	display: block;
	margin: 0 0 8px;
}

.fi-align__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.fi-align__pair--rotate {
	grid-template-columns: 1fr auto;
}

.fi-align__field {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	min-width: 0;
	min-height: 36px;
}

.fi-align__field:focus-within {
	border-color: rgba(var(--it-accent-rgb), 0.45);
	box-shadow: 0 0 0 3px rgba(var(--it-accent-rgb), 0.12);
}

.fi-align__prefix {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.45);
}

.fi-align__prefix--icon {
	display: grid;
	place-items: center;
}

.fi-align__prefix--icon svg {
	width: 16px;
	height: 16px;
}

.fi-align__suffix {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.45);
}

.fi-align__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.92);
	font-size: 13px;
	font-weight: 500;
	padding: 8px 0;
}

.fi-align__input:focus {
	outline: none;
}

.fi-align__input:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	color: rgba(255, 255, 255, 0.35);
}

.fi-align__rotate90 {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: color 0.12s, background 0.12s;
}

.fi-align__rotate90 svg {
	width: 18px;
	height: 18px;
}

.fi-align__rotate90:hover:not(:disabled) {
	color: rgba(255, 255, 255, 0.92);
	background: rgba(255, 255, 255, 0.08);
}

.fi-align__rotate90:disabled {
	opacity: 0.35;
	cursor: default;
}

.fi-align__media-stack.is-hidden {
	display: none;
}

/* Typography panel */
.fi-typography-section {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fi-typography-section.is-hidden {
	display: none !important;
}

.fi-typography-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.fi-typography-panel__title {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--it-muted);
}

.fi-typography-panel__reset {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.03);
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
}

.fi-typography-panel__reset:hover {
	color: var(--it-text);
	border-color: rgba(255, 255, 255, 0.18);
}

.fi-typography-panel__reset svg {
	width: 14px;
	height: 14px;
}

.fi-font-dropdown {
	position: relative;
	margin-bottom: 8px;
}

.fi-font-dropdown__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 8px 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--it-text);
	font-size: 0.82rem;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.fi-font-dropdown__trigger:hover,
.fi-font-dropdown.is-open .fi-font-dropdown__trigger {
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.06);
}

.fi-font-dropdown__label {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fi-font-dropdown__chevron {
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	color: rgba(255, 255, 255, 0.45);
	transition: transform 0.15s ease;
}

.fi-font-dropdown.is-open .fi-font-dropdown__chevron {
	transform: rotate(180deg);
}

.fi-font-dropdown__menu {
	position: absolute;
	z-index: 40;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	display: none;
	gap: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	background: #1a1a1a;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	overflow: hidden;
	transform-origin: top center;
}

.fi-font-dropdown.is-open > .fi-font-dropdown__menu {
	display: grid;
	animation: fi-font-dropdown-in 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fi-font-dropdown-in {
	from {
		opacity: 0;
		transform: translateY(-6px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fi-font-dropdown.is-open > .fi-font-dropdown__menu {
		animation: none;
	}
}

.fi-font-dropdown__search {
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	color: var(--it-text);
	font-size: 0.78rem;
}

.fi-font-dropdown__search::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.fi-font-dropdown__search:focus {
	outline: none;
	background: rgba(255, 255, 255, 0.05);
}

.fi-font-dropdown__list {
	max-height: 260px;
	margin: 0;
	padding: 6px;
	list-style: none;
	overflow-y: auto;
}

.fi-font-dropdown__item {
	padding: 8px 10px;
	border-radius: 5px;
	font-size: 0.82rem;
	line-height: 1.3;
	color: var(--it-text);
	cursor: pointer;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fi-font-dropdown__item:hover {
	background: rgba(255, 255, 255, 0.08);
}

.fi-font-dropdown__item.is-selected {
	background: rgba(255, 255, 255, 0.14);
	font-weight: 600;
}

.fi-font-dropdown__empty {
	padding: 12px 10px;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.45);
}

.fi-font-dropdown--bar {
	margin-bottom: 0;
}

.fi-font-dropdown--bar .fi-font-dropdown__trigger {
	width: auto;
	min-width: 128px;
	max-width: 168px;
	padding: 5px 9px;
	border-radius: 7px;
	font-size: 0.78rem;
}

.fi-font-dropdown--bar .fi-font-dropdown__menu {
	left: auto;
	right: 0;
	width: 236px;
	z-index: 60;
}

.fi-typography-panel__weight.is-locked {
	opacity: 0.72;
	cursor: not-allowed;
}

.fi-typography-panel__font-name {
	margin-bottom: 8px;
	padding: 8px 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	font-size: 0.82rem;
	color: var(--it-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fi-typography-panel__weight {
	width: 100%;
	margin-bottom: 10px;
	padding: 8px 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--it-text);
	font-size: 0.82rem;
}

.fi-typo-combos {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 12px;
}

.fi-typo-combo {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
}

.fi-typo-combo__icon {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	color: rgba(255, 255, 255, 0.45);
}

.fi-typo-combo__icon svg {
	width: 16px;
	height: 16px;
}

.fi-typo-combo__field {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	min-height: 32px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
}

.fi-typo-combo__input {
	width: 100%;
	min-width: 0;
	padding: 6px 8px;
	border: 0;
	background: transparent;
	color: var(--it-text);
	font-size: 0.82rem;
	outline: none;
}

.fi-typo-combo__suffix {
	padding-right: 2px;
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.42);
}

.fi-typo-combo__suffix[hidden] {
	display: none;
}

.fi-typo-combo__toggle {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0 8px 8px 0;
	color: rgba(255, 255, 255, 0.45);
	background: transparent;
	cursor: pointer;
}

.fi-typo-combo__toggle svg {
	width: 12px;
	height: 12px;
}

.fi-typo-combo.is-open .fi-typo-combo__toggle {
	color: var(--it-text);
}

.fi-typo-combo__menu {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	z-index: 20;
	min-width: 72px;
	max-height: 180px;
	margin: 0;
	padding: 4px;
	list-style: none;
	overflow: auto;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: #1a1b1f;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.fi-typo-combo__menu[hidden] {
	display: none !important;
}

.fi-typo-combo__option {
	display: block;
	width: 100%;
	padding: 6px 10px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--it-text);
	font-size: 0.78rem;
	text-align: left;
	cursor: pointer;
}

.fi-typo-combo__option:hover {
	background: rgba(255, 255, 255, 0.06);
}

.fi-typography-panel__align {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 4px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fi-typo-segment {
	display: flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
}

.fi-typo-segment--align {
	flex: 1 1 auto;
	min-width: 0;
}

.fi-typo-segment--case {
	flex: 0 0 auto;
}

.fi-typo-segment__btn {
	display: grid;
	place-items: center;
	min-width: 28px;
	height: 28px;
	padding: 0 7px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: rgba(255, 255, 255, 0.48);
	font: inherit;
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: color 0.12s ease, background 0.12s ease;
}

.fi-typo-segment__btn svg {
	display: block;
	width: 14px;
	height: 14px;
}

.fi-typo-segment__btn:hover {
	color: var(--it-text);
	background: rgba(255, 255, 255, 0.06);
}

.fi-typo-segment__btn.is-active {
	color: var(--it-text);
	background: rgba(var(--it-accent-rgb), 0.14);
}

.fi-typo-segment__btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(var(--it-accent-rgb), 0.35);
}

.fi-props-panel .fi-props-bg .fi-color-field,
.fi-props-panel .fi-props-text .fi-color-field,
.fi-props-panel .fi-props-logo .fi-color-field,
.fi-props-panel .fi-props-overlay-text .fi-color-field {
	display: none;
}

.fi-color-studio {
	margin-bottom: 14px;
}

.fi-color-studio.is-idle .fi-color-studio__layer {
	color: rgba(255, 255, 255, 0.42);
}

.fi-color-studio__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.fi-color-studio__layer {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--it-muted);
}

.fi-color-studio__sb {
	position: relative;
	width: 100%;
	aspect-ratio: 1.15;
	border-radius: 8px;
	overflow: hidden;
	cursor: crosshair;
	touch-action: none;
}

.fi-color-studio__sb-bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, #000, transparent),
		linear-gradient(to right, #fff, hsl(var(--fi-cp-hue, 0) 100% 50%));
}

.fi-color-studio__sb-cursor {
	position: absolute;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.fi-color-studio__controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fi-color-studio__eyedropper {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.22);
	color: rgba(255, 255, 255, 0.82);
	cursor: pointer;
}

.fi-color-studio__eyedropper:hover {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.06);
}

.fi-color-studio__eyedropper svg {
	width: 16px;
	height: 16px;
}

.fi-color-studio__sliders {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.fi-color-studio__slider {
	position: relative;
	height: 12px;
	border-radius: 999px;
	cursor: pointer;
	touch-action: none;
}

.fi-color-studio__slider[data-fi-cp-hue] {
	background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}

.fi-color-studio__slider--alpha {
	background:
		linear-gradient(45deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.12) 75%, rgba(255, 255, 255, 0.12)),
		linear-gradient(45deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.12) 75%, rgba(255, 255, 255, 0.12));
	background-size: 8px 8px;
	background-position: 0 0, 4px 4px;
}

.fi-color-studio__slider-fill {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(to right, transparent, var(--fi-cp-solid, #fff));
	pointer-events: none;
}

.fi-color-studio__slider-thumb {
	position: absolute;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	margin-left: -7px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.fi-color-studio__values {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 8px;
	align-items: center;
}

.fi-color-studio__format {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.22);
	color: var(--it-text);
	font-size: 0.78rem;
}

.fi-color-studio__inputs {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.fi-color-studio__inputs--hsl {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fi-color-studio__inputs.is-hidden {
	display: none;
}

.fi-color-studio__hex,
.fi-color-studio__num {
	width: 100%;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.22);
	color: var(--it-text);
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.78rem;
}

.fi-color-studio__hex:focus,
.fi-color-studio__num:focus,
.fi-color-studio__format:focus {
	outline: none;
	border-color: rgba(var(--it-accent-rgb), 0.45);
	box-shadow: 0 0 0 2px rgba(var(--it-accent-rgb), 0.12);
}

.fi-color-studio__saved-label {
	margin: 2px 0 0;
	font-size: 0.78rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.72);
}

.fi-color-studio__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fi-color-studio__swatch {
	width: 22px;
	height: 22px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 50%;
	cursor: pointer;
}

.fi-color-studio__swatch:hover {
	transform: scale(1.06);
}

.fi-context-menu {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 3000;
	min-width: 220px;
	padding: 5px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: #1e1f24;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.fi-context-menu[hidden] {
	display: none;
}

.fi-context-menu__group {
	position: relative;
}

.fi-context-menu__group.is-open > .fi-context-menu__item--submenu {
	background: rgba(255, 255, 255, 0.08);
}

.fi-context-menu__sub {
	position: absolute;
	left: calc(100% + 4px);
	top: 0;
	z-index: 3001;
	min-width: 210px;
	padding: 5px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: #1e1f24;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.fi-context-menu__sub.is-flip-left {
	left: auto;
	right: calc(100% + 4px);
}

.fi-context-menu__sub[hidden] {
	display: none;
}

.fi-context-menu__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 7px 10px;
	border: 0;
	border-radius: 7px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 13px;
	text-align: left;
	background: transparent;
	cursor: pointer;
	transition: background 0.12s ease;
}

.fi-context-menu__item:hover:not(:disabled),
.fi-context-menu__item:focus-visible {
	outline: none;
	background: rgba(255, 255, 255, 0.08);
}

.fi-context-menu__item:disabled {
	opacity: 0.38;
	cursor: default;
}

.fi-context-menu__item[hidden] {
	display: none;
}

.fi-context-menu__item--submenu {
	padding-right: 8px;
}

.fi-context-menu__icon {
	display: grid;
	place-items: center;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	color: rgba(255, 255, 255, 0.72);
}

.fi-context-menu__icon svg {
	display: block;
	width: 16px;
	height: 16px;
}

.fi-context-menu__icon--align {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
}

.fi-context-menu__icon--align svg {
	width: 18px;
	height: 18px;
}

.fi-context-menu__label {
	flex: 1;
	min-width: 0;
}

.fi-context-menu__chevron {
	display: grid;
	place-items: center;
	flex: 0 0 12px;
	width: 12px;
	height: 12px;
	color: rgba(255, 255, 255, 0.38);
}

.fi-context-menu__chevron svg {
	display: block;
	width: 12px;
	height: 12px;
}

.fi-context-menu__shortcut {
	flex: 0 0 auto;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.42);
	padding: 3px 6px;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.06);
	white-space: nowrap;
}

.fi-context-menu__sep {
	height: 1px;
	margin: 4px 8px;
	background: rgba(255, 255, 255, 0.08);
}

[data-fi-canvas-drop][data-xfp-workspace-bg="light"] {
	--xfp-grid-bg: #DFE6F0;
	--xfp-grid-dot: rgba(0, 0, 0, 0.13);
}

[data-fi-canvas-drop][data-xfp-workspace-bg="dark"] {
	--xfp-grid-bg: #1c1c1e;
	--xfp-grid-dot: rgba(255, 255, 255, 0.10);
}

.fi-context-menu__mark {
	flex: 0 0 auto;
	margin-left: auto;
	padding-left: 12px;
	font-size: 12px;
	line-height: 1;
	opacity: 0;
	color: var(--xfp-accent-light, #60a5fa);
}

.fi-context-menu__item.is-checked .fi-context-menu__mark {
	opacity: 1;
}

.fi-context-menu__item.is-checked {
	color: var(--xfp-text, #f4f4f5);
}

.fi-file-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
}

.fi-file-card__body {
	min-width: 0;
}

.fi-file-card__badge {
	display: inline-block;
	flex-shrink: 0;
	margin-bottom: 0;
	padding: 4px 8px;
	border-radius: 6px;
	background: rgba(var(--it-accent-rgb), 0.14);
	color: var(--it-accent);
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
}

.fi-file-card__name {
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.35;
	word-break: break-word;
}

.fi-file-card__size {
	margin-top: 4px;
	font-size: 0.78rem;
	color: var(--it-muted);
}

.fi-info {
	margin: 10px 16px 0;
	padding: 16px 18px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
}

.fi-info--disclosure {
	margin: 10px 16px 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.02);
}

.fi-info--disclosure .fi-info__title {
	margin: 0;
	padding: 10px 14px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--it-muted);
	cursor: pointer;
	list-style: none;
}

.fi-info--disclosure .fi-info__title::-webkit-details-marker {
	display: none;
}

.fi-info--disclosure .fi-info__body {
	padding: 0 14px 12px;
}

.fi-info__empty {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--it-muted);
}

.fi-info__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 32px;
}

.fi-info__col {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.fi-kv {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	gap: 12px;
	min-width: 0;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fi-kv:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.fi-kv__label {
	flex: 0 0 118px;
	font-size: 0.76rem;
	font-weight: 600;
	color: var(--it-muted);
	white-space: nowrap;
}

.fi-kv__value {
	flex: 1;
	min-width: 0;
	font-size: 0.84rem;
	line-height: 1.45;
	word-break: break-word;
	color: var(--it-text);
}

.fi-specimens {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.fi-specimen {
	position: relative;
	padding: 16px 18px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
}

.fi-specimen--hero {
	min-height: 160px;
	padding: 20px 20px 20px 56px;
}

.fi-specimen__label {
	margin-bottom: 10px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--it-muted);
}

.fi-specimen__text {
	font-family: Inter, system-ui, sans-serif;
	font-size: 48px;
	line-height: 1.15;
	color: rgba(255, 255, 255, 0.92);
	transition: font-size 0.12s ease;
}

.fi-specimen__text--wrap {
	font-size: 28px;
	line-height: 1.35;
	word-break: break-word;
}

.fi-specimen__text--sub {
	margin-top: 8px;
	font-size: 22px;
	color: rgba(255, 255, 255, 0.78);
}

.fi-specimen__text.is-loaded {
	font-family: var(--fi-family, Inter), system-ui, sans-serif;
	font-synthesis: none;
}

.fi-specimen--hero .fi-specimen__text {
	font-size: 72px;
	line-height: 1.08;
	word-break: break-word;
	hyphens: auto;
	font-synthesis: none;
}

.fi-specimen__text--hero {
	max-width: 100%;
	padding-right: 72px;
}

.fi-specimen__metrics {
	position: absolute;
	left: 18px;
	top: 48px;
	bottom: 18px;
	width: 28px;
}

.fi-specimen__metric {
	position: absolute;
	left: 0;
	right: 0;
	height: 1px;
	background: rgba(255, 255, 255, 0.22);
}

.fi-specimen__metric--asc { top: 12%; }
.fi-specimen__metric--cap { top: 24%; }
.fi-specimen__metric--x { top: 42%; border-top: 1px dashed rgba(255, 255, 255, 0.16); height: 0; background: none; }
.fi-specimen__metric--base { top: 58%; background: rgba(255, 255, 255, 0.42); }
.fi-specimen__metric--desc { top: 74%; }

.fi-specimen__readout {
	position: absolute;
	right: 16px;
	bottom: 16px;
	padding: 4px 8px;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.65rem;
	color: rgba(255, 255, 255, 0.55);
}

.fi-tabs {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.14);
	overflow: hidden;
}

.fi-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fi-tabs__btn {
	padding: 8px 12px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--it-muted);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.fi-tabs__btn:hover {
	color: var(--it-text);
	background: rgba(255, 255, 255, 0.05);
}

.fi-tabs__btn.is-active {
	color: var(--it-text);
	background: rgba(var(--it-accent-rgb), 0.14);
}

.fi-tabs__panel {
	padding: 16px;
}

.fi-tabs__panel[hidden] {
	display: none !important;
}

.fi-charset-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}

.fi-charset-card {
	padding: 12px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
}

.fi-charset-card__label {
	font-size: 0.78rem;
	color: var(--it-muted);
	margin-bottom: 6px;
}

.fi-charset-card__count {
	font-size: 0.92rem;
	font-weight: 600;
}

.fi-charset-card__count span {
	color: var(--it-accent);
}

.fi-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fi-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: var(--it-btn-radius, 8px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
	font-size: 0.78rem;
}

.fi-chip--muted {
	border-style: dashed;
	color: var(--it-muted);
}

.fi-feature-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fi-feature {
	padding: 12px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
}

.fi-feature__title {
	font-size: 0.86rem;
	font-weight: 600;
	margin-bottom: 4px;
}

.fi-feature__tags {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.72rem;
	color: var(--it-muted);
}

.fi-stage__sheet.is-busy {
	pointer-events: none;
}

.fi-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	padding: 10px 16px;
	border-radius: var(--it-btn-radius, 8px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(10, 11, 13, 0.92);
	color: var(--it-text);
	font-size: 0.85rem;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	z-index: 50;
}

@media (max-width: 900px) {
	.fi-workspace-split {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.fi-workspace-props {
		position: static;
		max-height: none;
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}

	.fi-workspace-side:not(.fi-workspace-typography) {
		position: static;
		max-height: none;
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.fi-workspace-typography {
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}

	.fi-workspace-main {
		padding: 16px;
	}

	.fi-info__grid {
		grid-template-columns: 1fr;
	}

	.fi-upload-panel--loaded {
		flex-direction: column;
		align-items: stretch;
	}

	.fi-preview-settings__sliders {
		grid-template-columns: 1fr;
	}

	.fi-settings__grid {
		grid-template-columns: 1fr;
	}

	.fi-mp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fi-preview-modes-row {
		flex-direction: column;
		align-items: stretch;
	}

	.fi-export {
		width: 100%;
	}

	.fi-export__trigger {
		width: 100%;
		justify-content: center;
	}

	.fi-export__panel {
		right: auto;
		left: 0;
		width: 100%;
	}
}

@media (max-width: 640px) {
	.fi-kv {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.fi-kv__label {
		flex-basis: auto;
	}
}

@media (max-width: 640px) {
	.fi-specimen--hero .fi-specimen__text {
		font-size: 56px;
	}

	.fi-specimen__text--wrap {
		font-size: 22px;
	}
}
