/* In-designer simple-shapes picker */
.idxpd-shapes { margin: 0; }
.idxpd-shapes__group + .idxpd-shapes__group { margin-top: 1.1rem; }
.idxpd-shapes__heading {
	margin: 0 0 0.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: inherit;
	opacity: 0.8;
}
.idxpd-shapes__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
.idxpd-shape-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	margin: 0;
	padding: 6px;
	border: 1px solid rgba(0,0,0,0.12);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	cursor: pointer;
	text-align: left;
	font: inherit;
}
.idxpd-shape-card:hover,
.idxpd-shape-card:focus-visible {
	border-color: currentColor;
	outline: none;
}
.idxpd-shape-card__fig {
	display: block;
	aspect-ratio: 1;
	background: #111;
	border-radius: 5px;
	overflow: hidden;
}
.idxpd-shape-card__fig img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.idxpd-shape-card__name {
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.25;
}
.idxpd-shape-card__size {
	font-size: 0.68rem;
	opacity: 0.7;
}

/* Hidden Shapes tab must lose, even if .idxpd-tab sets display. */
#idxpd-root .idxpd-tab[data-idxpd-tool="shapes"][hidden],
#idxpd-root .idxpd-panel[data-idxpd-panel="shapes"][hidden] {
	display: none !important;
}
