/* Темы: палитры + шкала скруглений. Композиция/типографика не меняются. */

:root {
  --radius: 0.75rem;
  --radius-xs: max(0px, calc(var(--radius) * 0.15));
  --radius-sm: max(0px, calc(var(--radius) * 0.45));
  --radius-md: max(0px, calc(var(--radius) * 0.65));
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.35);
  --radius-2xl: calc(var(--radius) * 1.75);
}

/* ——— Radius presets ——— */
html[data-radius="sharp"] {
  --radius: 0.125rem;
}

html[data-radius="soft"] {
  --radius: 0.75rem;
}

html[data-radius="round"] {
  --radius: 1.35rem;
}

/* ——— Palette: Forest (default, текущая зелёная) ——— */
html[data-theme="forest"],
html:not([data-theme]) {
  --background: oklch(0.99 0.004 120);
  --foreground: oklch(0.18 0.01 150);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.18 0.01 150);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.18 0.01 150);
  --primary: oklch(0.55 0.13 162);
  --primary-foreground: oklch(0.99 0.01 150);
  --secondary: oklch(0.96 0.02 130);
  --secondary-foreground: oklch(0.3 0.04 160);
  --muted: oklch(0.96 0.01 130);
  --muted-foreground: oklch(0.5 0.02 150);
  --accent: oklch(0.95 0.04 95);
  --accent-foreground: oklch(0.35 0.06 70);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.91 0.01 140);
  --input: oklch(0.91 0.01 140);
  --ring: oklch(0.55 0.13 162);
}

/* ——— Palette: Ocean (холодный индиго-синий) ——— */
html[data-theme="ocean"] {
  --background: oklch(0.985 0.01 250);
  --foreground: oklch(0.2 0.03 255);
  --card: oklch(1 0.005 250);
  --card-foreground: oklch(0.2 0.03 255);
  --popover: oklch(1 0.005 250);
  --popover-foreground: oklch(0.2 0.03 255);
  --primary: oklch(0.48 0.14 255);
  --primary-foreground: oklch(0.98 0.01 250);
  --secondary: oklch(0.95 0.02 250);
  --secondary-foreground: oklch(0.32 0.05 255);
  --muted: oklch(0.95 0.015 250);
  --muted-foreground: oklch(0.5 0.03 255);
  --accent: oklch(0.94 0.03 220);
  --accent-foreground: oklch(0.35 0.06 230);
  --destructive: oklch(0.55 0.2 25);
  --border: oklch(0.9 0.02 250);
  --input: oklch(0.9 0.02 250);
  --ring: oklch(0.48 0.14 255);
}

/* ——— Palette: Ember (тёплый медный акцент на нейтральном фоне) ——— */
html[data-theme="ember"] {
  --background: oklch(0.985 0.008 60);
  --foreground: oklch(0.2 0.02 40);
  --card: oklch(1 0.005 60);
  --card-foreground: oklch(0.2 0.02 40);
  --popover: oklch(1 0.005 60);
  --popover-foreground: oklch(0.2 0.02 40);
  --primary: oklch(0.55 0.14 45);
  --primary-foreground: oklch(0.99 0.01 60);
  --secondary: oklch(0.96 0.02 70);
  --secondary-foreground: oklch(0.35 0.05 45);
  --muted: oklch(0.96 0.015 70);
  --muted-foreground: oklch(0.5 0.03 50);
  --accent: oklch(0.95 0.035 85);
  --accent-foreground: oklch(0.38 0.07 55);
  --destructive: oklch(0.55 0.2 25);
  --border: oklch(0.9 0.02 60);
  --input: oklch(0.9 0.02 60);
  --ring: oklch(0.55 0.14 45);
}

/* ——— Palette: Slate (графит + приглушённый изумруд) ——— */
html[data-theme="slate"] {
  --background: oklch(0.975 0.005 200);
  --foreground: oklch(0.22 0.015 220);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.22 0.015 220);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.22 0.015 220);
  --primary: oklch(0.4 0.04 220);
  --primary-foreground: oklch(0.98 0.005 200);
  --secondary: oklch(0.94 0.01 200);
  --secondary-foreground: oklch(0.3 0.02 220);
  --muted: oklch(0.94 0.008 200);
  --muted-foreground: oklch(0.5 0.015 220);
  --accent: oklch(0.93 0.025 175);
  --accent-foreground: oklch(0.32 0.05 175);
  --destructive: oklch(0.5 0.18 25);
  --border: oklch(0.88 0.01 220);
  --input: oklch(0.88 0.01 220);
  --ring: oklch(0.45 0.05 200);
}

/* ——— Palette: Coffee (зерно, тёплый коричневый) ——— */
html[data-theme="coffee"] {
  --background: oklch(0.985 0.01 75);
  --foreground: oklch(0.22 0.03 55);
  --card: oklch(0.995 0.005 75);
  --card-foreground: oklch(0.22 0.03 55);
  --popover: oklch(0.995 0.005 75);
  --popover-foreground: oklch(0.22 0.03 55);
  --primary: oklch(0.45 0.08 55);
  --primary-foreground: oklch(0.98 0.01 80);
  --secondary: oklch(0.95 0.025 80);
  --secondary-foreground: oklch(0.35 0.05 55);
  --muted: oklch(0.95 0.015 75);
  --muted-foreground: oklch(0.5 0.03 55);
  --accent: oklch(0.93 0.04 85);
  --accent-foreground: oklch(0.38 0.06 60);
  --destructive: oklch(0.55 0.2 25);
  --border: oklch(0.9 0.02 70);
  --input: oklch(0.9 0.02 70);
  --ring: oklch(0.45 0.08 55);
}

/* ——— Palette: Rolls (азиатский тёплый терракот) ——— */
html[data-theme="rolls"] {
  --background: oklch(0.985 0.012 40);
  --foreground: oklch(0.22 0.035 30);
  --card: oklch(1 0.005 40);
  --card-foreground: oklch(0.22 0.035 30);
  --popover: oklch(1 0.005 40);
  --popover-foreground: oklch(0.22 0.035 30);
  --primary: oklch(0.52 0.14 35);
  --primary-foreground: oklch(0.99 0.01 40);
  --secondary: oklch(0.95 0.03 45);
  --secondary-foreground: oklch(0.35 0.06 35);
  --muted: oklch(0.95 0.02 40);
  --muted-foreground: oklch(0.5 0.03 35);
  --accent: oklch(0.94 0.04 90);
  --accent-foreground: oklch(0.4 0.07 50);
  --destructive: oklch(0.55 0.2 25);
  --border: oklch(0.9 0.025 40);
  --input: oklch(0.9 0.025 40);
  --ring: oklch(0.52 0.14 35);
}

