{layers.map((L) => {
const isActive = isExploded && activeLayer === L.id;
return (
setActiveLayer(L.id) : undefined}
style={{
border: "1px solid var(--ink)",
background: isActive ? "var(--accent-soft)" : "var(--paper)",
borderColor: isActive ? "var(--accent)" : "var(--ink)",
padding: "18px 24px",
cursor: isExploded ? "pointer" : "default",
opacity: cardOpacity,
transition: "background 0.2s, border-color 0.2s, opacity 0.3s",
display: "flex",
flexDirection: "column",
gap: 6,
position: "relative",
}}
>
{L.label}
{isExploded &&
Click to inspect}
{isExploded &&
{L.desc}
}