
/* Additional account palettes: shared surfaces keep every mode consistent. */
html[data-palette-light="pearl"] body.light{
 --logo-glow-opacity:.18;
 --p-bg:#f5f3ed; --p-surface:#fffefa; --p-raised:#e7f0ed; --p-text:#253b3b;
 --c-acc-1:#236e69; --c-acc-1-rgb:35,110,105; --c-acc-2:#9a603d; --c-acc-2-rgb:154,96,61; --c-acc-3:#236e69; --c-acc-3-rgb:35,110,105;
 --bg:#f5f3ed; --bg2:#e7f0ed; --surface:#fffefa; --text:#253b3b; --muted:#253b3bbb; --c-title-edge:#253b3b;
 --logo-bg:#fffefa; --logo-bg-deep:#f5f3ed; --logo-cyan:#236e69; --logo-violet:#9a603d; --logo-magenta:#236e69; --logo-highlight:#253b3b;
}
html[data-palette-light="apricot"] body.light{
 --logo-glow-opacity:.18;
 --p-bg:#fff0e5; --p-surface:#fffaf5; --p-raised:#f9dfce; --p-text:#503325;
 --c-acc-1:#ad482c; --c-acc-1-rgb:173,72,44; --c-acc-2:#82582b; --c-acc-2-rgb:130,88,43; --c-acc-3:#ad482c; --c-acc-3-rgb:173,72,44;
 --bg:#fff0e5; --bg2:#f9dfce; --surface:#fffaf5; --text:#503325; --muted:#503325bb; --c-title-edge:#503325;
 --logo-bg:#fffaf5; --logo-bg-deep:#fff0e5; --logo-cyan:#ad482c; --logo-violet:#82582b; --logo-magenta:#ad482c; --logo-highlight:#503325;
}
html[data-palette-light="pistachio"] body.light{
 --logo-glow-opacity:.18;
 --p-bg:#f0f3e4; --p-surface:#fafcf3; --p-raised:#e1e9cc; --p-text:#303c28;
 --c-acc-1:#506c2c; --c-acc-1-rgb:80,108,44; --c-acc-2:#8a5730; --c-acc-2-rgb:138,87,48; --c-acc-3:#506c2c; --c-acc-3-rgb:80,108,44;
 --bg:#f0f3e4; --bg2:#e1e9cc; --surface:#fafcf3; --text:#303c28; --muted:#303c28bb; --c-title-edge:#303c28;
 --logo-bg:#fafcf3; --logo-bg-deep:#f0f3e4; --logo-cyan:#506c2c; --logo-violet:#8a5730; --logo-magenta:#506c2c; --logo-highlight:#303c28;
}
html[data-palette-light="quartz"] body.light{
 --logo-glow-opacity:.18;
 --p-bg:#faf0f1; --p-surface:#fffafa; --p-raised:#efdce1; --p-text:#4b303b;
 --c-acc-1:#a13f5c; --c-acc-1-rgb:161,63,92; --c-acc-2:#70536e; --c-acc-2-rgb:112,83,110; --c-acc-3:#a13f5c; --c-acc-3-rgb:161,63,92;
 --bg:#faf0f1; --bg2:#efdce1; --surface:#fffafa; --text:#4b303b; --muted:#4b303bbb; --c-title-edge:#4b303b;
 --logo-bg:#fffafa; --logo-bg-deep:#faf0f1; --logo-cyan:#a13f5c; --logo-violet:#70536e; --logo-magenta:#a13f5c; --logo-highlight:#4b303b;
}
html[data-palette-light="glacier"] body.light{
 --logo-glow-opacity:.18;
 --p-bg:#edf5fa; --p-surface:#f9fdff; --p-raised:#d9e9f3; --p-text:#263b50;
 --c-acc-1:#276a9c; --c-acc-1-rgb:39,106,156; --c-acc-2:#386d75; --c-acc-2-rgb:56,109,117; --c-acc-3:#276a9c; --c-acc-3-rgb:39,106,156;
 --bg:#edf5fa; --bg2:#d9e9f3; --surface:#f9fdff; --text:#263b50; --muted:#263b50bb; --c-title-edge:#263b50;
 --logo-bg:#f9fdff; --logo-bg-deep:#edf5fa; --logo-cyan:#276a9c; --logo-violet:#386d75; --logo-magenta:#276a9c; --logo-highlight:#263b50;
}
html[data-palette-dark="ink"] body:not(.light){
 --logo-glow-opacity:.40;
 --p-bg:#101827; --p-surface:#172337; --p-raised:#1d304a; --p-text:#e6eefb;
 --c-acc-1:#91b9ff; --c-acc-1-rgb:145,185,255; --c-acc-2:#88d2dd; --c-acc-2-rgb:136,210,221; --c-acc-3:#91b9ff; --c-acc-3-rgb:145,185,255;
 --bg:#101827; --bg2:#1d304a; --surface:#172337; --text:#e6eefb; --muted:#e6eefbbb; --c-title-edge:#e6eefb;
 --logo-bg:#172337; --logo-bg-deep:#101827; --logo-cyan:#91b9ff; --logo-violet:#88d2dd; --logo-magenta:#91b9ff; --logo-highlight:#e6eefb;
}
html[data-palette-dark="espresso"] body:not(.light){
 --logo-glow-opacity:.40;
 --p-bg:#211915; --p-surface:#30251f; --p-raised:#423128; --p-text:#f6e9db;
 --c-acc-1:#edbb84; --c-acc-1-rgb:237,187,132; --c-acc-2:#c5c897; --c-acc-2-rgb:197,200,151; --c-acc-3:#edbb84; --c-acc-3-rgb:237,187,132;
 --bg:#211915; --bg2:#423128; --surface:#30251f; --text:#f6e9db; --muted:#f6e9dbbb; --c-title-edge:#f6e9db;
 --logo-bg:#30251f; --logo-bg-deep:#211915; --logo-cyan:#edbb84; --logo-violet:#c5c897; --logo-magenta:#edbb84; --logo-highlight:#f6e9db;
}
html[data-palette-dark="petrol"] body:not(.light){
 --logo-glow-opacity:.40;
 --p-bg:#0e2225; --p-surface:#143034; --p-raised:#1b4043; --p-text:#e0f3ef;
 --c-acc-1:#75d6c0; --c-acc-1-rgb:117,214,192; --c-acc-2:#d8bf88; --c-acc-2-rgb:216,191,136; --c-acc-3:#75d6c0; --c-acc-3-rgb:117,214,192;
 --bg:#0e2225; --bg2:#1b4043; --surface:#143034; --text:#e0f3ef; --muted:#e0f3efbb; --c-title-edge:#e0f3ef;
 --logo-bg:#143034; --logo-bg-deep:#0e2225; --logo-cyan:#75d6c0; --logo-violet:#d8bf88; --logo-magenta:#75d6c0; --logo-highlight:#e0f3ef;
}
html[data-palette-dark="plum"] body:not(.light){
 --logo-glow-opacity:.40;
 --p-bg:#251a29; --p-surface:#35263b; --p-raised:#49324b; --p-text:#f5e7f2;
 --c-acc-1:#e4a1c8; --c-acc-1-rgb:228,161,200; --c-acc-2:#c1b2ef; --c-acc-2-rgb:193,178,239; --c-acc-3:#e4a1c8; --c-acc-3-rgb:228,161,200;
 --bg:#251a29; --bg2:#49324b; --surface:#35263b; --text:#f5e7f2; --muted:#f5e7f2bb; --c-title-edge:#f5e7f2;
 --logo-bg:#35263b; --logo-bg-deep:#251a29; --logo-cyan:#e4a1c8; --logo-violet:#c1b2ef; --logo-magenta:#e4a1c8; --logo-highlight:#f5e7f2;
}
html[data-palette-dark="obsidian"] body:not(.light){
 --logo-glow-opacity:.40;
 --p-bg:#181b1d; --p-surface:#25292c; --p-raised:#353b3e; --p-text:#edf0ed;
 --c-acc-1:#edc66e; --c-acc-1-rgb:237,198,110; --c-acc-2:#9dc3b5; --c-acc-2-rgb:157,195,181; --c-acc-3:#edc66e; --c-acc-3-rgb:237,198,110;
 --bg:#181b1d; --bg2:#353b3e; --surface:#25292c; --text:#edf0ed; --muted:#edf0edbb; --c-title-edge:#edf0ed;
 --logo-bg:#25292c; --logo-bg-deep:#181b1d; --logo-cyan:#edc66e; --logo-violet:#9dc3b5; --logo-magenta:#edc66e; --logo-highlight:#edf0ed;
}
:is(html[data-palette-light="pearl"] body.light,html[data-palette-light="apricot"] body.light,html[data-palette-light="pistachio"] body.light,html[data-palette-light="quartz"] body.light,html[data-palette-light="glacier"] body.light,html[data-palette-dark="ink"] body:not(.light),html[data-palette-dark="espresso"] body:not(.light),html[data-palette-dark="petrol"] body:not(.light),html[data-palette-dark="plum"] body:not(.light),html[data-palette-dark="obsidian"] body:not(.light)){background:var(--p-bg)!important;color:var(--p-text)!important;color-scheme:normal;}
:is(html[data-palette-light="pearl"] body.light,html[data-palette-light="apricot"] body.light,html[data-palette-light="pistachio"] body.light,html[data-palette-light="quartz"] body.light,html[data-palette-light="glacier"] body.light,html[data-palette-dark="ink"] body:not(.light),html[data-palette-dark="espresso"] body:not(.light),html[data-palette-dark="petrol"] body:not(.light),html[data-palette-dark="plum"] body:not(.light),html[data-palette-dark="obsidian"] body:not(.light))::before{background-image:radial-gradient(ellipse at 12% 0%,rgba(var(--c-acc-1-rgb),.12),transparent 60%),linear-gradient(160deg,var(--p-bg),var(--p-raised))!important;}
:is(html[data-palette-light="pearl"] body.light,html[data-palette-light="apricot"] body.light,html[data-palette-light="pistachio"] body.light,html[data-palette-light="quartz"] body.light,html[data-palette-light="glacier"] body.light,html[data-palette-dark="ink"] body:not(.light),html[data-palette-dark="espresso"] body:not(.light),html[data-palette-dark="petrol"] body:not(.light),html[data-palette-dark="plum"] body:not(.light),html[data-palette-dark="obsidian"] body:not(.light))::after{background-image:none!important;}
:is(html[data-palette-light="pearl"] body.light,html[data-palette-light="apricot"] body.light,html[data-palette-light="pistachio"] body.light,html[data-palette-light="quartz"] body.light,html[data-palette-light="glacier"] body.light,html[data-palette-dark="ink"] body:not(.light),html[data-palette-dark="espresso"] body:not(.light),html[data-palette-dark="petrol"] body:not(.light),html[data-palette-dark="plum"] body:not(.light),html[data-palette-dark="obsidian"] body:not(.light)) :is(.panel,.content,.card,.sidebar__link,.theme-toggle,.profile-btn,.burger-btn){background:linear-gradient(145deg,var(--p-surface),var(--p-raised))!important;color:var(--p-text)!important;border-color:rgba(var(--c-acc-1-rgb),.24)!important;box-shadow:0 12px 32px rgba(0,0,0,.08)!important;}
:is(html[data-palette-light="pearl"] body.light,html[data-palette-light="apricot"] body.light,html[data-palette-light="pistachio"] body.light,html[data-palette-light="quartz"] body.light,html[data-palette-light="glacier"] body.light,html[data-palette-dark="ink"] body:not(.light),html[data-palette-dark="espresso"] body:not(.light),html[data-palette-dark="petrol"] body:not(.light),html[data-palette-dark="plum"] body:not(.light),html[data-palette-dark="obsidian"] body:not(.light)) :is(.btn,.btn--ghost,.chip,input,textarea,select){background:var(--p-surface)!important;color:var(--p-text)!important;border-color:rgba(var(--c-acc-1-rgb),.32)!important;}
:is(html[data-palette-light="pearl"] body.light,html[data-palette-light="apricot"] body.light,html[data-palette-light="pistachio"] body.light,html[data-palette-light="quartz"] body.light,html[data-palette-light="glacier"] body.light,html[data-palette-dark="ink"] body:not(.light),html[data-palette-dark="espresso"] body:not(.light),html[data-palette-dark="petrol"] body:not(.light),html[data-palette-dark="plum"] body:not(.light),html[data-palette-dark="obsidian"] body:not(.light)) .btn--primary{background:var(--c-acc-1)!important;color:var(--p-bg)!important;border-color:var(--c-acc-1)!important;}
:is(html[data-palette-light="pearl"] body.light,html[data-palette-light="apricot"] body.light,html[data-palette-light="pistachio"] body.light,html[data-palette-light="quartz"] body.light,html[data-palette-light="glacier"] body.light,html[data-palette-dark="ink"] body:not(.light),html[data-palette-dark="espresso"] body:not(.light),html[data-palette-dark="petrol"] body:not(.light),html[data-palette-dark="plum"] body:not(.light),html[data-palette-dark="obsidian"] body:not(.light)) :is(.progress__fill,.st-card__bar){background:linear-gradient(90deg,var(--c-acc-1),var(--c-acc-2))!important;}
:is(html[data-palette-light="pearl"] body.light,html[data-palette-light="apricot"] body.light,html[data-palette-light="pistachio"] body.light,html[data-palette-light="quartz"] body.light,html[data-palette-light="glacier"] body.light,html[data-palette-dark="ink"] body:not(.light),html[data-palette-dark="espresso"] body:not(.light),html[data-palette-dark="petrol"] body:not(.light),html[data-palette-dark="plum"] body:not(.light),html[data-palette-dark="obsidian"] body:not(.light)) :is(a,.task-id){text-decoration-color:rgba(var(--c-acc-1-rgb),.5);}