/* ——— Palette: Sushi (чёрный + аквамарин) ——— */
html[data-theme="sushi"] {
  --background: oklch(0.975 0.008 200);
  --foreground: oklch(0.2 0.02 220);
  --card: oklch(0.995 0.004 200);
  --card-foreground: oklch(0.2 0.02 220);
  --popover: oklch(0.995 0.004 200);
  --popover-foreground: oklch(0.2 0.02 220);
  --primary: oklch(0.42 0.06 210);
  --primary-foreground: oklch(0.98 0.01 200);
  --secondary: oklch(0.94 0.02 185);
  --secondary-foreground: oklch(0.3 0.05 200);
  --muted: oklch(0.94 0.012 200);
  --muted-foreground: oklch(0.48 0.025 210);
  --accent: oklch(0.93 0.04 175);
  --accent-foreground: oklch(0.32 0.06 180);
  --destructive: oklch(0.55 0.2 25);
  --border: oklch(0.88 0.015 210);
  --input: oklch(0.88 0.015 210);
  --ring: oklch(0.42 0.06 210);
}

/* ——— Palette: Pizza (томатный + тёплое тесто) ——— */
html[data-theme="pizza"] {
  --background: oklch(0.985 0.012 55);
  --foreground: oklch(0.22 0.04 30);
  --card: oklch(1 0.006 55);
  --card-foreground: oklch(0.22 0.04 30);
  --popover: oklch(1 0.006 55);
  --popover-foreground: oklch(0.22 0.04 30);
  --primary: oklch(0.5 0.16 30);
  --primary-foreground: oklch(0.99 0.01 50);
  --secondary: oklch(0.95 0.03 70);
  --secondary-foreground: oklch(0.35 0.06 40);
  --muted: oklch(0.95 0.02 55);
  --muted-foreground: oklch(0.5 0.03 40);
  --accent: oklch(0.93 0.05 95);
  --accent-foreground: oklch(0.4 0.08 55);
  --destructive: oklch(0.55 0.2 25);
  --border: oklch(0.9 0.025 50);
  --input: oklch(0.9 0.025 50);
  --ring: oklch(0.5 0.16 30);
}

/* ——— Palette: Vegan (свежая зелень) ——— */
html[data-theme="vegan"] {
  --background: oklch(0.985 0.015 140);
  --foreground: oklch(0.2 0.04 145);
  --card: oklch(0.995 0.008 140);
  --card-foreground: oklch(0.2 0.04 145);
  --popover: oklch(0.995 0.008 140);
  --popover-foreground: oklch(0.2 0.04 145);
  --primary: oklch(0.5 0.14 145);
  --primary-foreground: oklch(0.99 0.01 140);
  --secondary: oklch(0.95 0.03 130);
  --secondary-foreground: oklch(0.32 0.06 145);
  --muted: oklch(0.95 0.02 135);
  --muted-foreground: oklch(0.48 0.04 145);
  --accent: oklch(0.94 0.05 100);
  --accent-foreground: oklch(0.35 0.07 120);
  --destructive: oklch(0.55 0.2 25);
  --border: oklch(0.9 0.025 140);
  --input: oklch(0.9 0.025 140);
  --ring: oklch(0.5 0.14 145);
}

/* ——— Palette: Kids (мягкий коралл + небо) ——— */
html[data-theme="kids"] {
  --background: oklch(0.985 0.015 90);
  --foreground: oklch(0.25 0.04 40);
  --card: oklch(1 0.008 90);
  --card-foreground: oklch(0.25 0.04 40);
  --popover: oklch(1 0.008 90);
  --popover-foreground: oklch(0.25 0.04 40);
  --primary: oklch(0.62 0.16 25);
  --primary-foreground: oklch(0.99 0.01 80);
  --secondary: oklch(0.94 0.04 230);
  --secondary-foreground: oklch(0.35 0.08 250);
  --muted: oklch(0.95 0.02 100);
  --muted-foreground: oklch(0.5 0.03 50);
  --accent: oklch(0.93 0.05 200);
  --accent-foreground: oklch(0.35 0.08 230);
  --destructive: oklch(0.55 0.2 25);
  --border: oklch(0.9 0.03 90);
  --input: oklch(0.9 0.03 90);
  --ring: oklch(0.62 0.16 25);
}

/* ——— Dark: Noir (нейтральный чёрный) ——— */
html[data-theme="noir"] {
  --background: oklch(0.16 0.005 260);
  --foreground: oklch(0.95 0.01 260);
  --card: oklch(0.2 0.008 260);
  --card-foreground: oklch(0.95 0.01 260);
  --popover: oklch(0.2 0.008 260);
  --popover-foreground: oklch(0.95 0.01 260);
  --primary: oklch(0.78 0.02 260);
  --primary-foreground: oklch(0.16 0.01 260);
  --secondary: oklch(0.26 0.01 260);
  --secondary-foreground: oklch(0.9 0.01 260);
  --muted: oklch(0.24 0.008 260);
  --muted-foreground: oklch(0.7 0.015 260);
  --accent: oklch(0.28 0.02 260);
  --accent-foreground: oklch(0.95 0.01 260);
  --destructive: oklch(0.62 0.2 25);
  --border: oklch(0.3 0.01 260);
  --input: oklch(0.3 0.01 260);
  --ring: oklch(0.7 0.02 260);
}

