/**
 * XUN pilibot field — 可嵌入表情状态机（不参与存储）
 */

/* 字段外壳：inline 占位；float / toast 不抢布局 */
.xun-field-pilibot {
	margin: 0;
}

.xun-pilibot {
	--xun-pilibot-radius: 16px;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
	max-width: 100%;
}

.xun-pilibot__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.xun-pilibot__canvas {
	display: block;
	border-radius: var(--xun-pilibot-radius);
	background: #f9f9f9;
	cursor: crosshair;
	touch-action: none;
	max-width: 100%;
	height: auto;
	aspect-ratio: 1;
}

.xun-pilibot--compact .xun-pilibot__canvas,
.xun-pilibot--toast .xun-pilibot__canvas {
	border-radius: 12px;
	cursor: default;
	box-shadow: none;
}

.xun-pilibot__meta {
	width: 100%;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #6b7280;
	text-align: center;
}

.xun-pilibot__meta strong {
	color: #111827;
	font-weight: 600;
}

.xun-pilibot__use {
	margin-top: 0.2rem;
}

.xun-pilibot:not(.xun-pilibot--meta) .xun-pilibot__meta {
	display: none;
}

/* 右下角浮动助手 */
.xun-pilibot--float {
	position: fixed;
	z-index: 100000;
	right: 1.1rem;
	bottom: 1.25rem;
	align-items: flex-end;
	pointer-events: auto;
}

.xun-pilibot--float .xun-pilibot__canvas {
	box-shadow:
		0 10px 28px rgba(15, 23, 42, 0.12),
		0 2px 8px rgba(15, 23, 42, 0.06);
	border: 1px solid rgba(226, 232, 240, 0.95);
}

body.admin-bar .xun-pilibot--float {
	bottom: 1.75rem;
}

@media (max-width: 782px) {
	.xun-pilibot--float {
		right: 0.75rem;
		bottom: 0.85rem;
	}
}

.xun-pilibot--brand,
.xun-pilibot--wander-look {
	flex-direction: row;
	flex-shrink: 0;
	gap: 0;
	line-height: 0;
	vertical-align: middle;
}

.xun-pilibot--brand .xun-pilibot__meta,
.xun-pilibot--wander-look .xun-pilibot__meta {
	display: none !important;
}

.xun-pilibot--brand .xun-pilibot__canvas,
.xun-pilibot--wander-look.xun-pilibot--compact .xun-pilibot__canvas {
	border-radius: 10px;
	background: transparent !important;
	cursor: default;
	box-shadow: none;
}

.xun-brand-title {
	min-height: 1.75rem;
}

.xun-brand-title .xun-pilibot--brand {
	margin-top: 1px;
}

/* Toast 内嵌样式已迁至 toast.css（.xun-toast--pilibot） */