/* ==========================================================================
   SHOW ЕГЭ · Пользовательские палитры и шрифты
   Применяется через data-атрибуты на <html> (их ставит inline-скрипт
   в <head> обоих base-шаблонов на основе localStorage).

   "original" трактуется как отсутствие оверрайда — поэтому здесь есть
   блоки только для "neutral", "ocean", "sunset".
   ========================================================================== */

/* ==========================================================================
   CSS-переменные акцентов: 3 цвета темы + rgb-варианты для alpha
   Используются всем сайтом вместо хардкода #7c5cff/#25d6ff/#2ee59d
   и т.п., чтобы при смене палитры менялись все hover-акценты,
   градиенты заголовков, hover-обводки и т.д.
   ========================================================================== */

:root {
  --c-acc-1: #7c5cff;        --c-acc-1-rgb: 124,92,255;
  --c-acc-2: #25d6ff;        --c-acc-2-rgb: 37,214,255;
  --c-acc-3: #2ee59d;        --c-acc-3-rgb: 46,229,157;
  --c-title-edge: rgba(234,240,255,.95);
  --logo-bg: #050a24;
  --logo-bg-deep: #020617;
  --logo-cyan: #38d5ff;
  --logo-violet: #7657ff;
  --logo-magenta: #f33cdb;
  --logo-highlight: #f7f4ff;
  --logo-glow-opacity: .46;
}
body.light {
  --c-acc-1: #5b3fcc;        --c-acc-1-rgb: 91,63,204;
  --c-acc-2: #1a9fd4;        --c-acc-2-rgb: 26,159,212;
  --c-acc-3: #0e8555;        --c-acc-3-rgb: 14,133,85;
  --c-title-edge: #1c1540;
  --logo-bg: #eef4ff;
  --logo-bg-deep: #dfe8ff;
  --logo-cyan: #027fa8;
  --logo-violet: #6246d9;
  --logo-magenta: #b820a7;
  --logo-highlight: #312e81;
  --logo-glow-opacity: .18;
}
/* Default (original) light palette — make .chip readable on white surfaces.
   Palette-specific rules below have higher specificity and still win when a palette is set. */
body.light .chip{
  background: rgba(140,160,240,.14);
  border: 1px solid rgba(140,160,240,.32);
  color: rgba(14,18,30,.86);
}
/* Native <option> popups render with white bg even in dark themes — force
   readable dark text + light scheme on every <select> sitewide. */
select{ color-scheme: light; }
select option,
select optgroup{
  color: #0e121e;
  background-color: #ffffff;
}
select option:checked,
select option:hover{
  color: #ffffff;
  background-color: var(--c-acc-2, #25d6ff);
}
/* Same for native date/time/number popups */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="number"]{ color-scheme: light; }

/* DARK palettes */
html[data-palette-dark="neutral"] body:not(.light){
  --c-acc-1:#6b7280; --c-acc-1-rgb:107,114,128;
  --c-acc-2:#4a4e5e; --c-acc-2-rgb:74,78,94;
  --c-acc-3:#9aa3b2; --c-acc-3-rgb:154,163,178;
  --c-title-edge: rgba(230,232,240,.95);
  --logo-bg:#0a0b0f; --logo-bg-deep:#050609;
  --logo-cyan:#9aa3b2; --logo-violet:#6b7280; --logo-magenta:#c7cdd7;
  --logo-highlight:#f4f5f7; --logo-glow-opacity:.16;
}
html[data-palette-dark="ocean"] body:not(.light){
  --c-acc-1:#00d4b4; --c-acc-1-rgb:0,212,180;
  --c-acc-2:#2a9dff; --c-acc-2-rgb:42,157,255;
  --c-acc-3:#3a6dff; --c-acc-3-rgb:58,109,255;
  --c-title-edge: rgba(226,248,252,.95);
  --logo-bg:#04141c; --logo-bg-deep:#020b10;
  --logo-cyan:#00d4b4; --logo-violet:#2a9dff; --logo-magenta:#3a6dff;
  --logo-highlight:#e2f8fc; --logo-glow-opacity:.38;
}
html[data-palette-dark="aurora"] body:not(.light){
  --c-acc-1:#3ee5a5; --c-acc-1-rgb:62,229,165;
  --c-acc-2:#2dd1ff; --c-acc-2-rgb:45,209,255;
  --c-acc-3:#8b5cff; --c-acc-3-rgb:139,92,255;
  --c-title-edge: rgba(228,240,252,.95);
  --logo-bg:#0a0f1e; --logo-bg-deep:#050817;
  --logo-cyan:#3ee5a5; --logo-violet:#2dd1ff; --logo-magenta:#8b5cff;
  --logo-highlight:#eef7ff; --logo-glow-opacity:.42;
}
html[data-palette-dark="cyber"] body:not(.light){
  --c-acc-1:#ff2eb4; --c-acc-1-rgb:255,46,180;
  --c-acc-2:#b952ff; --c-acc-2-rgb:185,82,255;
  --c-acc-3:#28e0ff; --c-acc-3-rgb:40,224,255;
  --c-title-edge: rgba(252,232,255,.95);
  --logo-bg:#0b0014; --logo-bg-deep:#050008;
  --logo-cyan:#28e0ff; --logo-violet:#b952ff; --logo-magenta:#ff2eb4;
  --logo-highlight:#fff36a; --logo-glow-opacity:.50;
}
html[data-palette-dark="crimson"] body:not(.light){
  --c-acc-1:#dc2a44; --c-acc-1-rgb:220,42,68;
  --c-acc-2:#ff5e3c; --c-acc-2-rgb:255,94,60;
  --c-acc-3:#ff9a3c; --c-acc-3-rgb:255,154,60;
  --c-title-edge: rgba(252,230,220,.95);
  --logo-bg:#1a0608; --logo-bg-deep:#0d0204;
  --logo-cyan:#ff9a3c; --logo-violet:#ff5e3c; --logo-magenta:#dc2a44;
  --logo-highlight:#ffe7cf; --logo-glow-opacity:.40;
}
html[data-palette-dark="forest"] body:not(.light){
  --c-acc-1:#28b450; --c-acc-1-rgb:40,180,80;
  --c-acc-2:#5ed97c; --c-acc-2-rgb:94,217,124;
  --c-acc-3:#7ed960; --c-acc-3-rgb:126,217,96;
  --c-title-edge: rgba(210,255,220,.95);
  --logo-bg:#051208; --logo-bg-deep:#020904;
  --logo-cyan:#7ed960; --logo-violet:#28b450; --logo-magenta:#5ed97c;
  --logo-highlight:#e4ffdc; --logo-glow-opacity:.32;
}
html[data-palette-dark="void"] body:not(.light){
  --c-acc-1:#3c64ff; --c-acc-1-rgb:60,100,255;
  --c-acc-2:#6040ff; --c-acc-2-rgb:96,64,255;
  --c-acc-3:#8040ff; --c-acc-3-rgb:128,64,255;
  --c-title-edge: rgba(220,225,255,.95);
  --logo-bg:#000006; --logo-bg-deep:#000000;
  --logo-cyan:#3c64ff; --logo-violet:#6040ff; --logo-magenta:#8040ff;
  --logo-highlight:#eef0ff; --logo-glow-opacity:.45;
}
html[data-palette-dark="rust"] body:not(.light){
  --c-acc-1:#c85a14; --c-acc-1-rgb:200,90,20;
  --c-acc-2:#e07030; --c-acc-2-rgb:224,112,48;
  --c-acc-3:#ff8c2c; --c-acc-3-rgb:255,140,44;
  --c-title-edge: rgba(255,225,200,.95);
  --logo-bg:#1a0c00; --logo-bg-deep:#0d0500;
  --logo-cyan:#ff9f3c; --logo-violet:#e07030; --logo-magenta:#c85a14;
  --logo-highlight:#ffe3c2; --logo-glow-opacity:.34;
}