/* ——— Dark: Carbon (графит + холодный акцент) ——— */
html[data-theme="carbon"] {
  --background: oklch(0.17 0.01 240);
  --foreground: oklch(0.94 0.01 220);
  --card: oklch(0.21 0.012 240);
  --card-foreground: oklch(0.94 0.01 220);
  --popover: oklch(0.21 0.012 240);
  --popover-foreground: oklch(0.94 0.01 220);
  --primary: oklch(0.72 0.04 220);
  --primary-foreground: oklch(0.16 0.02 240);
  --secondary: oklch(0.26 0.015 240);
  --secondary-foreground: oklch(0.9 0.01 220);
  --muted: oklch(0.25 0.012 240);
  --muted-foreground: oklch(0.68 0.02 230);
  --accent: oklch(0.3 0.03 200);
  --accent-foreground: oklch(0.92 0.02 200);
  --destructive: oklch(0.6 0.2 25);
  --border: oklch(0.32 0.015 240);
  --input: oklch(0.32 0.015 240);
  --ring: oklch(0.65 0.05 220);
}

/* ——— Dark: Midnight (глубокий индиго) ——— */
html[data-theme="midnight"] {
  --background: oklch(0.16 0.03 270);
  --foreground: oklch(0.94 0.02 260);
  --card: oklch(0.2 0.035 270);
  --card-foreground: oklch(0.94 0.02 260);
  --popover: oklch(0.2 0.035 270);
  --popover-foreground: oklch(0.94 0.02 260);
  --primary: oklch(0.68 0.14 275);
  --primary-foreground: oklch(0.98 0.01 270);
  --secondary: oklch(0.26 0.04 270);
  --secondary-foreground: oklch(0.9 0.03 270);
  --muted: oklch(0.24 0.03 270);
  --muted-foreground: oklch(0.7 0.04 270);
  --accent: oklch(0.32 0.06 300);
  --accent-foreground: oklch(0.95 0.02 290);
  --destructive: oklch(0.62 0.2 25);
  --border: oklch(0.32 0.04 270);
  --input: oklch(0.32 0.04 270);
  --ring: oklch(0.68 0.14 275);
}

/* ——— Dark accent: Ember-dark (чёрный + оранжевый) ——— */
html[data-theme="ember-dark"] {
  --background: oklch(0.15 0.015 40);
  --foreground: oklch(0.95 0.02 70);
  --card: oklch(0.19 0.02 40);
  --card-foreground: oklch(0.95 0.02 70);
  --popover: oklch(0.19 0.02 40);
  --popover-foreground: oklch(0.95 0.02 70);
  --primary: oklch(0.7 0.17 50);
  --primary-foreground: oklch(0.16 0.03 40);
  --secondary: oklch(0.25 0.03 45);
  --secondary-foreground: oklch(0.92 0.03 70);
  --muted: oklch(0.23 0.02 40);
  --muted-foreground: oklch(0.7 0.04 60);
  --accent: oklch(0.3 0.06 55);
  --accent-foreground: oklch(0.95 0.04 70);
  --destructive: oklch(0.6 0.2 25);
  --border: oklch(0.3 0.03 45);
  --input: oklch(0.3 0.03 45);
  --ring: oklch(0.7 0.17 50);
}

/* ——— Dark accent: Crimson-dark (чёрный + красный) ——— */
html[data-theme="crimson-dark"] {
  --background: oklch(0.15 0.02 20);
  --foreground: oklch(0.95 0.01 20);
  --card: oklch(0.19 0.025 20);
  --card-foreground: oklch(0.95 0.01 20);
  --popover: oklch(0.19 0.025 20);
  --popover-foreground: oklch(0.95 0.01 20);
  --primary: oklch(0.62 0.22 25);
  --primary-foreground: oklch(0.98 0.01 20);
  --secondary: oklch(0.25 0.04 20);
  --secondary-foreground: oklch(0.92 0.02 20);
  --muted: oklch(0.23 0.03 20);
  --muted-foreground: oklch(0.7 0.04 20);
  --accent: oklch(0.3 0.08 25);
  --accent-foreground: oklch(0.95 0.02 20);
  --destructive: oklch(0.55 0.2 25);
  --border: oklch(0.3 0.04 20);
  --input: oklch(0.3 0.04 20);
  --ring: oklch(0.62 0.22 25);
}

/* ——— Dark accent: Volt-dark (чёрный + лайм, фитнес) ——— */
html[data-theme="volt-dark"] {
  --background: oklch(0.14 0.02 140);
  --foreground: oklch(0.95 0.02 130);
  --card: oklch(0.18 0.025 140);
  --card-foreground: oklch(0.95 0.02 130);
  --popover: oklch(0.18 0.025 140);
  --popover-foreground: oklch(0.95 0.02 130);
  --primary: oklch(0.82 0.2 130);
  --primary-foreground: oklch(0.16 0.05 140);
  --secondary: oklch(0.24 0.04 140);
  --secondary-foreground: oklch(0.92 0.03 130);
  --muted: oklch(0.22 0.03 140);
  --muted-foreground: oklch(0.68 0.04 140);
  --accent: oklch(0.3 0.08 145);
  --accent-foreground: oklch(0.95 0.04 130);
  --destructive: oklch(0.6 0.2 25);
  --border: oklch(0.28 0.04 140);
  --input: oklch(0.28 0.04 140);
  --ring: oklch(0.82 0.2 130);
}

/* ——— Beauty: Rose ——— */
html[data-theme="rose"] {
  --background: oklch(0.985 0.012 10);
  --foreground: oklch(0.25 0.04 10);
  --card: oklch(1 0.006 10);
  --card-foreground: oklch(0.25 0.04 10);
  --popover: oklch(1 0.006 10);
  --popover-foreground: oklch(0.25 0.04 10);
  --primary: oklch(0.58 0.16 10);
  --primary-foreground: oklch(0.99 0.01 10);
  --secondary: oklch(0.95 0.03 350);
  --secondary-foreground: oklch(0.4 0.08 10);
  --muted: oklch(0.95 0.02 10);
  --muted-foreground: oklch(0.5 0.04 10);
  --accent: oklch(0.94 0.04 350);
  --accent-foreground: oklch(0.4 0.1 350);
  --destructive: oklch(0.55 0.2 25);
  --border: oklch(0.9 0.025 10);
  --input: oklch(0.9 0.025 10);
  --ring: oklch(0.58 0.16 10);
}

