/* CSS Custom Properties - Light Mode (default) */

:root {
	/* shadcn primitives (Zinc) - the palette source of truth */
	--background: oklch(1 0 0);
	--foreground: oklch(0.141 0.005 285.823);
	--card: oklch(1 0 0);
	--card-foreground: oklch(0.141 0.005 285.823);
	--popover: oklch(1 0 0);
	--popover-foreground: oklch(0.141 0.005 285.823);
	--primary: oklch(0.21 0.006 285.885);
	--primary-foreground: oklch(0.985 0 0);
	--secondary: oklch(0.967 0.001 286.375);
	--secondary-foreground: oklch(0.21 0.006 285.885);
	--muted: oklch(0.967 0.001 286.375);
	--muted-foreground: oklch(0.556 0 0);
	--accent: oklch(0.967 0.001 286.375);
	--accent-foreground: oklch(0.21 0.006 285.885);
	--destructive: oklch(0.577 0.245 27.325);
	--border: oklch(0.92 0.004 286.32);
	--input: oklch(0.92 0.004 286.32);
	--ring: oklch(0.705 0.015 286.067);
	--chart-1: oklch(0.871 0.006 286.286);
	--chart-2: oklch(0.552 0.016 285.938);
	--chart-3: oklch(0.442 0.017 285.786);
	--chart-4: oklch(0.37 0.013 285.805);
	--chart-5: oklch(0.274 0.006 286.033);
	--radius: 0.625rem;
	--sidebar: oklch(0.985 0 0);
	--sidebar-foreground: oklch(0.141 0.005 285.823);
	--sidebar-primary: oklch(0.21 0.006 285.885);
	--sidebar-primary-foreground: oklch(0.985 0 0);
	--sidebar-accent: oklch(0.967 0.001 286.375);
	--sidebar-accent-foreground: oklch(0.21 0.006 285.885);
	--sidebar-border: oklch(0.92 0.004 286.32);
	--sidebar-ring: oklch(0.705 0.015 286.067);

	/* Layout */
	--ii-sidebar-width: 260px;
	--ii-assets-sidebar-width: 288px;
	--ii-assets-sidebar-collapsed-width: 62px;
	--ii-rec-panel-width: 288px;
	--header-sidebar-height: 3rem;

	/* Backgrounds */
	--ii-bg-primary: var(--muted);
	--ii-surface-white: var(--sidebar);
	--ii-bg-secondary: var(--sidebar);
	--ii-bg-tertiary: var(--muted);
	--ii-bg-hover: var(--border);
	--ii-bg-active: var(--chart-1);

	--ii-bg-transparent: rgba(26, 29, 39, 0.75);
	--ii-bg-transparent-active: rgba(26, 29, 39, 0.9);

	--ii-compare-stage-bg: #0c0c12;

	/* Text */
	--ii-text-primary: var(--foreground);
	--ii-text-secondary: var(--chart-3);
	--ii-text-tertiary: var(--muted-foreground);

	/* Accent / Brand - deliberately not neutralised, see --accent note in docs */
	--ii-accent: #2563eb;
	--ii-accent-hover: #1d4ed8;
	--ii-accent-dim: rgba(37, 99, 235, 0.1);
	--ii-primary: #0d5fff;
	--ii-primary-tinted: #f0f4ff;
	--ii-primary-hover: oklch(0.3 0.008 286);

	/* Borders & Dividers */
	--ii-border: var(--border);

	/* Gradients - theme-invariant, the AI avatar badge reads white on it in both */
	--ii-gradient-start: #232526;
	--ii-gradient-mid: #414345;
	--ii-gradient-end: #1a1a1a;

	/* Inputs */
	--ii-input-bg: var(--background);

	/* Shadows */
	--ii-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
	--ii-shadow-elegant:
		0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);

	/* Radius */
	--ii-radius-sm: 8px;
	--ii-radius-md: 12px;
	--ii-radius-lg: 16px;
	--ii-radius-rounded: 20px;
	--ii-radius-lgx: 24px;
	--ii-radius-xl: 32px;
	--ii-radius-full: 100px;

	/* Motion */
	--ii-transition: 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);

	/* Typography */
	--ii-font-display: Inter, sans-serif;
	--ii-font-body: Inter, sans-serif;

	/* Toast system */
	--ai-toast-bg: var(--card);
	--ai-toast-border: rgba(0, 0, 0, 0.08);
	--ai-toast-shadow:
		0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
	--ai-toast-radius: 18px;
	--ai-toast-text-primary: var(--foreground);
	--ai-toast-text-secondary: var(--chart-3);
	--ai-toast-error: var(--destructive);

	/* Toast System Semantic Helpers */
	--ai-toast-close-hover: rgba(0, 0, 0, 0.05);
	--ai-toast-progress-track: rgba(0, 0, 0, 0.08);
	--ai-toast-action-bg: rgba(0, 0, 0, 0.05);
	--ai-toast-action-border: rgba(0, 0, 0, 0.08);
	--ai-toast-action-hover-bg: rgba(0, 0, 0, 0.08);
	--ai-toast-action-hover-border: rgba(0, 0, 0, 0.12);
	--ai-toast-btn-border: rgba(0, 0, 0, 0.12);
	--ai-toast-btn-hover-bg: rgba(0, 0, 0, 0.05);
	--ai-toast-upload-fill: rgba(0, 0, 0, 0.75);

	/* Image Viewer system */
	--ii-viewer-backdrop-bg: rgba(255, 255, 255, 0.2);
	--ii-viewer-bg: var(--card);
	--ii-viewer-sidebar-bg: var(--sidebar);
	--ii-viewer-border: var(--border);
	--ii-viewer-shadow:
		0 32px 80px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
	--ii-viewer-text-primary: var(--foreground);
	--ii-viewer-text-secondary: var(--chart-3);
	--ii-viewer-text-faint: oklch(0.49 0.017 285.9);
	--ii-viewer-control-bg: rgba(0, 0, 0, 0.04);
	--ii-viewer-control-border: rgba(0, 0, 0, 0.08);
	--ii-viewer-control-hover-bg: rgba(0, 0, 0, 0.08);
	--ii-viewer-control-hover-border: rgba(0, 0, 0, 0.12);
	--ii-viewer-control-text: var(--chart-3);
	--ii-viewer-control-hover-text: var(--foreground);
	--ii-viewer-nav-bg: rgba(255, 255, 255, 0.9);
	--ii-viewer-nav-border: var(--border);
	--ii-viewer-nav-hover-bg: var(--background);
	--ii-viewer-nav-color: var(--chart-3);
	--ii-viewer-nav-color-hover: var(--foreground);
	--ii-viewer-skeleton-base: linear-gradient(
		90deg,
		var(--muted) 25%,
		var(--border) 50%,
		var(--muted) 75%
	);
	--ii-viewer-sidebar-skeleton-base: linear-gradient(
		90deg,
		var(--muted) 25%,
		var(--border) 50%,
		var(--muted) 75%
	);
	--ii-viewer-zoom-track: rgba(0, 0, 0, 0.15);
	--ii-viewer-zoom-pct-color: oklch(0.49 0.017 285.9);
	--ii-viewer-zoom-reset-color: oklch(0.49 0.017 285.9);
	--ii-viewer-zoom-reset-hover-color: var(--chart-3);
	--ii-viewer-badge-bg: var(--muted);
	--ii-viewer-badge-border: var(--border);
	--ii-viewer-badge-text: var(--chart-3);
	--ii-viewer-brand-color: var(--ii-accent);
	--ii-viewer-brand-hover-color: var(--ii-accent-hover);
	--ii-viewer-author-avatar-bg: var(--muted);
	--ii-viewer-author-avatar-border: var(--border);
	--ii-viewer-author-avatar-icon: oklch(0.49 0.017 285.9);

	/* SEMANTIC TOKENS - redefine only what changes in .dark below */

	/* Sticky section-title backdrop (sidebar) */
	--ii-sticky-title-bg: rgba(255, 255, 255, 0.8);

	/* Checkbox */
	--ii-checkbox-bg: var(--sidebar);
	--ii-checkbox-border: var(--chart-1);

	/* Empty / "add assets" button */
	--ii-empty-btn-bg: var(--sidebar);
	--ii-empty-btn-border: var(--chart-1);
	--ii-empty-btn-hover-bg: var(--muted);
	--ii-muted-icon: var(--muted-foreground);

	/* Input row glass surface */
	--ii-input-row-bg: rgba(255, 255, 255, 0.7);

	/* Popper / dropdown menu */
	--ii-popper-bg: var(--popover);
	--ii-popper-border: rgba(0, 0, 0, 0.08);
	--ii-popper-separator: rgba(0, 0, 0, 0.08);
	--ii-popper-shadow:
		0 10px 38px -10px rgba(22, 23, 24, 0.35),
		0 10px 20px -15px rgba(22, 23, 24, 0.2);

	/* Danger / destructive actions */
	--ii-danger: var(--destructive);
	--ii-danger-text: var(--destructive);
	--ii-danger-solid: var(--destructive);
	--ii-danger-solid-border: var(--destructive);
	--ii-danger-solid-text: #ffffff;
	--ii-danger-bg: rgba(239, 68, 68, 0.07);
	--ii-danger-border: rgba(239, 68, 68, 0.28);
	--ii-danger-badge-bg: rgba(239, 68, 68, 0.1);
	--ii-danger-badge-border: rgba(239, 68, 68, 0.22);

	/* Error / warning message blocks */
	--ii-error-msg-bg: #fffcfc;
	--ii-error-msg-border: #fee2e2;
	--ii-error-text: #b91c1c;
	--ii-retry-bg: var(--background);
	--ii-retry-border: #fecaca;
	--ii-retry-color: var(--destructive);
	--ii-retry-hover-bg: #fef2f2;
	--ii-retry-hover-border: #fca5a5;

	/* Bulk action bar */
	--ii-bulk-bar-bg: var(--sidebar);
	--ii-bulk-bar-shadow:
		0 12px 36px rgba(0, 0, 0, 0.11), 0 2px 8px rgba(0, 0, 0, 0.05),
		0 0 0 4px rgba(239, 68, 68, 0.08);

	/* Image download overlay button */
	--ii-img-dl-btn-bg: rgba(255, 255, 255, 0.92);

	/* Media Viewer card (image-mode modal) */
	--ii-modal-image-shadow:
		0 24px 64px rgba(0, 0, 0, 0.18), 0 6px 20px rgba(0, 0, 0, 0.1);

	/* Skeleton loading placeholders */
	--ii-skeleton-base: var(--border);
	--ii-skeleton-shimmer-1: var(--border);
	--ii-skeleton-shimmer-2: var(--chart-1);
	--ii-skeleton-btn-bg: var(--border);
	--ii-skeleton-send-bg: #e2e8fa;
	--ii-skeleton-gradient: linear-gradient(
		90deg,
		var(--ii-skeleton-shimmer-1) 25%,
		var(--ii-skeleton-shimmer-2) 50%,
		var(--ii-skeleton-shimmer-1) 75%
	);

	--separator-spacing: 0.37rem;

	/* Type scale (Phase 1 foundation) - even px values only, no new odd sizes */
	--ii-fs-2xs: 10px;
	--ii-fs-xs: 12px;
	--ii-fs-sm: 14px;
	--ii-fs-md: 16px;
	--ii-fs-lg: 18px;
	--ii-fs-xl: 20px;
	--ii-fs-2xl: 24px;
	--ii-fs-3xl: 28px;
	--ii-fs-4xl: 32px;
	--ii-fs-5xl: 40px;
	--ii-fs-6xl: 48px;

	/* Line heights */
	--ii-lh-tight: 1.2;
	--ii-lh-snug: 1.35;
	--ii-lh-normal: 1.5;
	--ii-lh-relaxed: 1.65;

	/* Spacing scale - 4px base (--ii-space-N -> step N below) */
	--ii-space-1: 4px;
	--ii-space-2: 8px;
	--ii-space-3: 12px;
	--ii-space-4: 16px;
	--ii-space-5: 20px;
	--ii-space-6: 24px;
	--ii-space-7: 28px;
	--ii-space-8: 32px;
	--ii-space-9: 40px;
	--ii-space-10: 48px;
	--ii-space-11: 56px;
	--ii-space-12: 64px;
	--ii-space-13: 80px;
	--ii-space-14: 96px;
	--ii-space-15: 120px;
	--ii-space-16: 160px;

	/* Layout rhythm */
	--ii-page-md: 1024px;
	--ii-page-max: 1200px;
	--ii-page-large: 1368px;
	--ii-page-gutter: clamp(20px, 5vw, 40px);
	--ii-section-y: clamp(64px, 8vw, 128px);

	/* Height cap for a generated result shown at full size. One value for every
	   tool surface: the result card, the compare slider and the detector stage
	   all size to their own ratio, and a 9:16 render is unusable without it. */
	--ii-tool-result-max-h: 640px;

	--ii-ink-primary: var(--primary);
	--ii-ink-primary-hover: var(--foreground);
	--ii-on-primary: var(--primary-foreground);
}

