@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
	/* Dark-mode only. The app pins `<html class="dark">` in index.html. */
	--radius: 0.5rem;
}
:root,
:root[class~="dark"] {
	/* Cool zinc neutrals — mirrors Foundry's #09090b / #0c0c0e / #0f0f11. */
	--background: 240 6% 4%;
	--foreground: 0 0% 100%;
	--card: 240 7% 5%;
	--card-foreground: 0 0% 100%;
	--popover: 240 7% 5%;
	--popover-foreground: 0 0% 100%;
	--primary: 18.5 100% 50%;
	--primary-foreground: 0 0% 100%;
	--secondary: 240 5% 7%;
	--secondary-foreground: 0 0% 100%;
	--muted: 240 5% 9%;
	--muted-foreground: 240 5% 65%;
	--accent: 240 5% 9%;
	--accent-foreground: 0 0% 100%;
	--destructive: 0 72.2% 50.6%;
	--destructive-foreground: 0 0% 100%;
	--warning: 47.9 95.8% 53.1%;
	/* Visual equivalent of white/10 over the background. */
	--border: 240 5% 14%;
	--input: 240 5% 14%;
	--ring: 18.59deg 100% 50%;
	--background-main: 240 6% 4%;
}

:root,
.dark {
	--chart-1: 18.5 100% 50%;
	--chart-2: 160 60% 45%;
	--chart-3: 30 80% 55%;
	--chart-4: 280 65% 60%;
	--chart-5: 340 75% 55%;
}

.shiki .line {
	display: inline-block;
	@apply px-2;
}

.shiki .highlighted {
	@apply bg-secondary/50;
}

/* Dark theme overrides for xyflow Controls. */
.react-flow__controls {
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: 6px;
	box-shadow: none;
}

.react-flow__controls-button {
	background: transparent;
	border-bottom: 1px solid hsl(var(--border));
	fill: hsl(var(--foreground));
}

.react-flow__controls-button:hover {
	background: hsl(var(--accent));
}

.react-flow__controls-button:last-child {
	border-bottom: none;
}

/* Dark theme overrides for xyflow MiniMap. */
.react-flow__minimap {
	background: hsl(var(--card)) !important;
	border: 1px solid hsl(var(--border));
	border-radius: 6px;
}

/* Remove Ladle story container padding and make it fill the full viewport. */
.ladle-main {
	padding: 0 !important;
	height: 100vh;
}

/* Dark theme for xyflow edges. */
.react-flow__edge-path {
	stroke: hsl(var(--muted-foreground));
}