/* ——— Beauty: Violet ——— */
html[data-theme="violet"] {
  --background: oklch(0.985 0.015 300);
  --foreground: oklch(0.24 0.05 300);
  --card: oklch(1 0.008 300);
  --card-foreground: oklch(0.24 0.05 300);
  --popover: oklch(1 0.008 300);
  --popover-foreground: oklch(0.24 0.05 300);
  --primary: oklch(0.52 0.18 300);
  --primary-foreground: oklch(0.99 0.01 300);
  --secondary: oklch(0.95 0.03 300);
  --secondary-foreground: oklch(0.38 0.1 300);
  --muted: oklch(0.95 0.02 300);
  --muted-foreground: oklch(0.5 0.05 300);
  --accent: oklch(0.94 0.05 320);
  --accent-foreground: oklch(0.4 0.1 320);
  --destructive: oklch(0.55 0.2 25);
  --border: oklch(0.9 0.03 300);
  --input: oklch(0.9 0.03 300);
  --ring: oklch(0.52 0.18 300);
}

/* ——— Beauty: Blush (мягкий розово-пудровый) ——— */
html[data-theme="blush"] {
  --background: oklch(0.98 0.018 20);
  --foreground: oklch(0.28 0.05 15);
  --card: oklch(0.995 0.01 20);
  --card-foreground: oklch(0.28 0.05 15);
  --popover: oklch(0.995 0.01 20);
  --popover-foreground: oklch(0.28 0.05 15);
  --primary: oklch(0.68 0.12 15);
  --primary-foreground: oklch(0.99 0.01 20);
  --secondary: oklch(0.95 0.04 350);
  --secondary-foreground: oklch(0.42 0.08 15);
  --muted: oklch(0.95 0.025 20);
  --muted-foreground: oklch(0.52 0.04 15);
  --accent: oklch(0.94 0.05 350);
  --accent-foreground: oklch(0.42 0.09 350);
  --destructive: oklch(0.55 0.2 25);
  --border: oklch(0.9 0.03 20);
  --input: oklch(0.9 0.03 20);
  --ring: oklch(0.68 0.12 15);
}

/* ——— Fitness (светлый энергичный) ——— */
html[data-theme="fitness"] {
  --background: oklch(0.985 0.01 140);
  --foreground: oklch(0.2 0.03 140);
  --card: oklch(1 0.005 140);
  --card-foreground: oklch(0.2 0.03 140);
  --popover: oklch(1 0.005 140);
  --popover-foreground: oklch(0.2 0.03 140);
  --primary: oklch(0.55 0.18 145);
  --primary-foreground: oklch(0.99 0.01 140);
  --secondary: oklch(0.94 0.04 140);
  --secondary-foreground: oklch(0.32 0.08 145);
  --muted: oklch(0.95 0.02 140);
  --muted-foreground: oklch(0.48 0.04 145);
  --accent: oklch(0.93 0.06 100);
  --accent-foreground: oklch(0.35 0.08 120);
  --destructive: oklch(0.55 0.2 25);
  --border: oklch(0.9 0.025 140);
  --input: oklch(0.9 0.025 140);
  --ring: oklch(0.55 0.18 145);
}

/* ——— Steel (сервис / техника) ——— */
html[data-theme="steel"] {
  --background: oklch(0.975 0.008 240);
  --foreground: oklch(0.22 0.02 250);
  --card: oklch(0.995 0.004 240);
  --card-foreground: oklch(0.22 0.02 250);
  --popover: oklch(0.995 0.004 240);
  --popover-foreground: oklch(0.22 0.02 250);
  --primary: oklch(0.45 0.06 250);
  --primary-foreground: oklch(0.98 0.01 240);
  --secondary: oklch(0.94 0.015 240);
  --secondary-foreground: oklch(0.32 0.04 250);
  --muted: oklch(0.94 0.01 240);
  --muted-foreground: oklch(0.5 0.02 250);
  --accent: oklch(0.93 0.03 200);
  --accent-foreground: oklch(0.35 0.05 210);
  --destructive: oklch(0.55 0.2 25);
  --border: oklch(0.88 0.015 240);
  --input: oklch(0.88 0.015 240);
  --ring: oklch(0.45 0.06 250);
}

/* ——— Garage (СТО: тёмный + янтарный) ——— */
html[data-theme="garage"] {
  --background: oklch(0.16 0.015 60);
  --foreground: oklch(0.94 0.02 80);
  --card: oklch(0.2 0.02 60);
  --card-foreground: oklch(0.94 0.02 80);
  --popover: oklch(0.2 0.02 60);
  --popover-foreground: oklch(0.94 0.02 80);
  --primary: oklch(0.75 0.15 75);
  --primary-foreground: oklch(0.18 0.04 60);
  --secondary: oklch(0.26 0.03 60);
  --secondary-foreground: oklch(0.9 0.03 80);
  --muted: oklch(0.24 0.02 60);
  --muted-foreground: oklch(0.68 0.04 70);
  --accent: oklch(0.32 0.06 70);
  --accent-foreground: oklch(0.95 0.03 80);
  --destructive: oklch(0.6 0.2 25);
  --border: oklch(0.3 0.03 60);
  --input: oklch(0.3 0.03 60);
  --ring: oklch(0.75 0.15 75);
}

/* ——— Copper (металлолом: тёплый металл) ——— */
html[data-theme="copper"] {
  --background: oklch(0.17 0.02 50);
  --foreground: oklch(0.94 0.02 70);
  --card: oklch(0.21 0.025 50);
  --card-foreground: oklch(0.94 0.02 70);
  --popover: oklch(0.21 0.025 50);
  --popover-foreground: oklch(0.94 0.02 70);
  --primary: oklch(0.68 0.14 45);
  --primary-foreground: oklch(0.16 0.03 45);
  --secondary: oklch(0.27 0.035 50);
  --secondary-foreground: oklch(0.9 0.03 70);
  --muted: oklch(0.24 0.025 50);
  --muted-foreground: oklch(0.7 0.04 55);
  --accent: oklch(0.34 0.07 55);
  --accent-foreground: oklch(0.95 0.03 70);
  --destructive: oklch(0.6 0.2 25);
  --border: oklch(0.32 0.04 50);
  --input: oklch(0.32 0.04 50);
  --ring: oklch(0.68 0.14 45);
}