/* LIGHT palettes */
html[data-palette-light="neutral"] body.light{
  --c-acc-1:#5a5045; --c-acc-1-rgb:90,80,69;
  --c-acc-2:#7a6e5e; --c-acc-2-rgb:122,110,94;
  --c-acc-3:#9b8d76; --c-acc-3-rgb:155,141,118;
  --c-title-edge: rgba(26,24,20,.95);
  --logo-bg:#f2f1ec; --logo-bg-deep:#e4dccb;
  --logo-cyan:#4f463d; --logo-violet:#6b5d4d; --logo-magenta:#806b50;
  --logo-highlight:#2d2822; --logo-glow-opacity:.10;
}
html[data-palette-light="sunset"] body.light{
  --c-acc-1:#d6571a; --c-acc-1-rgb:214,87,26;
  --c-acc-2:#e83968; --c-acc-2-rgb:232,57,104;
  --c-acc-3:#c41a4e; --c-acc-3-rgb:196,26,78;
  --c-title-edge: rgba(60,20,12,.95);
  --logo-bg:#fff1e4; --logo-bg-deep:#ffd5d9;
  --logo-cyan:#a63b0c; --logo-violet:#bb2455; --logo-magenta:#8d1643;
  --logo-highlight:#54180d; --logo-glow-opacity:.16;
}
html[data-palette-light="yellow"] body.light{
  --c-acc-1:#a47800; --c-acc-1-rgb:164,120,0;
  --c-acc-2:#c69200; --c-acc-2-rgb:198,146,0;
  --c-acc-3:#e8780a; --c-acc-3-rgb:232,120,10;
  --c-title-edge: rgba(60,42,0,.95);
  --logo-bg:#fff8d6; --logo-bg-deep:#ffea82;
  --logo-cyan:#765600; --logo-violet:#9a6700; --logo-magenta:#b25000;
  --logo-highlight:#4c3500; --logo-glow-opacity:.13;
}
html[data-palette-light="citrus"] body.light{
  --c-acc-1:#5e8a10; --c-acc-1-rgb:94,138,16;
  --c-acc-2:#a86c00; --c-acc-2-rgb:168,108,0;
  --c-acc-3:#cd5e0e; --c-acc-3-rgb:205,94,14;
  --c-title-edge: rgba(20,50,0,.95);
  --logo-bg:#f3ffde; --logo-bg-deep:#fff1a0;
  --logo-cyan:#4a6f0b; --logo-violet:#8a5200; --logo-magenta:#ac4500;
  --logo-highlight:#284600; --logo-glow-opacity:.14;
}
html[data-palette-light="pink"] body.light{
  --c-acc-1:#c81278; --c-acc-1-rgb:200,18,120;
  --c-acc-2:#a83289; --c-acc-2-rgb:168,50,137;
  --c-acc-3:#d44694; --c-acc-3-rgb:212,70,148;
  --c-title-edge: rgba(80,0,50,.95);
  --logo-bg:#fff0f6; --logo-bg-deep:#ffb8db;
  --logo-cyan:#a0005c; --logo-violet:#7c2676; --logo-magenta:#b3156e;
  --logo-highlight:#65003d; --logo-glow-opacity:.15;
}
html[data-palette-light="mint"] body.light{
  --c-acc-1:#117048; --c-acc-1-rgb:17,112,72;
  --c-acc-2:#1a8c5c; --c-acc-2-rgb:26,140,92;
  --c-acc-3:#2ccd8a; --c-acc-3-rgb:44,205,138;
  --c-title-edge: rgba(10,50,26,.95);
  --logo-bg:#edfff4; --logo-bg-deep:#b6f5d0;
  --logo-cyan:#0b6540; --logo-violet:#087554; --logo-magenta:#188357;
  --logo-highlight:#073d27; --logo-glow-opacity:.14;
}
html[data-palette-light="lavender"] body.light{
  --c-acc-1:#5e2eb3; --c-acc-1-rgb:94,46,179;
  --c-acc-2:#7548c8; --c-acc-2-rgb:117,72,200;
  --c-acc-3:#a070f0; --c-acc-3-rgb:160,112,240;
  --c-title-edge: rgba(40,20,80,.95);
  --logo-bg:#f4f0ff; --logo-bg-deep:#d8caff;
  --logo-cyan:#4f209d; --logo-violet:#6033ad; --logo-magenta:#7b3cc2;
  --logo-highlight:#2a1558; --logo-glow-opacity:.15;
}
html[data-palette-light="slate"] body.light{
  --c-acc-1:#2e4a72; --c-acc-1-rgb:46,74,114;
  --c-acc-2:#46648c; --c-acc-2-rgb:70,100,140;
  --c-acc-3:#6890bc; --c-acc-3-rgb:104,144,188;
  --c-title-edge: rgba(20,34,54,.95);
  --logo-bg:#f0f4f8; --logo-bg-deep:#c8d6e8;
  --logo-cyan:#263e60; --logo-violet:#385a80; --logo-magenta:#4e7299;
  --logo-highlight:#142236; --logo-glow-opacity:.12;
}

/* Custom palette values are refined from the saved builder values by
   logo-motion.js. These fallbacks keep the inline SVG themed without JS. */
