/*!
 * CSS Portal — Checkbox / radio generator extras
 * Loaded after code-tool.css and generator-tool.css. Everything is scoped to .gt.
 */

.gt details[hidden] { display: none !important; }

.gt .cr-styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.gt .cr-style {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	min-width: 0;
	margin: 0;
	padding: 8px 2px 6px;
	font: inherit;
	color: var(--ct-muted);
	background: var(--ct-bg);
	border: 1px solid var(--ct-border);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color .15s, background-color .15s, color .15s;
}
.gt .cr-style svg { display: block; width: 20px; height: 20px; }
.gt .cr-style span { display: block; padding: 0; font-size: 11px; font-weight: 600; line-height: 1.3; }
.gt .cr-style:hover { color: var(--ct-text); border-color: var(--ct-border-strong); }
.gt .cr-style:focus-visible { outline: none; border-color: var(--ct-accent); box-shadow: 0 0 0 3px var(--ct-accent-soft); }
.gt .cr-style.is-active { color: var(--ct-accent); border-color: var(--ct-accent); background: var(--ct-accent-soft); }

@media (prefers-reduced-motion: reduce) {
	.gt .cr-style { transition: none; }
}