/* ——— Safety (хендмен: жёлтый акцент на тёмном) ——— */
html[data-theme="safety"] {
  --background: oklch(0.18 0.015 90);
  --foreground: oklch(0.95 0.02 95);
  --card: oklch(0.22 0.02 90);
  --card-foreground: oklch(0.95 0.02 95);
  --popover: oklch(0.22 0.02 90);
  --popover-foreground: oklch(0.95 0.02 95);
  --primary: oklch(0.84 0.16 95);
  --primary-foreground: oklch(0.2 0.05 90);
  --secondary: oklch(0.28 0.03 90);
  --secondary-foreground: oklch(0.92 0.03 95);
  --muted: oklch(0.26 0.02 90);
  --muted-foreground: oklch(0.7 0.04 95);
  --accent: oklch(0.34 0.06 100);
  --accent-foreground: oklch(0.95 0.03 95);
  --destructive: oklch(0.6 0.2 25);
  --border: oklch(0.32 0.03 90);
  --input: oklch(0.32 0.03 90);
  --ring: oklch(0.84 0.16 95);
}

/* ——— Theme switcher UI (в блоке отладки под футером) ——— */
.theme-panel {
  position: static;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--background);
  box-shadow: none;
  padding: 1rem;
}

.theme-panel[hidden] {
  display: none !important;
}

.theme-panel-title {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.theme-section + .theme-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in oklch, var(--border) 80%, transparent);
}

.theme-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.theme-swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .theme-swatches {
    grid-template-columns: repeat(3, 1fr);
  }
}

.theme-swatch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.theme-swatch:hover {
  border-color: color-mix(in oklch, var(--primary) 40%, transparent);
}

.theme-swatch[aria-pressed="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--primary) 25%, transparent);
}

.theme-swatch-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  flex-shrink: 0;
  border: 1px solid rgb(0 0 0 / 0.08);
}

.theme-swatch-dot.forest {
  background: oklch(0.55 0.13 162);
}
.theme-swatch-dot.ocean {
  background: oklch(0.48 0.14 255);
}
.theme-swatch-dot.ember {
  background: oklch(0.55 0.14 45);
}
.theme-swatch-dot.slate {
  background: oklch(0.4 0.04 220);
}
.theme-swatch-dot.coffee {
  background: oklch(0.45 0.08 55);
}
.theme-swatch-dot.rolls {
  background: oklch(0.52 0.14 35);
}
.theme-swatch-dot.sushi {
  background: oklch(0.42 0.06 210);
}
.theme-swatch-dot.pizza {
  background: oklch(0.5 0.16 30);
}
.theme-swatch-dot.vegan {
  background: oklch(0.5 0.14 145);
}
.theme-swatch-dot.kids {
  background: oklch(0.62 0.16 25);
}
.theme-swatch-dot.noir {
  background: oklch(0.3 0.01 260);
}
.theme-swatch-dot.carbon {
  background: oklch(0.35 0.02 240);
}
.theme-swatch-dot.midnight {
  background: oklch(0.4 0.1 275);
}
.theme-swatch-dot.ember-dark {
  background: linear-gradient(135deg, oklch(0.2 0.02 40), oklch(0.7 0.17 50));
}
.theme-swatch-dot.crimson-dark {
  background: linear-gradient(135deg, oklch(0.2 0.03 20), oklch(0.62 0.22 25));
}
.theme-swatch-dot.volt-dark {
  background: linear-gradient(135deg, oklch(0.18 0.03 140), oklch(0.82 0.2 130));
}
.theme-swatch-dot.rose {
  background: oklch(0.58 0.16 10);
}
.theme-swatch-dot.violet {
  background: oklch(0.52 0.18 300);
}
.theme-swatch-dot.blush {
  background: oklch(0.68 0.12 15);
}
.theme-swatch-dot.fitness {
  background: oklch(0.55 0.18 145);
}
.theme-swatch-dot.steel {
  background: oklch(0.45 0.06 250);
}
.theme-swatch-dot.garage {
  background: linear-gradient(135deg, oklch(0.2 0.02 60), oklch(0.75 0.15 75));
}
.theme-swatch-dot.copper {
  background: oklch(0.68 0.14 45);
}
.theme-swatch-dot.safety {
  background: linear-gradient(135deg, oklch(0.22 0.02 90), oklch(0.84 0.16 95));
}

.theme-radii {
  display: flex;
  gap: 0.4rem;
}

.theme-radius-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.theme-radius-btn:hover {
  border-color: color-mix(in oklch, var(--primary) 40%, transparent);
  color: var(--foreground);
}

.theme-radius-btn[aria-pressed="true"] {
  border-color: var(--primary);
  color: var(--foreground);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--primary) 25%, transparent);
}

.theme-radius-preview {
  width: 1.75rem;
  height: 1.15rem;
  border: 2px solid var(--primary);
  background: color-mix(in oklch, var(--primary) 12%, transparent);
}

.theme-radius-preview.sharp {
  border-radius: 0.1rem;
}
.theme-radius-preview.soft {
  border-radius: 0.4rem;
}
.theme-radius-preview.round {
  border-radius: 0.85rem;
}

.theme-hint {
  margin: 0.75rem 0 0;
  font-size: 0.7rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

/* ——— Background textures / subtle patterns ——— */
:root {
  --pattern-opacity: 0.4;
  --pattern-size: 160px;
  --pattern-image: none;
}

html[data-pattern='dots'] {
  --pattern-size: 16px 16px;
  --pattern-opacity: 0.55;
  /* SVG-точки: radial-gradient на части движков давал «полоски» */
  --pattern-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='2' cy='2' r='1.15' fill='%23000000' fill-opacity='0.16'/%3E%3C/svg%3E");
}

html[data-pattern='grid'] {
  --pattern-size: 28px 28px;
  --pattern-opacity: 0.45;
  --pattern-image:
    linear-gradient(color-mix(in oklch, var(--foreground) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--foreground) 7%, transparent) 1px, transparent 1px);
}

html[data-pattern='paper'] {
  --pattern-size: 12px;
  --pattern-opacity: 0.5;
  --pattern-image: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 6px,
    color-mix(in oklch, var(--foreground) 5%, transparent) 6px,
    color-mix(in oklch, var(--foreground) 5%, transparent) 7px
  );
}