html[data-palette-dark="custom"] body:not(.light){
  --logo-bg:var(--bg, #0b1020);
  --logo-bg-deep:#080d1c;
  --logo-cyan:var(--c-acc-2, #25d6ff);
  --logo-violet:var(--c-acc-1, #7c5cff);
  --logo-magenta:var(--c-acc-3, #2ee59d);
  --logo-highlight:var(--text, #eaf0ff);
  --logo-glow-opacity:.34;
}
html[data-palette-light="custom"] body.light{
  --logo-bg:var(--bg, #f4faff);
  --logo-bg-deep:#e4ecf8;
  --logo-cyan:var(--c-acc-2, #1a9fd4);
  --logo-violet:var(--c-acc-1, #5b3fcc);
  --logo-magenta:var(--c-acc-3, #0e8555);
  --logo-highlight:var(--text, #121622);
  --logo-glow-opacity:.12;
}

/* Шрифты больше НЕ @import-ятся здесь (не грузились бы впустую на каждой
   странице). Реально нужный грузится inline-скриптом в <head> (см. base).
   На странице /settings/ все шрифты подключены для превью отдельным <link>. */

html[data-font="inter"]      body { font-family: "Inter", system-ui, -apple-system, sans-serif !important; }
html[data-font="rubik"]      body { font-family: "Rubik", system-ui, -apple-system, sans-serif !important; }
html[data-font="manrope"]    body { font-family: "Manrope", system-ui, -apple-system, sans-serif !important; }
html[data-font="mono"]       body { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace !important; }

/* sans-serif varianty */
html[data-font="poppins"]    body { font-family: "Poppins", system-ui, -apple-system, sans-serif !important; }
html[data-font="montserrat"] body { font-family: "Montserrat", system-ui, -apple-system, sans-serif !important; }
html[data-font="comfortaa"]  body { font-family: "Comfortaa", system-ui, sans-serif !important; letter-spacing: -.1px; }

/* condensed display */
html[data-font="oswald"]     body { font-family: "Oswald", Impact, sans-serif !important; }
html[data-font="bebas"]      body { font-family: "Bebas Neue", Impact, sans-serif !important; letter-spacing: .3px; }

/* serif */
html[data-font="playfair"]   body { font-family: "Playfair Display", Georgia, "Times New Roman", serif !important; }
html[data-font="lora"]       body { font-family: "Lora", Georgia, "Times New Roman", serif !important; }
html[data-font="merri"]      body { font-family: "Merriweather", Georgia, "Times New Roman", serif !important; }
html[data-font="robotoslab"] body { font-family: "Roboto Slab", Georgia, serif !important; }

/* handwritten */
html[data-font="caveat"]     body { font-family: "Caveat", "Comic Sans MS", cursive !important; font-size: 1.08em; }

/* new sans-serif */
html[data-font="raleway"]    body { font-family: "Raleway", system-ui, sans-serif !important; letter-spacing: -.1px; }
html[data-font="nunito"]     body { font-family: "Nunito", system-ui, sans-serif !important; }
html[data-font="space"]      body { font-family: "Space Grotesk", system-ui, sans-serif !important; }
html[data-font="ubuntu"]     body { font-family: "Ubuntu", system-ui, sans-serif !important; }

/* display / retro */
html[data-font="righteous"]  body { font-family: "Righteous", Impact, sans-serif !important; letter-spacing: .3px; }
html[data-font="lobster"]    body { font-family: "Lobster", cursive !important; font-size: 1.06em; }
html[data-font="abril"]      body { font-family: "Abril Fatface", Georgia, serif !important; }
html[data-font="pacifico"]   body { font-family: "Pacifico", cursive !important; font-size: .95em; }

/* new serif */
html[data-font="ptserif"]    body { font-family: "PT Serif", Georgia, "Times New Roman", serif !important; }

/* cursive */
html[data-font="dancing"]    body { font-family: "Dancing Script", cursive !important; font-size: 1.12em; }


/* =====================================================================
   DARK · NEUTRAL  (графит)
   ===================================================================== */

html[data-palette-dark="neutral"] body:not(.light){
  background: #0a0b0f !important;
  color: rgba(230,232,240,.92) !important;
}
html[data-palette-dark="neutral"] body:not(.light)::before{
  background-image: linear-gradient(180deg, #14161f, #14161f) !important;
}
html[data-palette-dark="neutral"] body:not(.light)::after{
  background-image: none !important;
}
/* — панели (сайдбар, form-контейнеры) — */
html[data-palette-dark="neutral"] body:not(.light) .panel,
html[data-palette-dark="neutral"] body:not(.light) .content{
  background: rgba(16,18,26,.85) !important;
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: 0 14px 40px rgba(0,0,0,.45) !important;
}
/* — карточки задач / общие card — */
html[data-palette-dark="neutral"] body:not(.light) .card{
  background: linear-gradient(135deg, rgba(28,30,40,.82), rgba(18,20,28,.82)) !important;
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.45) !important;
}
/* — все кнопки — */
html[data-palette-dark="neutral"] body:not(.light) .btn{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: rgba(230,232,240,.95) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.35) !important;
}
html[data-palette-dark="neutral"] body:not(.light) .btn--primary{
  background: linear-gradient(135deg, #2a2d38, #4a4e5e) !important;
  color: #eaf0ff !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.5) !important;
  border: none !important;
}
html[data-palette-dark="neutral"] body:not(.light) .btn--ghost{
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.10) !important;
}
/* — сайдбар-ссылки — */
html[data-palette-dark="neutral"] body:not(.light) .sidebar__link{
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  color: rgba(230,232,240,.9) !important;
}
/* — чипы — */
html[data-palette-dark="neutral"] body:not(.light) .chip{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: rgba(230,232,240,.9) !important;
}
/* — топбар кнопки — */
html[data-palette-dark="neutral"] body:not(.light) .theme-toggle,
html[data-palette-dark="neutral"] body:not(.light) .profile-btn,
html[data-palette-dark="neutral"] body:not(.light) .burger-btn{
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
}


/* =====================================================================
   DARK · OCEAN  (бирюза + изумруд + сапфир)
   ===================================================================== */

html[data-palette-dark="ocean"] body:not(.light){
  background: #04141c !important;
  color: rgba(226,248,252,.92) !important;
}
html[data-palette-dark="ocean"] body:not(.light)::before{
  background-image: linear-gradient(180deg, #093a4d, #093a4d) !important;
}
html[data-palette-dark="ocean"] body:not(.light)::after{
  background-image: none !important;
}
html[data-palette-dark="ocean"] body:not(.light) .panel,
html[data-palette-dark="ocean"] body:not(.light) .content{
  background: rgba(8,32,42,.82) !important;
  border-color: rgba(80,220,220,.14) !important;
  box-shadow: 0 14px 40px rgba(0,32,46,.55) !important;
}
html[data-palette-dark="ocean"] body:not(.light) .card{
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(28,200,200,.14), transparent 60%),
    linear-gradient(135deg, rgba(10,40,52,.82), rgba(6,28,40,.82)) !important;
  border-color: rgba(80,220,220,.18) !important;
  box-shadow: 0 18px 44px rgba(0,30,46,.55) !important;
}
html[data-palette-dark="ocean"] body:not(.light) .btn{
  background: linear-gradient(180deg, rgba(80,220,220,.14), rgba(30,150,200,.10)) !important;
  border: 1px solid rgba(80,220,220,.28) !important;
  color: #d6fbfb !important;
  box-shadow: 0 10px 24px rgba(0,80,120,.35) !important;
}
html[data-palette-dark="ocean"] body:not(.light) .btn--primary{
  background: linear-gradient(135deg, #008f78, #1f6fc8) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25) !important;
  box-shadow: 0 16px 34px rgba(0,200,210,.45) !important;
  border: none !important;
}
html[data-palette-dark="ocean"] body:not(.light) .btn--ghost{
  background: rgba(80,220,220,.08) !important;
  border-color: rgba(80,220,220,.2) !important;
}
html[data-palette-dark="ocean"] body:not(.light) .sidebar__link{
  background: linear-gradient(135deg, rgba(28,200,200,.18), rgba(30,140,200,.12)) !important;
  border: 1px solid rgba(80,220,220,.22) !important;
  color: #d6fbfb !important;
}
html[data-palette-dark="ocean"] body:not(.light) .chip{
  background: rgba(80,220,220,.14) !important;
  border: 1px solid rgba(80,220,220,.26) !important;
  color: #d6fbfb !important;
}
html[data-palette-dark="ocean"] body:not(.light) .theme-toggle,
html[data-palette-dark="ocean"] body:not(.light) .profile-btn,
html[data-palette-dark="ocean"] body:not(.light) .burger-btn{
  background: rgba(80,220,220,.08) !important;
  border: 1px solid rgba(80,220,220,.22) !important;
  color: #d6fbfb !important;
}


/* =====================================================================
   LIGHT · NEUTRAL  (бумага — тёплый кремовый)
   ===================================================================== */

html[data-palette-light="neutral"] body.light{
  background: #f2f1ec !important;
  color: rgba(26,24,20,.92) !important;
}
html[data-palette-light="neutral"] body.light::before{
  background-image: linear-gradient(180deg, #efece4, #efece4) !important;
}
html[data-palette-light="neutral"] body.light::after{
  background-image: none !important;
}
html[data-palette-light="neutral"] body.light .panel,
html[data-palette-light="neutral"] body.light .content{
  background: rgba(252,250,244,.82) !important;
  border: 1px solid rgba(180,170,150,.22) !important;
  box-shadow: 0 18px 44px rgba(160,150,130,.14) !important;
  color: rgba(26,24,20,.92) !important;
}
html[data-palette-light="neutral"] body.light .card{
  background: linear-gradient(135deg, rgba(248,244,234,.88), rgba(238,232,220,.85)) !important;
  border: 1px solid rgba(180,170,150,.22) !important;
  box-shadow: 0 20px 45px rgba(160,150,130,.16) !important;
}
html[data-palette-light="neutral"] body.light .btn{
  background: rgba(252,250,244,.88) !important;
  border: 1px solid rgba(160,150,130,.25) !important;
  color: rgba(26,24,20,.9) !important;
  box-shadow: 0 10px 24px rgba(160,150,130,.12) !important;
}
html[data-palette-light="neutral"] body.light .btn--primary{
  background: linear-gradient(135deg, #4a4a4a, #6b6b6b) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(80,80,80,.22) !important;
  border: none !important;
}
html[data-palette-light="neutral"] body.light .btn--ghost{
  background: rgba(255,255,255,.55) !important;
  border-color: rgba(160,150,130,.22) !important;
}
html[data-palette-light="neutral"] body.light .sidebar__link{
  background: linear-gradient(135deg, rgba(242,238,228,.85), rgba(228,222,210,.85)) !important;
  border: 1px solid rgba(180,170,150,.26) !important;
  color: rgba(26,24,20,.88) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65) !important;
}
html[data-palette-light="neutral"] body.light .chip{
  background: rgba(222,216,200,.6) !important;
  border: 1px solid rgba(180,170,150,.3) !important;
  color: rgba(26,24,20,.82) !important;
}
html[data-palette-light="neutral"] body.light .theme-toggle,
html[data-palette-light="neutral"] body.light .profile-btn,
html[data-palette-light="neutral"] body.light .burger-btn{
  background: rgba(255,253,248,.72) !important;
  border: 1px solid rgba(180,170,150,.26) !important;
  color: rgba(26,24,20,.86) !important;
}


/* =====================================================================
   LIGHT · SUNSET  (оранж / коралл / малина)
   ===================================================================== */

html[data-palette-light="sunset"] body.light{
  background: #fff1e4 !important;
  color: rgba(60,20,12,.92) !important;
}
html[data-palette-light="sunset"] body.light::before{
  background-image: linear-gradient(180deg, #ffd5d9, #ffd5d9) !important;
}
html[data-palette-light="sunset"] body.light::after{
  background-image: none !important;
}
html[data-palette-light="sunset"] body.light .panel,
html[data-palette-light="sunset"] body.light .content{
  background: rgba(255,245,232,.82) !important;
  border: 1px solid rgba(255,140,120,.24) !important;
  box-shadow: 0 18px 44px rgba(255,120,100,.16) !important;
}
html[data-palette-light="sunset"] body.light .card{
  background:
    linear-gradient(135deg, rgba(255,210,170,.8), rgba(255,180,190,.78)) !important;
  border: 1px solid rgba(255,140,120,.28) !important;
  box-shadow: 0 22px 48px rgba(255,120,100,.22) !important;
  color: rgba(60,20,12,.95) !important;
}
html[data-palette-light="sunset"] body.light .btn{
  background: rgba(255,250,242,.9) !important;
  border: 1px solid rgba(255,140,120,.28) !important;
  color: rgba(60,20,12,.9) !important;
  box-shadow: 0 10px 24px rgba(255,120,100,.15) !important;
}
html[data-palette-light="sunset"] body.light .btn--primary{
  background: linear-gradient(135deg, #d6571a, #c41a4e) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25) !important;
  box-shadow: 0 16px 34px rgba(255,120,100,.38) !important;
  border: none !important;
}
html[data-palette-light="sunset"] body.light .btn--ghost{
  background: rgba(255,245,232,.6) !important;
  border-color: rgba(255,140,120,.24) !important;
}
html[data-palette-light="sunset"] body.light .sidebar__link{
  background: linear-gradient(135deg, rgba(255,200,160,.75), rgba(255,170,190,.72)) !important;
  border: 1px solid rgba(255,140,120,.3) !important;
  color: rgba(60,20,12,.9) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65) !important;
}
html[data-palette-light="sunset"] body.light .chip{
  background: rgba(255,180,140,.42) !important;
  border: 1px solid rgba(255,140,120,.38) !important;
  color: rgba(60,20,12,.9) !important;
}
html[data-palette-light="sunset"] body.light .theme-toggle,
html[data-palette-light="sunset"] body.light .profile-btn,
html[data-palette-light="sunset"] body.light .burger-btn{
  background: rgba(255,245,232,.72) !important;
  border: 1px solid rgba(255,140,120,.28) !important;
  color: rgba(60,20,12,.9) !important;
}


/* =====================================================================
   DARK · AURORA  (северное сияние: изумруд + фиолет + ледяной голубой)
   ===================================================================== */

html[data-palette-dark="aurora"] body:not(.light){
  background: #0a0f1e !important;
  color: rgba(228,240,252,.92) !important;
}
html[data-palette-dark="aurora"] body:not(.light)::before{
  background-image: linear-gradient(180deg, #121240, #121240) !important;
}
html[data-palette-dark="aurora"] body:not(.light)::after{
  background-image: none !important;
}
html[data-palette-dark="aurora"] body:not(.light) .panel,
html[data-palette-dark="aurora"] body:not(.light) .content{
  background: rgba(14,20,44,.84) !important;
  border-color: rgba(140,120,255,.22) !important;
  box-shadow: 0 18px 48px rgba(15,10,40,.55) !important;
}
html[data-palette-dark="aurora"] body:not(.light) .card{
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(80,255,180,.14), transparent 60%),
    linear-gradient(135deg, rgba(20,30,60,.86), rgba(30,20,60,.86)) !important;
  border-color: rgba(140,120,255,.24) !important;
  box-shadow: 0 20px 50px rgba(20,10,50,.55) !important;
}
html[data-palette-dark="aurora"] body:not(.light) .btn{
  background: linear-gradient(180deg, rgba(80,255,200,.12), rgba(170,110,255,.10)) !important;
  border: 1px solid rgba(140,120,255,.32) !important;
  color: #e3f5ff !important;
  box-shadow: 0 10px 24px rgba(20,10,50,.4) !important;
}
html[data-palette-dark="aurora"] body:not(.light) .btn--primary{
  background: linear-gradient(135deg, #159a64, #6e3edb) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25) !important;
  box-shadow: 0 16px 34px rgba(100,140,255,.48) !important;
  border: none !important;
}
html[data-palette-dark="aurora"] body:not(.light) .btn--ghost{
  background: rgba(140,120,255,.08) !important;
  border-color: rgba(140,120,255,.22) !important;
}
html[data-palette-dark="aurora"] body:not(.light) .sidebar__link{
  background: linear-gradient(135deg, rgba(80,255,180,.14), rgba(170,110,255,.14)) !important;
  border: 1px solid rgba(140,120,255,.28) !important;
  color: #e3f5ff !important;
}
html[data-palette-dark="aurora"] body:not(.light) .chip{
  background: rgba(140,120,255,.18) !important;
  border: 1px solid rgba(140,120,255,.32) !important;
  color: #e3f5ff !important;
}
html[data-palette-dark="aurora"] body:not(.light) .theme-toggle,
html[data-palette-dark="aurora"] body:not(.light) .profile-btn,
html[data-palette-dark="aurora"] body:not(.light) .burger-btn{
  background: rgba(140,120,255,.08) !important;
  border: 1px solid rgba(140,120,255,.28) !important;
  color: #e3f5ff !important;
}


/* =====================================================================
   DARK · CYBER  (киберпанк: неоновый магента + жёлтый + циан)
   ===================================================================== */

html[data-palette-dark="cyber"] body:not(.light){
  background: #0b0014 !important;
  color: rgba(252,232,255,.92) !important;
}
html[data-palette-dark="cyber"] body:not(.light)::before{
  background-image: linear-gradient(180deg, #23003f, #23003f) !important;
}
html[data-palette-dark="cyber"] body:not(.light)::after{
  background-image: none !important;
}
html[data-palette-dark="cyber"] body:not(.light) .panel,
html[data-palette-dark="cyber"] body:not(.light) .content{
  background: rgba(22,6,32,.84) !important;
  border-color: rgba(255,60,200,.28) !important;
  box-shadow: 0 18px 48px rgba(60,0,80,.55) !important;
}
html[data-palette-dark="cyber"] body:not(.light) .card{
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(255,60,200,.16), transparent 60%),
    linear-gradient(135deg, rgba(30,10,45,.88), rgba(18,4,30,.88)) !important;
  border-color: rgba(255,60,200,.3) !important;
  box-shadow: 0 20px 50px rgba(60,0,80,.55) !important;
}
html[data-palette-dark="cyber"] body:not(.light) .btn{
  background: linear-gradient(180deg, rgba(255,60,200,.14), rgba(40,230,255,.08)) !important;
  border: 1px solid rgba(255,60,200,.32) !important;
  color: #ffdaf0 !important;
  box-shadow: 0 10px 24px rgba(60,0,80,.4) !important;
}
html[data-palette-dark="cyber"] body:not(.light) .btn--primary{
  background: linear-gradient(135deg, #c81288, #0d8aaf) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.30) !important;
  box-shadow: 0 16px 34px rgba(255,60,200,.48) !important;
  border: none !important;
}
html[data-palette-dark="cyber"] body:not(.light) .btn--ghost{
  background: rgba(255,60,200,.08) !important;
  border-color: rgba(255,60,200,.22) !important;
}
html[data-palette-dark="cyber"] body:not(.light) .sidebar__link{
  background: linear-gradient(135deg, rgba(255,60,200,.16), rgba(40,230,255,.14)) !important;
  border: 1px solid rgba(255,60,200,.32) !important;
  color: #ffdaf0 !important;
}
html[data-palette-dark="cyber"] body:not(.light) .chip{
  background: rgba(255,60,200,.18) !important;
  border: 1px solid rgba(255,60,200,.34) !important;
  color: #ffdaf0 !important;
}
html[data-palette-dark="cyber"] body:not(.light) .theme-toggle,
html[data-palette-dark="cyber"] body:not(.light) .profile-btn,
html[data-palette-dark="cyber"] body:not(.light) .burger-btn{
  background: rgba(255,60,200,.08) !important;
  border: 1px solid rgba(255,60,200,.3) !important;
  color: #ffdaf0 !important;
}


/* =====================================================================
   DARK · CRIMSON  (глубокий вишнёво-бордовый с золотым акцентом)
   ===================================================================== */

html[data-palette-dark="crimson"] body:not(.light){
  background: #1a0608 !important;
  color: rgba(252,230,220,.94) !important;
}
html[data-palette-dark="crimson"] body:not(.light)::before{
  background-image: linear-gradient(180deg, #36101a, #36101a) !important;
}
html[data-palette-dark="crimson"] body:not(.light)::after{
  background-image: none !important;
}
html[data-palette-dark="crimson"] body:not(.light) .panel,
html[data-palette-dark="crimson"] body:not(.light) .content{
  background: rgba(34,10,12,.86) !important;
  border-color: rgba(220,40,60,.26) !important;
  box-shadow: 0 18px 48px rgba(70,10,20,.55) !important;
}
html[data-palette-dark="crimson"] body:not(.light) .card{
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(220,40,60,.16), transparent 60%),
    linear-gradient(135deg, rgba(50,14,18,.88), rgba(30,8,12,.88)) !important;
  border-color: rgba(220,40,60,.28) !important;
  box-shadow: 0 20px 50px rgba(70,10,20,.55) !important;
}
html[data-palette-dark="crimson"] body:not(.light) .btn{
  background: linear-gradient(180deg, rgba(220,40,60,.16), rgba(180,20,40,.10)) !important;
  border: 1px solid rgba(220,40,60,.32) !important;
  color: #ffe0d5 !important;
  box-shadow: 0 10px 24px rgba(70,10,20,.4) !important;
}
html[data-palette-dark="crimson"] body:not(.light) .btn--primary{
  background: linear-gradient(135deg, #b51a30, #c45e0e) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25) !important;
  box-shadow: 0 16px 34px rgba(220,40,60,.45) !important;
  border: none !important;
}
html[data-palette-dark="crimson"] body:not(.light) .btn--ghost{
  background: rgba(220,40,60,.08) !important;
  border-color: rgba(220,40,60,.22) !important;
}
html[data-palette-dark="crimson"] body:not(.light) .sidebar__link{
  background: linear-gradient(135deg, rgba(220,40,60,.18), rgba(255,140,60,.14)) !important;
  border: 1px solid rgba(220,40,60,.3) !important;
  color: #ffe0d5 !important;
}
html[data-palette-dark="crimson"] body:not(.light) .chip{
  background: rgba(220,40,60,.22) !important;
  border: 1px solid rgba(220,40,60,.36) !important;
  color: #ffe0d5 !important;
}
html[data-palette-dark="crimson"] body:not(.light) .theme-toggle,
html[data-palette-dark="crimson"] body:not(.light) .profile-btn,
html[data-palette-dark="crimson"] body:not(.light) .burger-btn{
  background: rgba(220,40,60,.08) !important;
  border: 1px solid rgba(220,40,60,.3) !important;
  color: #ffe0d5 !important;
}


/* =====================================================================
   LIGHT · YELLOW  (солнечный лимонно-персиковый)
   ===================================================================== */

html[data-palette-light="yellow"] body.light{
  background: #fff8d6 !important;
  color: rgba(60,42,0,.92) !important;
}
html[data-palette-light="yellow"] body.light::before{
  background-image: linear-gradient(180deg, #ffea82, #ffea82) !important;
}
html[data-palette-light="yellow"] body.light::after{
  background-image: none !important;
}
html[data-palette-light="yellow"] body.light .panel,
html[data-palette-light="yellow"] body.light .content{
  background: rgba(255,250,220,.86) !important;
  border: 1px solid rgba(220,170,30,.26) !important;
  box-shadow: 0 18px 44px rgba(220,170,30,.18) !important;
}
html[data-palette-light="yellow"] body.light .card{
  background: linear-gradient(135deg, rgba(255,240,160,.85), rgba(255,220,120,.8)) !important;
  border: 1px solid rgba(220,170,30,.32) !important;
  box-shadow: 0 22px 48px rgba(220,170,30,.24) !important;
  color: rgba(60,42,0,.95) !important;
}
html[data-palette-light="yellow"] body.light .btn{
  background: rgba(255,252,220,.92) !important;
  border: 1px solid rgba(220,170,30,.32) !important;
  color: rgba(60,42,0,.9) !important;
  box-shadow: 0 10px 24px rgba(220,170,30,.16) !important;
}
html[data-palette-light="yellow"] body.light .btn--primary{
  background: linear-gradient(135deg, #ffd12a, #ff9a00) !important;
  color: #3a2700 !important;
  box-shadow: 0 16px 34px rgba(255,180,40,.42) !important;
  border: none !important;
}
html[data-palette-light="yellow"] body.light .btn--ghost{
  background: rgba(255,250,220,.6) !important;
  border-color: rgba(220,170,30,.26) !important;
}
html[data-palette-light="yellow"] body.light .sidebar__link{
  background: linear-gradient(135deg, rgba(255,235,120,.82), rgba(255,210,80,.78)) !important;
  border: 1px solid rgba(220,170,30,.34) !important;
  color: rgba(60,42,0,.9) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6) !important;
}
html[data-palette-light="yellow"] body.light .chip{
  background: rgba(255,220,90,.5) !important;
  border: 1px solid rgba(220,170,30,.42) !important;
  color: rgba(60,42,0,.9) !important;
}
html[data-palette-light="yellow"] body.light .theme-toggle,
html[data-palette-light="yellow"] body.light .profile-btn,
html[data-palette-light="yellow"] body.light .burger-btn{
  background: rgba(255,250,220,.78) !important;
  border: 1px solid rgba(220,170,30,.3) !important;
  color: rgba(60,42,0,.9) !important;
}


/* =====================================================================
   LIGHT · CITRUS  (цитрус: лайм + апельсин + лимон, свежий)
   ===================================================================== */

html[data-palette-light="citrus"] body.light{
  background: #f3ffde !important;
  color: rgba(20,50,0,.92) !important;
}
html[data-palette-light="citrus"] body.light::before{
  background-image: linear-gradient(180deg, #fff1a0, #fff1a0) !important;
}
html[data-palette-light="citrus"] body.light::after{
  background-image: none !important;
}
html[data-palette-light="citrus"] body.light .panel,
html[data-palette-light="citrus"] body.light .content{
  background: rgba(245,255,220,.86) !important;
  border: 1px solid rgba(120,180,30,.28) !important;
  box-shadow: 0 18px 44px rgba(120,180,30,.18) !important;
}
html[data-palette-light="citrus"] body.light .card{
  background: linear-gradient(135deg, rgba(200,255,130,.82), rgba(255,210,90,.78)) !important;
  border: 1px solid rgba(120,180,30,.32) !important;
  box-shadow: 0 22px 48px rgba(140,180,40,.24) !important;
  color: rgba(20,50,0,.95) !important;
}
html[data-palette-light="citrus"] body.light .btn{
  background: rgba(248,255,228,.92) !important;
  border: 1px solid rgba(120,180,30,.32) !important;
  color: rgba(20,50,0,.9) !important;
  box-shadow: 0 10px 24px rgba(120,180,30,.18) !important;
}
html[data-palette-light="citrus"] body.light .btn--primary{
  background: linear-gradient(135deg, #a8d820, #ff9a2c) !important;
  color: #102c00 !important;
  box-shadow: 0 16px 34px rgba(160,200,40,.42) !important;
  border: none !important;
}
html[data-palette-light="citrus"] body.light .btn--ghost{
  background: rgba(248,255,228,.62) !important;
  border-color: rgba(120,180,30,.28) !important;
}
html[data-palette-light="citrus"] body.light .sidebar__link{
  background: linear-gradient(135deg, rgba(180,240,90,.78), rgba(255,200,70,.75)) !important;
  border: 1px solid rgba(120,180,30,.34) !important;
  color: rgba(20,50,0,.9) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6) !important;
}
html[data-palette-light="citrus"] body.light .chip{
  background: rgba(180,235,80,.5) !important;
  border: 1px solid rgba(120,180,30,.42) !important;
  color: rgba(20,50,0,.9) !important;
}
html[data-palette-light="citrus"] body.light .theme-toggle,
html[data-palette-light="citrus"] body.light .profile-btn,
html[data-palette-light="citrus"] body.light .burger-btn{
  background: rgba(248,255,228,.78) !important;
  border: 1px solid rgba(120,180,30,.32) !important;
  color: rgba(20,50,0,.9) !important;
}


/* =====================================================================
   LIGHT · PINK  (яркий нежный светящийся розовый)
   ===================================================================== */

html[data-palette-light="pink"] body.light{
  background: #fff0f6 !important;
  color: rgba(80,0,50,.92) !important;
}
html[data-palette-light="pink"] body.light::before{
  background-image: linear-gradient(180deg, #ffb8db, #ffb8db) !important;
}
html[data-palette-light="pink"] body.light::after{
  background-image: none !important;
}
html[data-palette-light="pink"] body.light .panel,
html[data-palette-light="pink"] body.light .content{
  background: rgba(255,246,250,.88) !important;
  border: 1px solid rgba(220,80,160,.24) !important;
  box-shadow: 0 18px 44px rgba(220,80,160,.20) !important;
}
html[data-palette-light="pink"] body.light .card{
  background: linear-gradient(135deg, rgba(255,200,230,.82), rgba(255,150,210,.78)) !important;
  border: 1px solid rgba(220,80,160,.32) !important;
  box-shadow: 0 24px 50px rgba(220,80,160,.28) !important;
  color: rgba(80,0,50,.95) !important;
}
html[data-palette-light="pink"] body.light .btn{
  background: rgba(255,248,252,.92) !important;
  border: 1px solid rgba(220,80,160,.32) !important;
  color: rgba(80,0,50,.9) !important;
  box-shadow: 0 10px 24px rgba(220,80,160,.16) !important;
}
html[data-palette-light="pink"] body.light .btn--primary{
  background: linear-gradient(135deg, #c81278, #c44698) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25) !important;
  box-shadow: 0 16px 34px rgba(255,80,170,.45) !important;
  border: none !important;
}
html[data-palette-light="pink"] body.light .btn--ghost{
  background: rgba(255,248,252,.62) !important;
  border-color: rgba(220,80,160,.26) !important;
}
html[data-palette-light="pink"] body.light .sidebar__link{
  background: linear-gradient(135deg, rgba(255,180,220,.82), rgba(255,140,200,.78)) !important;
  border: 1px solid rgba(220,80,160,.34) !important;
  color: rgba(80,0,50,.9) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6) !important;
}
html[data-palette-light="pink"] body.light .chip{
  background: rgba(255,160,210,.5) !important;
  border: 1px solid rgba(220,80,160,.42) !important;
  color: rgba(80,0,50,.9) !important;
}
html[data-palette-light="pink"] body.light .theme-toggle,
html[data-palette-light="pink"] body.light .profile-btn,
html[data-palette-light="pink"] body.light .burger-btn{
  background: rgba(255,248,252,.78) !important;
  border: 1px solid rgba(220,80,160,.3) !important;
  color: rgba(80,0,50,.9) !important;
}


/* =====================================================================
   DARK · FOREST  (тёмно-зелёный, лесной)
   ===================================================================== */

html[data-palette-dark="forest"] body:not(.light){
  background: #051208 !important;
  color: rgba(210,255,220,.92) !important;
}
html[data-palette-dark="forest"] body:not(.light)::before{
  background-image: linear-gradient(180deg, #0e2a16, #0e2a16) !important;
}
html[data-palette-dark="forest"] body:not(.light)::after{
  background-image: none !important;
}
html[data-palette-dark="forest"] body:not(.light) .panel,
html[data-palette-dark="forest"] body:not(.light) .content{
  background: rgba(10,30,14,.84) !important;
  border-color: rgba(40,180,80,.22) !important;
  box-shadow: 0 14px 40px rgba(0,30,10,.55) !important;
}
html[data-palette-dark="forest"] body:not(.light) .card{
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(40,200,80,.14), transparent 60%),
    linear-gradient(135deg, rgba(14,36,18,.86), rgba(8,22,12,.86)) !important;
  border-color: rgba(40,180,80,.22) !important;
  box-shadow: 0 18px 44px rgba(0,30,10,.55) !important;
}
html[data-palette-dark="forest"] body:not(.light) .btn{
  background: linear-gradient(180deg, rgba(40,180,80,.14), rgba(20,120,50,.10)) !important;
  border: 1px solid rgba(40,180,80,.30) !important;
  color: #c8ffd0 !important;
  box-shadow: 0 10px 24px rgba(0,40,20,.35) !important;
}
html[data-palette-dark="forest"] body:not(.light) .btn--primary{
  background: linear-gradient(135deg, #117540, #2d8838) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25) !important;
  box-shadow: 0 16px 34px rgba(40,180,80,.45) !important;
  border: none !important;
}
html[data-palette-dark="forest"] body:not(.light) .btn--ghost{
  background: rgba(40,180,80,.08) !important;
  border-color: rgba(40,180,80,.22) !important;
}
html[data-palette-dark="forest"] body:not(.light) .sidebar__link{
  background: linear-gradient(135deg, rgba(40,180,80,.18), rgba(80,200,100,.14)) !important;
  border: 1px solid rgba(40,180,80,.28) !important;
  color: #c8ffd0 !important;
}
html[data-palette-dark="forest"] body:not(.light) .chip{
  background: rgba(40,180,80,.18) !important;
  border: 1px solid rgba(40,180,80,.32) !important;
  color: #c8ffd0 !important;
}
html[data-palette-dark="forest"] body:not(.light) .theme-toggle,
html[data-palette-dark="forest"] body:not(.light) .profile-btn,
html[data-palette-dark="forest"] body:not(.light) .burger-btn{
  background: rgba(40,180,80,.08) !important;
  border: 1px solid rgba(40,180,80,.28) !important;
  color: #c8ffd0 !important;
}


/* =====================================================================
   DARK · VOID  (абсолютный мрак с электрик-синим)
   ===================================================================== */

html[data-palette-dark="void"] body:not(.light){
  background: #000006 !important;
  color: rgba(220,225,255,.92) !important;
}
html[data-palette-dark="void"] body:not(.light)::before{
  background-image: linear-gradient(180deg, #05001f, #05001f) !important;
}
html[data-palette-dark="void"] body:not(.light)::after{
  background-image: none !important;
}
html[data-palette-dark="void"] body:not(.light) .panel,
html[data-palette-dark="void"] body:not(.light) .content{
  background: rgba(4,2,18,.90) !important;
  border-color: rgba(60,100,255,.26) !important;
  box-shadow: 0 14px 40px rgba(0,0,30,.70) !important;
}
html[data-palette-dark="void"] body:not(.light) .card{
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(60,100,255,.16), transparent 60%),
    linear-gradient(135deg, rgba(8,6,26,.92), rgba(4,2,16,.92)) !important;
  border-color: rgba(60,100,255,.28) !important;
  box-shadow: 0 18px 44px rgba(0,0,30,.70) !important;
}
html[data-palette-dark="void"] body:not(.light) .btn{
  background: linear-gradient(180deg, rgba(60,100,255,.16), rgba(30,50,200,.10)) !important;
  border: 1px solid rgba(60,100,255,.34) !important;
  color: #d0d8ff !important;
  box-shadow: 0 10px 24px rgba(0,0,60,.50) !important;
}
html[data-palette-dark="void"] body:not(.light) .btn--primary{
  background: linear-gradient(135deg, #3c64ff, #8040ff) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(60,100,255,.50) !important;
  border: none !important;
}
html[data-palette-dark="void"] body:not(.light) .btn--ghost{
  background: rgba(60,100,255,.08) !important;
  border-color: rgba(60,100,255,.24) !important;
}
html[data-palette-dark="void"] body:not(.light) .sidebar__link{
  background: linear-gradient(135deg, rgba(60,100,255,.18), rgba(100,60,255,.14)) !important;
  border: 1px solid rgba(60,100,255,.30) !important;
  color: #d0d8ff !important;
}
html[data-palette-dark="void"] body:not(.light) .chip{
  background: rgba(60,100,255,.20) !important;
  border: 1px solid rgba(60,100,255,.36) !important;
  color: #d0d8ff !important;
}
html[data-palette-dark="void"] body:not(.light) .theme-toggle,
html[data-palette-dark="void"] body:not(.light) .profile-btn,
html[data-palette-dark="void"] body:not(.light) .burger-btn{
  background: rgba(60,100,255,.08) !important;
  border: 1px solid rgba(60,100,255,.28) !important;
  color: #d0d8ff !important;
}


/* =====================================================================
   DARK · RUST  (ржавый медный, тёплый)
   ===================================================================== */

html[data-palette-dark="rust"] body:not(.light){
  background: #1a0c00 !important;
  color: rgba(255,225,200,.92) !important;
}
html[data-palette-dark="rust"] body:not(.light)::before{
  background-image: linear-gradient(180deg, #3a1800, #3a1800) !important;
}
html[data-palette-dark="rust"] body:not(.light)::after{
  background-image: none !important;
}
html[data-palette-dark="rust"] body:not(.light) .panel,
html[data-palette-dark="rust"] body:not(.light) .content{
  background: rgba(32,14,2,.86) !important;
  border-color: rgba(200,90,20,.28) !important;
  box-shadow: 0 14px 40px rgba(50,20,0,.55) !important;
}
html[data-palette-dark="rust"] body:not(.light) .card{
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(200,90,20,.18), transparent 60%),
    linear-gradient(135deg, rgba(48,20,4,.88), rgba(28,10,2,.88)) !important;
  border-color: rgba(200,90,20,.30) !important;
  box-shadow: 0 18px 44px rgba(50,20,0,.55) !important;
}
html[data-palette-dark="rust"] body:not(.light) .btn{
  background: linear-gradient(180deg, rgba(200,90,20,.18), rgba(150,60,10,.12)) !important;
  border: 1px solid rgba(200,90,20,.36) !important;
  color: #ffe0c0 !important;
  box-shadow: 0 10px 24px rgba(60,20,0,.45) !important;
}
html[data-palette-dark="rust"] body:not(.light) .btn--primary{
  background: linear-gradient(135deg, #a13e08, #c45f10) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25) !important;
  box-shadow: 0 16px 34px rgba(200,90,20,.48) !important;
  border: none !important;
}
html[data-palette-dark="rust"] body:not(.light) .btn--ghost{
  background: rgba(200,90,20,.08) !important;
  border-color: rgba(200,90,20,.24) !important;
}
html[data-palette-dark="rust"] body:not(.light) .sidebar__link{
  background: linear-gradient(135deg, rgba(200,90,20,.20), rgba(255,140,60,.16)) !important;
  border: 1px solid rgba(200,90,20,.32) !important;
  color: #ffe0c0 !important;
}
html[data-palette-dark="rust"] body:not(.light) .chip{
  background: rgba(200,90,20,.22) !important;
  border: 1px solid rgba(200,90,20,.38) !important;
  color: #ffe0c0 !important;
}
html[data-palette-dark="rust"] body:not(.light) .theme-toggle,
html[data-palette-dark="rust"] body:not(.light) .profile-btn,
html[data-palette-dark="rust"] body:not(.light) .burger-btn{
  background: rgba(200,90,20,.08) !important;
  border: 1px solid rgba(200,90,20,.30) !important;
  color: #ffe0c0 !important;
}


/* =====================================================================
   LIGHT · MINT  (мятный, освежающий)
   ===================================================================== */

html[data-palette-light="mint"] body.light{
  background: #edfff4 !important;
  color: rgba(10,50,26,.92) !important;
}
html[data-palette-light="mint"] body.light::before{
  background-image: linear-gradient(180deg, #b6f5d0, #b6f5d0) !important;
}
html[data-palette-light="mint"] body.light::after{
  background-image: none !important;
}
html[data-palette-light="mint"] body.light .panel,
html[data-palette-light="mint"] body.light .content{
  background: rgba(240,255,248,.88) !important;
  border: 1px solid rgba(30,160,90,.24) !important;
  box-shadow: 0 18px 44px rgba(30,160,90,.16) !important;
}
html[data-palette-light="mint"] body.light .card{
  background: linear-gradient(135deg, rgba(160,255,210,.82), rgba(100,230,180,.78)) !important;
  border: 1px solid rgba(30,160,90,.30) !important;
  box-shadow: 0 22px 48px rgba(30,160,90,.22) !important;
  color: rgba(10,50,26,.95) !important;
}
html[data-palette-light="mint"] body.light .btn{
  background: rgba(240,255,248,.92) !important;
  border: 1px solid rgba(30,160,90,.30) !important;
  color: rgba(10,50,26,.9) !important;
  box-shadow: 0 10px 24px rgba(30,160,90,.14) !important;
}
html[data-palette-light="mint"] body.light .btn--primary{
  background: linear-gradient(135deg, #117048, #1a8c5c) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25) !important;
  box-shadow: 0 16px 34px rgba(30,160,90,.40) !important;
  border: none !important;
}
html[data-palette-light="mint"] body.light .btn--ghost{
  background: rgba(240,255,248,.62) !important;
  border-color: rgba(30,160,90,.24) !important;
}
html[data-palette-light="mint"] body.light .sidebar__link{
  background: linear-gradient(135deg, rgba(140,240,200,.82), rgba(80,210,160,.78)) !important;
  border: 1px solid rgba(30,160,90,.32) !important;
  color: rgba(10,50,26,.9) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6) !important;
}
html[data-palette-light="mint"] body.light .chip{
  background: rgba(120,230,180,.50) !important;
  border: 1px solid rgba(30,160,90,.40) !important;
  color: rgba(10,50,26,.9) !important;
}
html[data-palette-light="mint"] body.light .theme-toggle,
html[data-palette-light="mint"] body.light .profile-btn,
html[data-palette-light="mint"] body.light .burger-btn{
  background: rgba(240,255,248,.78) !important;
  border: 1px solid rgba(30,160,90,.30) !important;
  color: rgba(10,50,26,.9) !important;
}


/* =====================================================================
   LIGHT · LAVENDER  (лавандовый, нежный)
   ===================================================================== */

html[data-palette-light="lavender"] body.light{
  background: #f4f0ff !important;
  color: rgba(40,20,80,.92) !important;
}
html[data-palette-light="lavender"] body.light::before{
  background-image: linear-gradient(180deg, #d8caff, #d8caff) !important;
}
html[data-palette-light="lavender"] body.light::after{
  background-image: none !important;
}
html[data-palette-light="lavender"] body.light .panel,
html[data-palette-light="lavender"] body.light .content{
  background: rgba(248,244,255,.88) !important;
  border: 1px solid rgba(130,80,220,.22) !important;
  box-shadow: 0 18px 44px rgba(130,80,220,.14) !important;
}
html[data-palette-light="lavender"] body.light .card{
  background: linear-gradient(135deg, rgba(220,200,255,.84), rgba(190,170,255,.80)) !important;
  border: 1px solid rgba(130,80,220,.28) !important;
  box-shadow: 0 22px 48px rgba(130,80,220,.22) !important;
  color: rgba(40,20,80,.95) !important;
}
html[data-palette-light="lavender"] body.light .btn{
  background: rgba(248,244,255,.92) !important;
  border: 1px solid rgba(130,80,220,.28) !important;
  color: rgba(40,20,80,.9) !important;
  box-shadow: 0 10px 24px rgba(130,80,220,.12) !important;
}
html[data-palette-light="lavender"] body.light .btn--primary{
  background: linear-gradient(135deg, #5e2eb3, #7548c8) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25) !important;
  box-shadow: 0 16px 34px rgba(130,80,220,.40) !important;
  border: none !important;
}
html[data-palette-light="lavender"] body.light .btn--ghost{
  background: rgba(248,244,255,.62) !important;
  border-color: rgba(130,80,220,.22) !important;
}
html[data-palette-light="lavender"] body.light .sidebar__link{
  background: linear-gradient(135deg, rgba(200,180,255,.82), rgba(170,150,255,.78)) !important;
  border: 1px solid rgba(130,80,220,.30) !important;
  color: rgba(40,20,80,.9) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6) !important;
}
html[data-palette-light="lavender"] body.light .chip{
  background: rgba(180,160,255,.50) !important;
  border: 1px solid rgba(130,80,220,.38) !important;
  color: rgba(40,20,80,.9) !important;
}
html[data-palette-light="lavender"] body.light .theme-toggle,
html[data-palette-light="lavender"] body.light .profile-btn,
html[data-palette-light="lavender"] body.light .burger-btn{
  background: rgba(248,244,255,.78) !important;
  border: 1px solid rgba(130,80,220,.28) !important;
  color: rgba(40,20,80,.9) !important;
}


/* =====================================================================
   LIGHT · SLATE  (серо-голубой, офисный)
   ===================================================================== */

html[data-palette-light="slate"] body.light{
  background: #f0f4f8 !important;
  color: rgba(20,34,54,.92) !important;
}
html[data-palette-light="slate"] body.light::before{
  background-image: linear-gradient(180deg, #c8d6e8, #c8d6e8) !important;
}
html[data-palette-light="slate"] body.light::after{
  background-image: none !important;
}
html[data-palette-light="slate"] body.light .panel,
html[data-palette-light="slate"] body.light .content{
  background: rgba(240,246,252,.88) !important;
  border: 1px solid rgba(70,100,140,.22) !important;
  box-shadow: 0 18px 44px rgba(70,100,140,.14) !important;
}
html[data-palette-light="slate"] body.light .card{
  background: linear-gradient(135deg, rgba(200,220,245,.84), rgba(180,204,234,.80)) !important;
  border: 1px solid rgba(70,100,140,.26) !important;
  box-shadow: 0 22px 48px rgba(70,100,140,.20) !important;
  color: rgba(20,34,54,.95) !important;
}
html[data-palette-light="slate"] body.light .btn{
  background: rgba(240,246,252,.92) !important;
  border: 1px solid rgba(70,100,140,.26) !important;
  color: rgba(20,34,54,.9) !important;
  box-shadow: 0 10px 24px rgba(70,100,140,.12) !important;
}
html[data-palette-light="slate"] body.light .btn--primary{
  background: linear-gradient(135deg, #46648c, #6890bc) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(70,100,140,.38) !important;
  border: none !important;
}
html[data-palette-light="slate"] body.light .btn--ghost{
  background: rgba(240,246,252,.62) !important;
  border-color: rgba(70,100,140,.22) !important;
}
html[data-palette-light="slate"] body.light .sidebar__link{
  background: linear-gradient(135deg, rgba(180,208,238,.82), rgba(160,192,226,.78)) !important;
  border: 1px solid rgba(70,100,140,.28) !important;
  color: rgba(20,34,54,.9) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6) !important;
}
html[data-palette-light="slate"] body.light .chip{
  background: rgba(160,190,226,.50) !important;
  border: 1px solid rgba(70,100,140,.36) !important;
  color: rgba(20,34,54,.9) !important;
}
html[data-palette-light="slate"] body.light .theme-toggle,
html[data-palette-light="slate"] body.light .profile-btn,
html[data-palette-light="slate"] body.light .burger-btn{
  background: rgba(240,246,252,.78) !important;
  border: 1px solid rgba(70,100,140,.26) !important;
  color: rgba(20,34,54,.9) !important;
}


/* =====================================================================
   PROGRESS BAR · цвет полоски заливки под каждую палитру
   ===================================================================== */

/* — DARK — */
html[data-palette-dark="neutral"] body:not(.light) .progress__fill{
  background: linear-gradient(90deg, #2a2d38, #4a4e5e, #6b7280) !important;
  box-shadow: 0 10px 30px rgba(80,80,90,.35) !important;
}
html[data-palette-dark="ocean"] body:not(.light) .progress__fill{
  background: linear-gradient(90deg, #00d4b4, #2a9dff, #3a6dff) !important;
  box-shadow: 0 10px 30px rgba(0,180,200,.40) !important;
}
html[data-palette-dark="aurora"] body:not(.light) .progress__fill{
  background: linear-gradient(90deg, #3ee5a5, #2dd1ff, #8b5cff) !important;
  box-shadow: 0 10px 30px rgba(100,160,255,.40) !important;
}
html[data-palette-dark="cyber"] body:not(.light) .progress__fill{
  background: linear-gradient(90deg, #ff2eb4, #b952ff, #28e0ff) !important;
  box-shadow: 0 10px 30px rgba(255,60,200,.40) !important;
}
html[data-palette-dark="crimson"] body:not(.light) .progress__fill{
  background: linear-gradient(90deg, #dc2a44, #ff5e3c, #ff9a3c) !important;
  box-shadow: 0 10px 30px rgba(220,60,40,.40) !important;
}

/* — LIGHT — */
html[data-palette-light="neutral"] body.light .progress__fill{
  background: linear-gradient(90deg, #4a4a4a, #6b6b6b, #8a8a8a) !important;
  box-shadow: 0 10px 30px rgba(80,80,80,.22) !important;
}
html[data-palette-light="sunset"] body.light .progress__fill{
  background: linear-gradient(90deg, #ff8a4c, #ff5e6c, #ff4d7e) !important;
  box-shadow: 0 10px 30px rgba(255,120,100,.32) !important;
}
html[data-palette-light="yellow"] body.light .progress__fill{
  background: linear-gradient(90deg, #ffe14a, #ffd12a, #ff9a00) !important;
  box-shadow: 0 10px 30px rgba(255,180,40,.32) !important;
}
html[data-palette-light="citrus"] body.light .progress__fill{
  background: linear-gradient(90deg, #a8d820, #d4c020, #ff9a2c) !important;
  box-shadow: 0 10px 30px rgba(160,200,40,.32) !important;
}
html[data-palette-light="pink"] body.light .progress__fill{
  background: linear-gradient(90deg, #ff4ea0, #ff6cb4, #ff8cc8) !important;
  box-shadow: 0 10px 30px rgba(255,80,170,.32) !important;
}
html[data-palette-dark="forest"] body:not(.light) .progress__fill{
  background: linear-gradient(90deg, #28b450, #5ed97c, #7ed960) !important;
  box-shadow: 0 10px 30px rgba(40,180,80,.38) !important;
}
html[data-palette-dark="void"] body:not(.light) .progress__fill{
  background: linear-gradient(90deg, #3c64ff, #6040ff, #8040ff) !important;
  box-shadow: 0 10px 30px rgba(60,100,255,.42) !important;
}
html[data-palette-dark="rust"] body:not(.light) .progress__fill{
  background: linear-gradient(90deg, #c85a14, #e07030, #ff8c2c) !important;
  box-shadow: 0 10px 30px rgba(200,90,20,.40) !important;
}
html[data-palette-light="mint"] body.light .progress__fill{
  background: linear-gradient(90deg, #1ea060, #2ccd8a, #50e0a8) !important;
  box-shadow: 0 10px 30px rgba(30,160,90,.30) !important;
}
html[data-palette-light="lavender"] body.light .progress__fill{
  background: linear-gradient(90deg, #8250dc, #a070f0, #b080ff) !important;
  box-shadow: 0 10px 30px rgba(130,80,220,.32) !important;
}
html[data-palette-light="slate"] body.light .progress__fill{
  background: linear-gradient(90deg, #46648c, #5880a8, #6890bc) !important;
  box-shadow: 0 10px 30px rgba(70,100,140,.28) !important;
}

/* Keyboard focus uses opaque theme ink and never changes element geometry. */
:is(html[data-palette-light="linen"] body.light,html[data-palette-light="celadon"] body.light,html[data-palette-light="saffron"] body.light,html[data-palette-light="fjord"] body.light,html[data-palette-light="wisteria"] body.light,html[data-palette-dark="firefly"] body:not(.light),html[data-palette-dark="reef"] body:not(.light),html[data-palette-dark="garnet"] body:not(.light),html[data-palette-dark="orchid"] body:not(.light),html[data-palette-dark="cobalt"] body:not(.light)) :is(a,button,input,textarea,select,[tabindex]):focus-visible{outline:3px solid var(--p-text)!important;outline-offset:3px!important;}

/* Ten complementary palettes, isolated from existing account themes. */
html[data-palette-light="linen"] body.light{
 --logo-glow-opacity:.18;
 --p-bg:#f3f0e5;--p-surface:#fffdf5;--p-raised:#e7e0d0;--p-text:#302d43;
 --bg:#f3f0e5;--bg2:#e7e0d0;--surface:#fffdf5;--text:#302d43;--muted:#302d43;--c-title-edge:#302d43;
 --c-acc-1:#58437f;--c-acc-1-rgb:88,67,127;--c-acc-2:#78602b;--c-acc-2-rgb:120,96,43;--c-acc-3:#58437f;--c-acc-3-rgb:88,67,127;
 --logo-bg:#fffdf5;--logo-bg-deep:#f3f0e5;--logo-cyan:#58437f;--logo-violet:#78602b;--logo-magenta:#58437f;--logo-highlight:#302d43;
}
html[data-palette-light="celadon"] body.light{
 --logo-glow-opacity:.18;
 --p-bg:#edf3ec;--p-surface:#fafff7;--p-raised:#dce8d9;--p-text:#263f37;
 --bg:#edf3ec;--bg2:#dce8d9;--surface:#fafff7;--text:#263f37;--muted:#263f37;--c-title-edge:#263f37;
 --c-acc-1:#a34132;--c-acc-1-rgb:163,65,50;--c-acc-2:#31665b;--c-acc-2-rgb:49,102,91;--c-acc-3:#a34132;--c-acc-3-rgb:163,65,50;
 --logo-bg:#fafff7;--logo-bg-deep:#edf3ec;--logo-cyan:#a34132;--logo-violet:#31665b;--logo-magenta:#a34132;--logo-highlight:#263f37;
}
html[data-palette-light="saffron"] body.light{
 --logo-glow-opacity:.18;
 --p-bg:#faf3d9;--p-surface:#fffdf0;--p-raised:#eee3b7;--p-text:#29354d;
 --bg:#faf3d9;--bg2:#eee3b7;--surface:#fffdf0;--text:#29354d;--muted:#29354d;--c-title-edge:#29354d;
 --c-acc-1:#344e87;--c-acc-1-rgb:52,78,135;--c-acc-2:#8a601b;--c-acc-2-rgb:138,96,27;--c-acc-3:#344e87;--c-acc-3-rgb:52,78,135;
 --logo-bg:#fffdf0;--logo-bg-deep:#faf3d9;--logo-cyan:#344e87;--logo-violet:#8a601b;--logo-magenta:#344e87;--logo-highlight:#29354d;
}
html[data-palette-light="fjord"] body.light{
 --logo-glow-opacity:.18;
 --p-bg:#eaf1f2;--p-surface:#f8fcfc;--p-raised:#d7e4e5;--p-text:#293d44;
 --bg:#eaf1f2;--bg2:#d7e4e5;--surface:#f8fcfc;--text:#293d44;--muted:#293d44;--c-title-edge:#293d44;
 --c-acc-1:#984735;--c-acc-1-rgb:152,71,53;--c-acc-2:#326575;--c-acc-2-rgb:50,101,117;--c-acc-3:#984735;--c-acc-3-rgb:152,71,53;
 --logo-bg:#f8fcfc;--logo-bg-deep:#eaf1f2;--logo-cyan:#984735;--logo-violet:#326575;--logo-magenta:#984735;--logo-highlight:#293d44;
}
html[data-palette-light="wisteria"] body.light{
 --logo-glow-opacity:.18;
 --p-bg:#f0edf4;--p-surface:#fcfaff;--p-raised:#e2dbea;--p-text:#3b3045;
 --bg:#f0edf4;--bg2:#e2dbea;--surface:#fcfaff;--text:#3b3045;--muted:#3b3045;--c-title-edge:#3b3045;
 --c-acc-1:#6c437a;--c-acc-1-rgb:108,67,122;--c-acc-2:#716124;--c-acc-2-rgb:113,97,36;--c-acc-3:#6c437a;--c-acc-3-rgb:108,67,122;
 --logo-bg:#fcfaff;--logo-bg-deep:#f0edf4;--logo-cyan:#6c437a;--logo-violet:#716124;--logo-magenta:#6c437a;--logo-highlight:#3b3045;
}
html[data-palette-dark="firefly"] body:not(.light){
 --logo-glow-opacity:.40;
 --p-bg:#211c2b;--p-surface:#2d2739;--p-raised:#3b3349;--p-text:#f0edf4;
 --bg:#211c2b;--bg2:#3b3349;--surface:#2d2739;--text:#f0edf4;--muted:#f0edf4;--c-title-edge:#f0edf4;
 --c-acc-1:#cce887;--c-acc-1-rgb:204,232,135;--c-acc-2:#c5b0ed;--c-acc-2-rgb:197,176,237;--c-acc-3:#cce887;--c-acc-3-rgb:204,232,135;
 --logo-bg:#2d2739;--logo-bg-deep:#211c2b;--logo-cyan:#cce887;--logo-violet:#c5b0ed;--logo-magenta:#cce887;--logo-highlight:#f0edf4;
}
html[data-palette-dark="reef"] body:not(.light){
 --logo-glow-opacity:.40;
 --p-bg:#101f30;--p-surface:#192d40;--p-raised:#223b50;--p-text:#e8f1f7;
 --bg:#101f30;--bg2:#223b50;--surface:#192d40;--text:#e8f1f7;--muted:#e8f1f7;--c-title-edge:#e8f1f7;
 --c-acc-1:#ffae99;--c-acc-1-rgb:255,174,153;--c-acc-2:#8edbd3;--c-acc-2-rgb:142,219,211;--c-acc-3:#ffae99;--c-acc-3-rgb:255,174,153;
 --logo-bg:#192d40;--logo-bg-deep:#101f30;--logo-cyan:#ffae99;--logo-violet:#8edbd3;--logo-magenta:#ffae99;--logo-highlight:#e8f1f7;
}
html[data-palette-dark="garnet"] body:not(.light){
 --logo-glow-opacity:.40;
 --p-bg:#291b22;--p-surface:#392731;--p-raised:#4b333f;--p-text:#f8eaf0;
 --bg:#291b22;--bg2:#4b333f;--surface:#392731;--text:#f8eaf0;--muted:#f8eaf0;--c-title-edge:#f8eaf0;
 --c-acc-1:#a8dce9;--c-acc-1-rgb:168,220,233;--c-acc-2:#edb2bd;--c-acc-2-rgb:237,178,189;--c-acc-3:#a8dce9;--c-acc-3-rgb:168,220,233;
 --logo-bg:#392731;--logo-bg-deep:#291b22;--logo-cyan:#a8dce9;--logo-violet:#edb2bd;--logo-magenta:#a8dce9;--logo-highlight:#f8eaf0;
}
html[data-palette-dark="orchid"] body:not(.light){
 --logo-glow-opacity:.40;
 --p-bg:#20231b;--p-surface:#2c3025;--p-raised:#3b4031;--p-text:#eff2e7;
 --bg:#20231b;--bg2:#3b4031;--surface:#2c3025;--text:#eff2e7;--muted:#eff2e7;--c-title-edge:#eff2e7;
 --c-acc-1:#e1b7ed;--c-acc-1-rgb:225,183,237;--c-acc-2:#c7d79a;--c-acc-2-rgb:199,215,154;--c-acc-3:#e1b7ed;--c-acc-3-rgb:225,183,237;
 --logo-bg:#2c3025;--logo-bg-deep:#20231b;--logo-cyan:#e1b7ed;--logo-violet:#c7d79a;--logo-magenta:#e1b7ed;--logo-highlight:#eff2e7;
}
html[data-palette-dark="cobalt"] body:not(.light){
 --logo-glow-opacity:.40;
 --p-bg:#171d35;--p-surface:#222b47;--p-raised:#303b5c;--p-text:#edf0fc;
 --bg:#171d35;--bg2:#303b5c;--surface:#222b47;--text:#edf0fc;--muted:#edf0fc;--c-title-edge:#edf0fc;
 --c-acc-1:#f6c19a;--c-acc-1-rgb:246,193,154;--c-acc-2:#aebdff;--c-acc-2-rgb:174,189,255;--c-acc-3:#f6c19a;--c-acc-3-rgb:246,193,154;
 --logo-bg:#222b47;--logo-bg-deep:#171d35;--logo-cyan:#f6c19a;--logo-violet:#aebdff;--logo-magenta:#f6c19a;--logo-highlight:#edf0fc;
}
:is(html[data-palette-light="linen"] body.light,html[data-palette-light="celadon"] body.light,html[data-palette-light="saffron"] body.light,html[data-palette-light="fjord"] body.light,html[data-palette-light="wisteria"] body.light,html[data-palette-dark="firefly"] body:not(.light),html[data-palette-dark="reef"] body:not(.light),html[data-palette-dark="garnet"] body:not(.light),html[data-palette-dark="orchid"] body:not(.light),html[data-palette-dark="cobalt"] body:not(.light)){background:var(--p-bg)!important;color:var(--p-text)!important;}
:is(html[data-palette-light="linen"] body.light,html[data-palette-light="celadon"] body.light,html[data-palette-light="saffron"] body.light,html[data-palette-light="fjord"] body.light,html[data-palette-light="wisteria"] body.light,html[data-palette-dark="firefly"] body:not(.light),html[data-palette-dark="reef"] body:not(.light),html[data-palette-dark="garnet"] body:not(.light),html[data-palette-dark="orchid"] body:not(.light),html[data-palette-dark="cobalt"] body:not(.light))::before{background-image:radial-gradient(ellipse at 10% 0%,rgba(var(--c-acc-2-rgb),.10),transparent 62%),linear-gradient(150deg,var(--p-bg),var(--p-raised))!important;}
:is(html[data-palette-light="linen"] body.light,html[data-palette-light="celadon"] body.light,html[data-palette-light="saffron"] body.light,html[data-palette-light="fjord"] body.light,html[data-palette-light="wisteria"] body.light,html[data-palette-dark="firefly"] body:not(.light),html[data-palette-dark="reef"] body:not(.light),html[data-palette-dark="garnet"] body:not(.light),html[data-palette-dark="orchid"] body:not(.light),html[data-palette-dark="cobalt"] body:not(.light))::after{background-image:none!important;}
:is(html[data-palette-light="linen"] body.light,html[data-palette-light="celadon"] body.light,html[data-palette-light="saffron"] body.light,html[data-palette-light="fjord"] body.light,html[data-palette-light="wisteria"] body.light,html[data-palette-dark="firefly"] body:not(.light),html[data-palette-dark="reef"] body:not(.light),html[data-palette-dark="garnet"] body:not(.light),html[data-palette-dark="orchid"] body:not(.light),html[data-palette-dark="cobalt"] body:not(.light)) :is(.panel,.content,.card,.sidebar__link,.theme-toggle,.profile-btn,.burger-btn,.st-card){background:linear-gradient(145deg,var(--p-surface),var(--p-raised))!important;color:var(--p-text)!important;border-color:rgba(var(--c-acc-1-rgb),.24)!important;}
:is(html[data-palette-light="linen"] body.light,html[data-palette-light="celadon"] body.light,html[data-palette-light="saffron"] body.light,html[data-palette-light="fjord"] body.light,html[data-palette-light="wisteria"] body.light,html[data-palette-dark="firefly"] body:not(.light),html[data-palette-dark="reef"] body:not(.light),html[data-palette-dark="garnet"] body:not(.light),html[data-palette-dark="orchid"] body:not(.light),html[data-palette-dark="cobalt"] body:not(.light)) :is(.hero,.sidebar__nav,.sidebar__card,.sidebar__tip){background:var(--p-raised)!important;color:var(--p-text)!important;border-color:rgba(var(--c-acc-1-rgb),.22)!important;}
:is(html[data-palette-light="linen"] body.light,html[data-palette-light="celadon"] body.light,html[data-palette-light="saffron"] body.light,html[data-palette-light="fjord"] body.light,html[data-palette-light="wisteria"] body.light,html[data-palette-dark="firefly"] body:not(.light),html[data-palette-dark="reef"] body:not(.light),html[data-palette-dark="garnet"] body:not(.light),html[data-palette-dark="orchid"] body:not(.light),html[data-palette-dark="cobalt"] body:not(.light)) :is(.btn,.chip,.badge,input,textarea,select,.st-palette,.st-font){background:var(--p-surface)!important;color:var(--p-text)!important;border-color:rgba(var(--c-acc-1-rgb),.32)!important;}
:is(html[data-palette-light="linen"] body.light,html[data-palette-light="celadon"] body.light,html[data-palette-light="saffron"] body.light,html[data-palette-light="fjord"] body.light,html[data-palette-light="wisteria"] body.light,html[data-palette-dark="firefly"] body:not(.light),html[data-palette-dark="reef"] body:not(.light),html[data-palette-dark="garnet"] body:not(.light),html[data-palette-dark="orchid"] body:not(.light),html[data-palette-dark="cobalt"] body:not(.light)) :is(.btn--primary,.subject-switch__option.is-active,.exam-track__option.is-active){background:var(--c-acc-1)!important;color:var(--p-bg)!important;text-shadow:none!important;}
:is(html[data-palette-light="linen"] body.light,html[data-palette-light="celadon"] body.light,html[data-palette-light="saffron"] body.light,html[data-palette-light="fjord"] body.light,html[data-palette-light="wisteria"] body.light,html[data-palette-dark="firefly"] body:not(.light),html[data-palette-dark="reef"] body:not(.light),html[data-palette-dark="garnet"] body:not(.light),html[data-palette-dark="orchid"] body:not(.light),html[data-palette-dark="cobalt"] body:not(.light)) :is(.hero__desc,.meta,.progress__hint,.st-card__hint,.st-sound-hint,.st-palette__tag,.st-font__tag,.st-font__sample,.logo__text small){color:var(--p-text)!important;opacity:1!important;}
:is(html[data-palette-light="linen"] body.light,html[data-palette-light="celadon"] body.light,html[data-palette-light="saffron"] body.light,html[data-palette-light="fjord"] body.light,html[data-palette-light="wisteria"] body.light,html[data-palette-dark="firefly"] body:not(.light),html[data-palette-dark="reef"] body:not(.light),html[data-palette-dark="garnet"] body:not(.light),html[data-palette-dark="orchid"] body:not(.light),html[data-palette-dark="cobalt"] body:not(.light)) :is(input,textarea)::placeholder{color:var(--p-text)!important;opacity:.78!important;}
:is(html[data-palette-light="linen"] body.light,html[data-palette-light="celadon"] body.light,html[data-palette-light="saffron"] body.light,html[data-palette-light="fjord"] body.light,html[data-palette-light="wisteria"] body.light,html[data-palette-dark="firefly"] body:not(.light),html[data-palette-dark="reef"] body:not(.light),html[data-palette-dark="garnet"] body:not(.light),html[data-palette-dark="orchid"] body:not(.light),html[data-palette-dark="cobalt"] body:not(.light)) .card__title-link{color:var(--c-acc-1)!important;}
:is(html[data-palette-light="linen"] body.light,html[data-palette-light="celadon"] body.light,html[data-palette-light="saffron"] body.light,html[data-palette-light="fjord"] body.light,html[data-palette-light="wisteria"] body.light,html[data-palette-dark="firefly"] body:not(.light),html[data-palette-dark="reef"] body:not(.light),html[data-palette-dark="garnet"] body:not(.light),html[data-palette-dark="orchid"] body:not(.light),html[data-palette-dark="cobalt"] body:not(.light)) :is(.progress__fill,.st-card__bar){background:linear-gradient(90deg,var(--c-acc-1),var(--c-acc-2))!important;}
:is(html[data-palette-light="linen"] body.light,html[data-palette-light="celadon"] body.light,html[data-palette-light="saffron"] body.light,html[data-palette-light="fjord"] body.light,html[data-palette-light="wisteria"] body.light,html[data-palette-dark="firefly"] body:not(.light),html[data-palette-dark="reef"] body:not(.light),html[data-palette-dark="garnet"] body:not(.light),html[data-palette-dark="orchid"] body:not(.light),html[data-palette-dark="cobalt"] body:not(.light)) .mobile-dock{background:var(--p-surface)!important;color:var(--p-text)!important;}