/* CSS Custom Properties - Dark Mode */
.dark {
	color-scheme: dark;

	--background: oklch(0.141 0.005 285.823);
	--foreground: oklch(0.985 0 0);
	--card: oklch(0.21 0.006 285.885);
	--card-foreground: oklch(0.985 0 0);
	--popover: oklch(0.21 0.006 285.885);
	--popover-foreground: oklch(0.985 0 0);
	--primary: oklch(0.92 0.004 286.32);
	--primary-foreground: oklch(0.21 0.006 285.885);
	--secondary: oklch(0.274 0.006 286.033);
	--secondary-foreground: oklch(0.985 0 0);
	--muted: oklch(0.274 0.006 286.033);
	--muted-foreground: oklch(0.708 0 0);
	--accent: oklch(0.274 0.006 286.033);
	--accent-foreground: oklch(0.985 0 0);
	--destructive: oklch(0.704 0.191 22.216);
	--border: oklch(1 0 0 / 10%);
	--input: oklch(1 0 0 / 15%);
	--ring: oklch(0.552 0.016 285.938);
	--chart-1: oklch(0.871 0.006 286.286);
	--chart-2: oklch(0.552 0.016 285.938);
	--chart-3: oklch(0.442 0.017 285.786);
	--chart-4: oklch(0.37 0.013 285.805);
	--chart-5: oklch(0.274 0.006 286.033);
	--sidebar: oklch(0.21 0.006 285.885);
	--sidebar-foreground: oklch(0.985 0 0);
	--sidebar-primary: oklch(0.488 0.243 264.376);
	--sidebar-primary-foreground: oklch(0.985 0 0);
	--sidebar-accent: oklch(0.274 0.006 286.033);
	--sidebar-accent-foreground: oklch(0.985 0 0);
	--sidebar-border: oklch(1 0 0 / 10%);
	--sidebar-ring: oklch(0.552 0.016 285.938);

	/* Dark palette foundation. The app has six surface steps where shadcn has
	   three, so 0.235 and 0.32 are derived stops on the same neutral axis. */
	--ii-dk-base: var(--background);
	--ii-dk-surface-1: var(--card);
	--ii-dk-surface-2: oklch(0.24 0.006 286);
	--ii-dk-surface-3: var(--muted);
	--ii-dk-hover: oklch(0.305 0.008 286);
	--ii-dk-active: oklch(0.34 0.011 285.9);
	--ii-dk-border: var(--border);
	--ii-dk-text-primary: var(--foreground);
	--ii-dk-text-secondary: oklch(0.76 0.012 286.1);
	/* bumped from #7c7c88 for readability */
	--ii-dk-text-faint: oklch(0.62 0.016 286);
	/* bumped from #4a4a56 for readability */
	--ii-dk-text-body: var(--chart-1);
	/* bumped from #c2c2cc */
	--ii-dk-link: #5b96f7;
	--ii-dk-link-hover: #81b0fa;
	--ii-dk-error-bg: #1e1212;
	--ii-dk-error-border: rgba(239, 68, 68, 0.22);
	--ii-dk-tooltip-bg: oklch(0.141 0.005 285.823 / 96%);

	/* Studio UI token overrides */
	--ii-bg-primary: var(--background);
	--ii-surface-white: var(--card);
	--ii-bg-secondary: oklch(0.24 0.006 286);
	--ii-bg-tertiary: var(--muted);
	--ii-bg-hover: oklch(0.305 0.008 286);
	--ii-bg-active: oklch(0.34 0.011 285.9);
	--ii-text-primary: var(--foreground);
	--ii-text-secondary: oklch(0.76 0.012 286.1);
	/* bumped from #7c7c88 - much more readable */
	--ii-text-tertiary: var(--muted-foreground);
	/* bumped from #4a4a56 - visible but still subordinate */
	--ii-border: var(--border);
	--ii-accent: #3b82f6;
	--ii-accent-hover: #2563eb;
	--ii-accent-dim: rgba(59, 130, 246, 0.14);
	--ii-primary: #5b96f7;
	--ii-primary-tinted: rgba(59, 130, 246, 0.1);
	--ii-primary-hover: var(--foreground);
	--ii-input-bg: oklch(0.24 0.006 286);
	--ii-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.4);
	--ii-shadow-elegant:
		0 4px 6px -1px rgba(0, 0, 0, 0.55), 0 2px 4px -2px rgba(0, 0, 0, 0.4);

	/* Semantic token overrides */
	--ii-sticky-title-bg: oklch(0.21 0.006 285.885 / 85%);

	--ii-checkbox-bg: oklch(0.24 0.006 286);
	--ii-checkbox-border: var(--border);

	--ii-empty-btn-bg: oklch(0.24 0.006 286);
	--ii-empty-btn-border: var(--border);
	--ii-empty-btn-hover-bg: oklch(0.305 0.008 286);
	--ii-muted-icon: oklch(0.76 0.012 286.1);
	/* bumped to match text-secondary */

	--ii-input-row-bg: oklch(0.21 0.006 285.885 / 70%);

	--ii-popper-bg: var(--popover);
	--ii-popper-border: var(--border);
	--ii-popper-separator: var(--border);
	--ii-popper-shadow:
		0 10px 38px -10px rgba(0, 0, 0, 0.65),
		0 10px 20px -15px rgba(0, 0, 0, 0.45);

	/* Danger - slightly lighter red so it reads well on dark */
	--ii-danger: var(--destructive);
	--ii-danger-text: var(--destructive);
	--ii-danger-solid: var(--destructive);
	--ii-danger-solid-border: var(--destructive);
	--ii-danger-solid-text: #ffffff;
	--ii-danger-bg: rgba(239, 68, 68, 0.1);
	--ii-danger-border: rgba(239, 68, 68, 0.32);
	--ii-danger-badge-bg: rgba(239, 68, 68, 0.12);
	--ii-danger-badge-border: rgba(239, 68, 68, 0.28);

	--ii-error-msg-bg: #1e1212;
	--ii-error-msg-border: rgba(239, 68, 68, 0.22);
	--ii-error-text: var(--destructive);
	--ii-retry-bg: oklch(0.24 0.006 286);
	--ii-retry-border: rgba(239, 68, 68, 0.3);
	--ii-retry-color: var(--destructive);
	--ii-retry-hover-bg: oklch(0.305 0.008 286);
	--ii-retry-hover-border: rgba(239, 68, 68, 0.5);

	--ii-bulk-bar-bg: var(--card);
	--ii-bulk-bar-shadow:
		0 16px 44px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(0, 0, 0, 0.4),
		0 0 0 4px rgba(239, 68, 68, 0.12);

	--ii-img-dl-btn-bg: oklch(0.141 0.005 285.823 / 88%);

	--ii-modal-image-shadow:
		0 24px 64px rgba(0, 0, 0, 0.6), 0 6px 20px rgba(0, 0, 0, 0.4);

	--ii-skeleton-base: var(--muted);
	--ii-skeleton-shimmer-1: var(--muted);
	--ii-skeleton-shimmer-2: oklch(0.345 0.011 285.9);
	--ii-skeleton-btn-bg: var(--muted);
	--ii-skeleton-send-bg: #242433;

	/* Toast system overrides */
	--ai-toast-bg: oklch(0.24 0.006 286);
	--ai-toast-border: rgba(255, 255, 255, 0.08);
	--ai-toast-shadow:
		0 4px 24px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
	--ai-toast-text-primary: var(--foreground);
	--ai-toast-text-secondary: rgba(255, 255, 255, 0.5);
	--ai-toast-error: var(--destructive);

	/* Toast System Semantic Helpers Overrides */
	--ai-toast-close-hover: rgba(255, 255, 255, 0.08);
	--ai-toast-progress-track: rgba(255, 255, 255, 0.12);
	--ai-toast-action-bg: rgba(255, 255, 255, 0.12);
	--ai-toast-action-border: rgba(255, 255, 255, 0.2);
	--ai-toast-action-hover-bg: rgba(255, 255, 255, 0.22);
	--ai-toast-action-hover-border: rgba(255, 255, 255, 0.35);
	--ai-toast-btn-border: rgba(255, 255, 255, 0.25);
	--ai-toast-btn-hover-bg: rgba(255, 255, 255, 0.12);
	--ai-toast-upload-fill: rgba(255, 255, 255, 0.92);

	/* Image Viewer system overrides */
	--ii-viewer-backdrop-bg: oklch(0.141 0.005 285.823 / 30%);
	--ii-viewer-bg: var(--background);
	--ii-viewer-sidebar-bg: var(--card);
	--ii-viewer-border: var(--border);
	--ii-viewer-shadow:
		0 32px 80px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(0, 0, 0, 0.4);
	--ii-viewer-text-primary: rgba(255, 255, 255, 0.88);
	--ii-viewer-text-secondary: rgba(255, 255, 255, 0.55);
	--ii-viewer-text-faint: rgba(255, 255, 255, 0.48);
	--ii-viewer-control-bg: rgba(255, 255, 255, 0.05);
	--ii-viewer-control-border: rgba(255, 255, 255, 0.1);
	--ii-viewer-control-hover-bg: rgba(255, 255, 255, 0.12);
	--ii-viewer-control-hover-border: rgba(255, 255, 255, 0.2);
	--ii-viewer-control-text: rgba(255, 255, 255, 0.6);
	--ii-viewer-control-hover-text: #ffffff;
	--ii-viewer-nav-bg: oklch(0.26 0.006 286 / 75%);
	--ii-viewer-nav-border: rgba(255, 255, 255, 0.12);
	--ii-viewer-nav-hover-bg: rgba(255, 255, 255, 0.16);
	--ii-viewer-nav-color: rgba(255, 255, 255, 0.8);
	--ii-viewer-nav-color-hover: #ffffff;
	--ii-viewer-skeleton-base: linear-gradient(
		90deg,
		oklch(0.22 0.006 285.9) 25%,
		oklch(0.27 0.006 286) 50%,
		oklch(0.22 0.006 285.9) 75%
	);
	--ii-viewer-sidebar-skeleton-base: linear-gradient(
		90deg,
		oklch(0.25 0.006 286) 25%,
		oklch(0.305 0.008 286) 50%,
		oklch(0.25 0.006 286) 75%
	);
	--ii-viewer-zoom-track: rgba(255, 255, 255, 0.2);
	--ii-viewer-zoom-pct-color: rgba(255, 255, 255, 0.55);
	--ii-viewer-zoom-reset-color: rgba(255, 255, 255, 0.48);
	--ii-viewer-zoom-reset-hover-color: rgba(255, 255, 255, 0.75);
	--ii-viewer-badge-bg: rgba(255, 255, 255, 0.06);
	--ii-viewer-badge-border: rgba(255, 255, 255, 0.1);
	--ii-viewer-badge-text: rgba(255, 255, 255, 0.55);
	--ii-viewer-brand-color: rgba(96, 165, 250, 0.85);
	--ii-viewer-brand-hover-color: rgba(147, 197, 253, 1);
	--ii-viewer-author-avatar-bg: rgba(255, 255, 255, 0.06);
	--ii-viewer-author-avatar-border: rgba(255, 255, 255, 0.1);
	--ii-viewer-author-avatar-icon: rgba(255, 255, 255, 0.55);

	/* Ink primary overrides */
	--ii-ink-primary: var(--primary);
	--ii-ink-primary-hover: oklch(1 0 0);
	--ii-on-primary: var(--primary-foreground);
}