html[data-pattern='coffee'] {
  --pattern-size: 140px;
  --pattern-opacity: 0.28;
  --pattern-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23654321' stroke-width='2' opacity='0.35'%3E%3Cellipse cx='36' cy='40' rx='14' ry='10' transform='rotate(-28 36 40)'/%3E%3Cpath d='M30 34c4 2 8 2 12 0'/%3E%3Cellipse cx='98' cy='52' rx='14' ry='10' transform='rotate(18 98 52)'/%3E%3Cpath d='M92 46c4 2 8 2 12 0'/%3E%3Cellipse cx='62' cy='100' rx='14' ry='10' transform='rotate(-12 62 100)'/%3E%3Cpath d='M56 94c4 2 8 2 12 0'/%3E%3Cellipse cx='118' cy='108' rx='11' ry='8' transform='rotate(32 118 108)'/%3E%3C/g%3E%3C/svg%3E");
}

html[data-pattern='sweets'] {
  --pattern-size: 120px;
  --pattern-opacity: 0.32;
  --pattern-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg opacity='0.4'%3E%3Ccircle cx='22' cy='24' r='4' fill='%23f07167'/%3E%3Ccircle cx='58' cy='18' r='3' fill='%23ffd166'/%3E%3Crect x='86' y='20' width='10' height='10' rx='2' transform='rotate(20 91 25)' fill='%2306d6a0'/%3E%3Cpath d='M30 70c6-8 18-8 24 0-6 8-18 8-24 0z' fill='%23ef476f'/%3E%3Ccircle cx='92' cy='72' r='5' fill='%23118ab2'/%3E%3Ccircle cx='64' cy='98' r='3.5' fill='%23ffd166'/%3E%3Crect x='14' y='96' width='12' height='7' rx='3' fill='%2306d6a0'/%3E%3C/g%3E%3C/svg%3E");
}

html[data-pattern='waves'] {
  --pattern-size: 64px;
  --pattern-opacity: 0.4;
  --pattern-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32' viewBox='0 0 64 32'%3E%3Cpath fill='none' stroke='%23000' stroke-opacity='0.08' stroke-width='2' d='M0 18c8 0 8-8 16-8s8 8 16 8 8-8 16-8 8 8 16 8'/%3E%3C/svg%3E");
}

html[data-pattern='mesh'] {
  --pattern-size: 48px 48px;
  --pattern-opacity: 0.4;
  --pattern-image:
    radial-gradient(circle at 1px 1px, color-mix(in oklch, var(--foreground) 12%, transparent) 1px, transparent 0);
}

html[data-pattern='diag'] {
  --pattern-size: 12px;
  --pattern-opacity: 0.45;
  --pattern-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 5px,
    color-mix(in oklch, var(--foreground) 6%, transparent) 5px,
    color-mix(in oklch, var(--foreground) 6%, transparent) 6px
  );
}

html[data-pattern='carbon'] {
  --pattern-size: 8px 8px;
  --pattern-opacity: 0.5;
  --pattern-image:
    linear-gradient(45deg, color-mix(in oklch, var(--foreground) 8%, transparent) 25%, transparent 25%),
    linear-gradient(-45deg, color-mix(in oklch, var(--foreground) 8%, transparent) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, color-mix(in oklch, var(--foreground) 8%, transparent) 75%),
    linear-gradient(-45deg, transparent 75%, color-mix(in oklch, var(--foreground) 8%, transparent) 75%);
}

/* page-level texture */
html[data-pattern]:not([data-pattern='none']) body {
  background-color: var(--background);
  background-image: var(--pattern-image);
  background-size: var(--pattern-size);
  background-repeat: repeat;
}

html[data-pattern='dots'] body,
html[data-pattern='grid'] body {
  background-size: var(--pattern-size);
}

/* block-level texture: any element with data-pattern */
[data-pattern]:not([data-pattern='none']):not(html) {
  --_pattern-bg: var(--card, var(--background));
  background-color: var(--_pattern-bg);
  background-image: var(--pattern-image);
  background-size: var(--pattern-size);
  background-repeat: repeat;
  isolation: isolate;
}

[data-pattern='dots']:not(html),
[data-pattern='grid']:not(html) {
  background-size: var(--pattern-size);
}

[data-pattern='coffee']:not(html) {
  --pattern-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23654321' stroke-width='2' opacity='0.35'%3E%3Cellipse cx='36' cy='40' rx='14' ry='10' transform='rotate(-28 36 40)'/%3E%3Cpath d='M30 34c4 2 8 2 12 0'/%3E%3Cellipse cx='98' cy='52' rx='14' ry='10' transform='rotate(18 98 52)'/%3E%3Cpath d='M92 46c4 2 8 2 12 0'/%3E%3Cellipse cx='62' cy='100' rx='14' ry='10' transform='rotate(-12 62 100)'/%3E%3Cpath d='M56 94c4 2 8 2 12 0'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-size: 140px;
}

[data-pattern='sweets']:not(html) {
  --pattern-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg opacity='0.4'%3E%3Ccircle cx='22' cy='24' r='4' fill='%23f07167'/%3E%3Ccircle cx='58' cy='18' r='3' fill='%23ffd166'/%3E%3Crect x='86' y='20' width='10' height='10' rx='2' transform='rotate(20 91 25)' fill='%2306d6a0'/%3E%3Cpath d='M30 70c6-8 18-8 24 0-6 8-18 8-24 0z' fill='%23ef476f'/%3E%3Ccircle cx='92' cy='72' r='5' fill='%23118ab2'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-size: 120px;
}

[data-pattern='paper']:not(html) {
  --pattern-image: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 6px,
    color-mix(in oklch, var(--foreground) 5%, transparent) 6px,
    color-mix(in oklch, var(--foreground) 5%, transparent) 7px
  );
  --pattern-size: 12px;
}

[data-pattern='waves']:not(html) {
  --pattern-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32' viewBox='0 0 64 32'%3E%3Cpath fill='none' stroke='%23000' stroke-opacity='0.08' stroke-width='2' d='M0 18c8 0 8-8 16-8s8 8 16 8 8-8 16-8 8 8 16 8'/%3E%3C/svg%3E");
  --pattern-size: 64px;
}

