/* AI Companion - Field cards */
.ai-field-check {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.ai-field-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 16px 12px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	text-align: center;
	transition: all .15s ease;
	position: relative;
}
.ai-field-card:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
}

/* Checkbox indicator */
.ai-field-card::after {
	content: '';
	position: absolute;
	top: 8px;
	right: 8px;
	width: 18px;
	height: 18px;
	border: 2px solid #d1d5db;
	border-radius: 4px;
	transition: all .15s ease;
}
.ai-field-check:checked + .ai-field-card::after {
	background-color: var(--bg-primary);
	border-color: var(--bg-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
	background-size: 12px;
	background-position: center;
	background-repeat: no-repeat;
}
.ai-field-check:checked + .ai-field-card--generate::after {
	background-color: #059669;
	border-color: #059669;
}

/* Checked state - source (blue) */
.ai-field-check:checked + .ai-field-card {
	border-color: var(--bg-primary);
	background: rgba(59, 130, 246, 0.04);
	box-shadow: 0 0 0 1px var(--bg-primary);
}
.ai-field-check:checked + .ai-field-card .ai-field-icon {
	color: var(--bg-primary);
	background: rgba(59, 130, 246, 0.1);
}

/* Checked state - generate (green) */
.ai-field-check:checked + .ai-field-card--generate {
	border-color: #059669;
	background: rgba(5, 150, 105, 0.04);
	box-shadow: 0 0 0 1px #059669;
}
.ai-field-check:checked + .ai-field-card--generate .ai-field-icon {
	color: #059669;
	background: rgba(5, 150, 105, 0.1);
}

/* Field card inner elements */
.ai-field-icon {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: #f1f5f9;
	color: #94a3b8;
	font-size: 1rem;
	transition: all .15s ease;
}
.ai-field-name {
	font-size: 0.82rem;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.2;
}
.ai-field-key {
	font-size: 0.7rem;
	color: #94a3b8;
	font-family: 'SFMono-Regular', Consolas, monospace;
}

/* Score gauge */
.ai-score-gauge {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	font-size: 0.65rem;
	font-weight: 700;
}
.ai-score-gauge::before {
	content: '';
	position: absolute;
	width: 24px;
	height: 24px;
	background: #fff;
	border-radius: 50%;
	z-index: 1;
}
.ai-score-gauge span {
	position: relative;
	z-index: 2;
}