.light .ii-bubble-back {
	border-color: rgba(0, 0, 0, 0.08);
	background: rgba(255, 255, 255, 0.72);
}

.light .ii-bubble-front {
	box-shadow:
		0 4px 18px rgba(0, 0, 0, 0.12),
		0 1px 4px rgba(0, 0, 0, 0.08);
	border-color: rgba(0, 0, 0, 0.08);
}

.light .ii-bubble-stack:hover .ii-bubble-front,
.light .ii-bubble-stack:focus-visible .ii-bubble-front {
	box-shadow:
		0 8px 28px rgba(0, 0, 0, 0.16),
		0 2px 8px rgba(0, 0, 0, 0.1);
}

.light .ii-bubble-back--1 {
	opacity: 0.72;
}

.light .ii-bubble-back--2 {
	opacity: 0.5;
}

.light .ii-bubble-back--3 {
	opacity: 0.3;
}

.light .ii-bubble-stack:hover .ii-bubble-back--1,
.light .ii-bubble-stack:focus-visible .ii-bubble-back--1 {
	opacity: 0.8;
}

.light .ii-bubble-stack:hover .ii-bubble-back--2,
.light .ii-bubble-stack:focus-visible .ii-bubble-back--2 {
	opacity: 0.56;
}

.light .ii-bubble-stack:hover .ii-bubble-back--3,
.light .ii-bubble-stack:focus-visible .ii-bubble-back--3 {
	opacity: 0.34;
}

.light .ii-bubble-count {
	background: rgba(0, 0, 0, 0.42);
}

.light .ii-creations-show-more-btn {
	color: var(--ii-text-secondary);
}

@media (max-width: 1024px) {
	:root {
		--ii-sidebar-width: 260px;
	}
}