[data-pattern='dots']:not(html) {
  --pattern-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='2' cy='2' r='1.15' fill='%23000000' fill-opacity='0.14'/%3E%3C/svg%3E");
  --pattern-size: 16px 16px;
}

[data-pattern='grid']:not(html) {
  --pattern-image:
    linear-gradient(color-mix(in oklch, var(--foreground) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--foreground) 7%, transparent) 1px, transparent 1px);
  --pattern-size: 28px 28px;
}

.theme-pattern-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--foreground);
  text-align: left;
}

.theme-pattern-btn[aria-pressed='true'] {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--primary) 25%, transparent);
}

.theme-pattern-preview {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgb(0 0 0 / 0.08);
  flex-shrink: 0;
  background-color: var(--muted);
  background-size: cover;
}

.theme-pattern-preview.none {
  background: var(--background);
}
.theme-pattern-preview.dots {
  background-color: #f3f3f3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Ccircle cx='1.5' cy='1.5' r='1' fill='%23000' fill-opacity='0.35'/%3E%3C/svg%3E");
  background-size: 8px 8px;
}
.theme-pattern-preview.grid {
  background-image:
    linear-gradient(rgb(0 0 0 / 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0 0 0 / 0.15) 1px, transparent 1px);
  background-size: 6px 6px;
}
.theme-pattern-preview.paper {
  background-image: repeating-linear-gradient(-18deg, transparent, transparent 2px, rgb(0 0 0 / 0.12) 2px, rgb(0 0 0 / 0.12) 3px);
}
.theme-pattern-preview.coffee {
  background: #6f4e37;
}
.theme-pattern-preview.sweets {
  background: linear-gradient(135deg, #f07167, #ffd166 40%, #06d6a0 70%, #118ab2);
}
.theme-pattern-preview.waves {
  background: linear-gradient(180deg, #cfe8f3, #9bc9de);
}
.theme-pattern-preview.mesh {
  background-color: #e8e8e8;
  background-image: radial-gradient(circle at 1px 1px, rgb(0 0 0 / 0.25) 1px, transparent 0);
  background-size: 6px 6px;
}
.theme-pattern-preview.diag {
  background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, rgb(0 0 0 / 0.15) 2px, rgb(0 0 0 / 0.15) 3px);
}
.theme-pattern-preview.carbon {
  background: #2a2a2a;
  background-image:
    linear-gradient(45deg, rgb(255 255 255 / 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgb(255 255 255 / 0.08) 25%, transparent 25%);
  background-size: 4px 4px;
}

/* ——— Footer color schemes + textures ——— */

/* Из темы: светлый */
html[data-footer='theme-light'] .footer {
  --footer-bg: color-mix(in oklch, var(--background) 88%, var(--muted));
  --footer-fg: var(--foreground);
  --footer-muted: var(--muted-foreground);
  --footer-border: color-mix(in oklch, var(--border) 85%, var(--primary) 15%);
  --footer-link: var(--muted-foreground);
  --footer-link-hover: var(--primary);
  --footer-heading: var(--foreground);
}

/* Из темы: тёмный (на базе foreground + primary) */
html[data-footer='theme-dark'] .footer {
  --footer-bg: color-mix(in oklch, var(--foreground) 82%, var(--primary) 18%);
  --footer-fg: var(--background);
  --footer-muted: color-mix(in oklch, var(--background) 72%, transparent);
  --footer-border: color-mix(in oklch, var(--background) 18%, transparent);
  --footer-link: color-mix(in oklch, var(--background) 78%, transparent);
  --footer-link-hover: color-mix(in oklch, var(--background) 100%, var(--primary) 20%);
  --footer-heading: var(--background);
}

/* Из темы: мягкий акцент */
html[data-footer='theme-soft'] .footer {
  --footer-bg: color-mix(in oklch, var(--secondary) 70%, var(--background));
  --footer-fg: var(--secondary-foreground);
  --footer-muted: color-mix(in oklch, var(--secondary-foreground) 65%, transparent);
  --footer-border: color-mix(in oklch, var(--primary) 22%, var(--border));
  --footer-link: color-mix(in oklch, var(--secondary-foreground) 70%, transparent);
  --footer-link-hover: var(--primary);
  --footer-heading: var(--secondary-foreground);
}

/* Нейтральные светлые */
html[data-footer='light'] .footer {
  --footer-bg: oklch(0.985 0.004 100);
  --footer-fg: oklch(0.22 0.02 260);
  --footer-muted: oklch(0.48 0.02 260);
  --footer-border: oklch(0.9 0.01 260);
  --footer-link: oklch(0.45 0.02 260);
  --footer-link-hover: oklch(0.28 0.04 260);
  --footer-heading: oklch(0.2 0.02 260);
}

html[data-footer='snow'] .footer {
  --footer-bg: oklch(1 0 0);
  --footer-fg: oklch(0.2 0.01 260);
  --footer-muted: oklch(0.5 0.015 260);
  --footer-border: oklch(0.92 0.005 260);
  --footer-link: oklch(0.46 0.02 260);
  --footer-link-hover: oklch(0.25 0.03 260);
  --footer-heading: oklch(0.18 0.015 260);
}

html[data-footer='cream'] .footer {
  --footer-bg: oklch(0.97 0.015 85);
  --footer-fg: oklch(0.28 0.03 55);
  --footer-muted: oklch(0.5 0.03 55);
  --footer-border: oklch(0.9 0.02 80);
  --footer-link: oklch(0.45 0.04 55);
  --footer-link-hover: oklch(0.35 0.06 45);
  --footer-heading: oklch(0.25 0.04 50);
}

/* Нейтральные тёмные */
html[data-footer='black'] .footer {
  --footer-bg: oklch(0.14 0 0);
  --footer-fg: oklch(0.96 0 0);
  --footer-muted: oklch(0.72 0 0);
  --footer-border: oklch(0.28 0 0);
  --footer-link: oklch(0.78 0 0);
  --footer-link-hover: oklch(1 0 0);
  --footer-heading: oklch(0.98 0 0);
}

html[data-footer='charcoal'] .footer {
  --footer-bg: oklch(0.24 0.01 260);
  --footer-fg: oklch(0.95 0.005 260);
  --footer-muted: oklch(0.7 0.01 260);
  --footer-border: oklch(0.35 0.015 260);
  --footer-link: oklch(0.75 0.015 260);
  --footer-link-hover: oklch(0.98 0.005 260);
  --footer-heading: oklch(0.97 0.005 260);
}

html[data-footer='ink'] .footer {
  --footer-bg: oklch(0.18 0.02 255);
  --footer-fg: oklch(0.94 0.01 240);
  --footer-muted: oklch(0.68 0.02 250);
  --footer-border: oklch(0.3 0.03 255);
  --footer-link: oklch(0.72 0.03 250);
  --footer-link-hover: oklch(0.88 0.04 230);
  --footer-heading: oklch(0.96 0.01 240);
}

/* Текстура только у футера */
html[data-footer-pattern='dots'] .footer {
  --footer-pattern-size: 16px 16px;
  --footer-pattern-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%23000000' fill-opacity='0.18'/%3E%3C/svg%3E");
}

html[data-footer='theme-dark'][data-footer-pattern='dots'] .footer,
html[data-footer='black'][data-footer-pattern='dots'] .footer,
html[data-footer='charcoal'][data-footer-pattern='dots'] .footer,
html[data-footer='ink'][data-footer-pattern='dots'] .footer {
  --footer-pattern-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%23ffffff' fill-opacity='0.22'/%3E%3C/svg%3E");
}

html[data-footer-pattern='grid'] .footer {
  --footer-pattern-size: 26px 26px;
  --footer-pattern-image:
    linear-gradient(color-mix(in oklch, var(--footer-fg) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--footer-fg) 8%, transparent) 1px, transparent 1px);
}

html[data-footer-pattern='paper'] .footer {
  --footer-pattern-size: 12px;
  --footer-pattern-image: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 6px,
    color-mix(in oklch, var(--footer-fg) 6%, transparent) 6px,
    color-mix(in oklch, var(--footer-fg) 6%, transparent) 7px
  );
}

html[data-footer-pattern='coffee'] .footer {
  --footer-pattern-size: 140px;
  --footer-pattern-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23654321' stroke-width='2' opacity='0.28'%3E%3Cellipse cx='36' cy='40' rx='14' ry='10' transform='rotate(-28 36 40)'/%3E%3Cpath d='M30 34c4 2 8 2 12 0'/%3E%3Cellipse cx='98' cy='52' rx='14' ry='10' transform='rotate(18 98 52)'/%3E%3Cpath d='M92 46c4 2 8 2 12 0'/%3E%3Cellipse cx='62' cy='100' rx='14' ry='10' transform='rotate(-12 62 100)'/%3E%3C/g%3E%3C/svg%3E");
}

html[data-footer-pattern='sweets'] .footer {
  --footer-pattern-size: 120px;
  --footer-pattern-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg opacity='0.32'%3E%3Ccircle cx='22' cy='24' r='4' fill='%23f07167'/%3E%3Ccircle cx='58' cy='18' r='3' fill='%23ffd166'/%3E%3Crect x='86' y='20' width='10' height='10' rx='2' transform='rotate(20 91 25)' fill='%2306d6a0'/%3E%3Ccircle cx='92' cy='72' r='5' fill='%23118ab2'/%3E%3C/g%3E%3C/svg%3E");
}

html[data-footer-pattern='waves'] .footer {
  --footer-pattern-size: 64px;
  --footer-pattern-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32' viewBox='0 0 64 32'%3E%3Cpath fill='none' stroke='%23000' stroke-opacity='0.1' stroke-width='2' d='M0 18c8 0 8-8 16-8s8 8 16 8 8-8 16-8 8 8 16 8'/%3E%3C/svg%3E");
}

html[data-footer='theme-dark'][data-footer-pattern='coffee'] .footer,
html[data-footer='black'][data-footer-pattern='coffee'] .footer,
html[data-footer='charcoal'][data-footer-pattern='coffee'] .footer,
html[data-footer='ink'][data-footer-pattern='coffee'] .footer {
  --footer-pattern-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23e8d5c4' stroke-width='2' opacity='0.22'%3E%3Cellipse cx='36' cy='40' rx='14' ry='10' transform='rotate(-28 36 40)'/%3E%3Cpath d='M30 34c4 2 8 2 12 0'/%3E%3Cellipse cx='98' cy='52' rx='14' ry='10' transform='rotate(18 98 52)'/%3E%3Cpath d='M92 46c4 2 8 2 12 0'/%3E%3Cellipse cx='62' cy='100' rx='14' ry='10' transform='rotate(-12 62 100)'/%3E%3C/g%3E%3C/svg%3E");
}

html[data-footer='theme-dark'][data-footer-pattern='waves'] .footer,
html[data-footer='black'][data-footer-pattern='waves'] .footer,
html[data-footer='charcoal'][data-footer-pattern='waves'] .footer,
html[data-footer='ink'][data-footer-pattern='waves'] .footer {
  --footer-pattern-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32' viewBox='0 0 64 32'%3E%3Cpath fill='none' stroke='%23fff' stroke-opacity='0.14' stroke-width='2' d='M0 18c8 0 8-8 16-8s8 8 16 8 8-8 16-8 8 8 16 8'/%3E%3C/svg%3E");
}

.theme-footer-preview {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgb(0 0 0 / 0.1);
  flex-shrink: 0;
}

.theme-footer-preview.theme-light {
  background: linear-gradient(135deg, var(--background), var(--muted));
}
.theme-footer-preview.theme-dark {
  background: linear-gradient(135deg, var(--foreground), var(--primary));
}
.theme-footer-preview.theme-soft {
  background: var(--secondary);
}
.theme-footer-preview.light {
  background: #f6f6f6;
}
.theme-footer-preview.snow {
  background: #fff;
}
.theme-footer-preview.cream {
  background: #f5efe4;
}
.theme-footer-preview.black {
  background: #111;
}
.theme-footer-preview.charcoal {
  background: #2c3038;
}
.theme-footer-preview.ink {
  background: #1a2438;
}

.footer .footer-mark {
  color: var(--footer-heading, var(--foreground));
}

/* legacy: плавающая кнопка больше не используется */
.theme-fab {
  display: none !important;
}
