/* SINH TỰ ĐỘNG bằng scripts/make-themes.py — đừng sửa tay, sửa script rồi chạy lại. */
/* 6 bảng màu × sáng / tối. <html data-palette="…" data-theme="light|dark"> (theme.js). sky = mặc định (:root). */

/* ---- Sky — pastel blue */
:root {
  --bg1: #f6fafb;
  --bg2: #f2f6fb;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-a: rgba(255, 255, 255, 0.94);
  --ink: #1a2128;
  --line: #dde4ec;
  --accent-soft: #e9f0f9;
  --input-bg: #fdfdfe;
  --tint-1: #f8fafd;
  --tint-2: #eff3f8;
  --tint-3: #e5ebf3;
  --border-2: #d4deea;
  --border-3: #a2bbd7;
  --grad-a: #f4f8fb;
  --grad-b: #eef3f9;
  --wheel-rim: #ffffff;
  --wheel-empty: #f2f5f8;
  --wheel-empty-line: #cbd5e2;
  --sb-thumb: #c3d0df;
  --sb-thumb-hover: #93acc8;
  --skel: #eaeff6;
  --skel-hi: #f9fbfd;
  --muted: #4d5866;
  --accent: #2e598a;
  --chip-fg: #3a5778;
  --toast-bg: #1a2128;
  --overlay: rgba(26, 33, 40, 0.38);
  --shadow: 0 10px 30px rgba(80, 112, 149, 0.13);
  --shadow-sm: 0 3px 10px rgba(80, 112, 149, 0.11);
  --shadow-lg: 0 24px 60px rgba(38, 62, 89, 0.3);
  --wheel-shadow: rgba(80, 112, 149, 0.25);
  --shade-rgb: 80, 112, 149;
  --g1: #4795ce;
  --g2: #547ec8;
  --g1-hover: #3384bf;
  --g2-hover: #3c6bbc;
  --g1-soft: #b4d3ec;
  --g2-soft: #b6c4e8;
  --glow-rgb: 84, 126, 200;
  --accent-rgb: 46, 89, 138;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg1: #1b242f;
  --bg2: #212d3b;
  --card: #283543;
  --surface: #303f50;
  --surface-a: rgba(46, 60, 76, 0.94);
  --ink: #f2f5f8;
  --line: #425367;
  --accent-soft: #344860;
  --input-bg: #24303d;
  --tint-1: #2d3c4d;
  --tint-2: #344558;
  --tint-3: #425a76;
  --border-2: #485d75;
  --border-3: #688ab1;
  --grad-a: #304048;
  --grad-b: #334254;
  --wheel-rim: #35465a;
  --wheel-empty: #2b3746;
  --wheel-empty-line: #516985;
  --sb-thumb: #4e647e;
  --sb-thumb-hover: #688ab1;
  --skel: #314154;
  --skel-hi: #40556d;
  --muted: #c9d1d9;
  --accent: #bcd2eb;
  --chip-fg: #c0d2e7;
  --toast-bg: #425a76;
  --overlay: rgba(5, 10, 15, 0.62);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --wheel-shadow: rgba(0, 0, 0, 0.4);
  --shade-rgb: 0, 0, 0;
  --g1: #4795ce;
  --g2: #547ec8;
  --g1-hover: #3384bf;
  --g2-hover: #3c6bbc;
  --g1-soft: #b4d3ec;
  --g2-soft: #b6c4e8;
  --glow-rgb: 0, 0, 0;
  --accent-rgb: 188, 210, 235;
  color-scheme: dark;
}

/* ---- Lavender — soft purple */
:root[data-palette="lavender"]:not([data-theme="dark"]) {
  --bg1: #fbf6fb;
  --bg2: #f4f2fb;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-a: rgba(255, 255, 255, 0.94);
  --ink: #1e1a28;
  --line: #e1ddec;
  --accent-soft: #eee9f9;
  --input-bg: #fdfdfe;
  --tint-1: #f9f8fd;
  --tint-2: #f2eff8;
  --tint-3: #e9e5f3;
  --border-2: #dbd4ea;
  --border-3: #b2a2d7;
  --grad-a: #fbf4fb;
  --grad-b: #f1eef9;
  --wheel-rim: #ffffff;
  --wheel-empty: #f4f2f8;
  --wheel-empty-line: #d2cbe2;
  --sb-thumb: #ccc3df;
  --sb-thumb-hover: #a393c8;
  --skel: #edeaf6;
  --skel-hi: #faf9fd;
  --muted: #59516c;
  --accent: #5c39ac;
  --chip-fg: #5e4794;
  --toast-bg: #1e1a28;
  --overlay: rgba(30, 26, 40, 0.38);
  --shadow: 0 10px 30px rgba(101, 80, 149, 0.13);
  --shadow-sm: 0 3px 10px rgba(101, 80, 149, 0.11);
  --shadow-lg: 0 24px 60px rgba(54, 38, 89, 0.3);
  --wheel-shadow: rgba(101, 80, 149, 0.25);
  --shade-rgb: 101, 80, 149;
  --g1: #9782cd;
  --g2: #8074c1;
  --g1-hover: #8269c3;
  --g2-hover: #695bb6;
  --g1-soft: #d3c9ec;
  --g2-soft: #c4bde6;
  --glow-rgb: 128, 116, 193;
  --accent-rgb: 92, 57, 172;
  color-scheme: light;
}

:root[data-palette="lavender"][data-theme="dark"] {
  --bg1: #211b2f;
  --bg2: #29213b;
  --card: #302843;
  --surface: #393050;
  --surface-a: rgba(55, 46, 76, 0.94);
  --ink: #f4f2f8;
  --line: #4d4267;
  --accent-soft: #413460;
  --input-bg: #2b243d;
  --tint-1: #372d4d;
  --tint-2: #3f3458;
  --tint-3: #524276;
  --border-2: #554875;
  --border-3: #7e68b1;
  --grad-a: #483048;
  --grad-b: #3d3354;
  --wheel-rim: #40355a;
  --wheel-empty: #332b46;
  --wheel-empty-line: #615185;
  --sb-thumb: #5c4e7e;
  --sb-thumb-hover: #7e68b1;
  --skel: #3b3154;
  --skel-hi: #4e406d;
  --muted: #c3bdd1;
  --accent: #c7b8ea;
  --chip-fg: #c9bce6;
  --toast-bg: #524276;
  --overlay: rgba(8, 5, 15, 0.62);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --wheel-shadow: rgba(0, 0, 0, 0.4);
  --shade-rgb: 0, 0, 0;
  --g1: #9782cd;
  --g2: #8074c1;
  --g1-hover: #8269c3;
  --g2-hover: #695bb6;
  --g1-soft: #d3c9ec;
  --g2-soft: #c4bde6;
  --glow-rgb: 0, 0, 0;
  --accent-rgb: 199, 184, 234;
  color-scheme: dark;
}

/* ---- Mint — fresh green */
:root[data-palette="mint"]:not([data-theme="dark"]) {
  --bg1: #f6fbf9;
  --bg2: #f2fbf8;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-a: rgba(255, 255, 255, 0.94);
  --ink: #1a2825;
  --line: #ddece8;
  --accent-soft: #e9f9f5;
  --input-bg: #fdfefe;
  --tint-1: #f8fdfc;
  --tint-2: #eff8f6;
  --tint-3: #e5f3f0;
  --border-2: #d4eae5;
  --border-3: #a2d7ca;
  --grad-a: #f4fbf7;
  --grad-b: #eef9f6;
  --wheel-rim: #ffffff;
  --wheel-empty: #f2f8f6;
  --wheel-empty-line: #cbe2dc;
  --sb-thumb: #c3dfd8;
  --sb-thumb-hover: #93c8ba;
  --skel: #eaf6f3;
  --skel-hi: #f9fdfc;
  --muted: #465d57;
  --accent: #216353;
  --chip-fg: #2e6054;
  --toast-bg: #1a2825;
  --overlay: rgba(26, 40, 37, 0.38);
  --shadow: 0 10px 30px rgba(80, 149, 132, 0.13);
  --shadow-sm: 0 3px 10px rgba(80, 149, 132, 0.11);
  --shadow-lg: 0 24px 60px rgba(38, 89, 76, 0.3);
  --wheel-shadow: rgba(80, 149, 132, 0.25);
  --shade-rgb: 80, 149, 132;
  --g1: #4c9c86;
  --g2: #4c8980;
  --g1-hover: #408471;
  --g2-hover: #3f726b;
  --g1-soft: #b2dccf;
  --g2-soft: #a8cdc7;
  --glow-rgb: 76, 137, 128;
  --accent-rgb: 33, 99, 83;
  color-scheme: light;
}

:root[data-palette="mint"][data-theme="dark"] {
  --bg1: #1b2f2a;
  --bg2: #213b34;
  --card: #28433c;
  --surface: #305048;
  --surface-a: rgba(46, 76, 69, 0.94);
  --ink: #f2f8f6;
  --line: #42675d;
  --accent-soft: #346055;
  --input-bg: #243d37;
  --tint-1: #2d4d45;
  --tint-2: #34584f;
  --tint-3: #427669;
  --border-2: #48756a;
  --border-3: #68b19f;
  --grad-a: #30483c;
  --grad-b: #33544c;
  --wheel-rim: #355a51;
  --wheel-empty: #2b463f;
  --wheel-empty-line: #518578;
  --sb-thumb: #4e7e72;
  --sb-thumb-hover: #68b19f;
  --skel: #31544b;
  --skel-hi: #406d62;
  --muted: #e7eeec;
  --accent: #d7f4ed;
  --chip-fg: #daf1eb;
  --toast-bg: #427669;
  --overlay: rgba(5, 15, 13, 0.62);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --wheel-shadow: rgba(0, 0, 0, 0.4);
  --shade-rgb: 0, 0, 0;
  --g1: #4c9c86;
  --g2: #4c8980;
  --g1-hover: #408471;
  --g2-hover: #3f726b;
  --g1-soft: #b2dccf;
  --g2-soft: #a8cdc7;
  --glow-rgb: 0, 0, 0;
  --accent-rgb: 215, 244, 237;
  color-scheme: dark;
}

/* ---- Peach — warm orange */
:root[data-palette="peach"]:not([data-theme="dark"]) {
  --bg1: #fbf9f6;
  --bg2: #fbf5f2;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-a: rgba(255, 255, 255, 0.94);
  --ink: #281f1a;
  --line: #ece2dd;
  --accent-soft: #f9eee9;
  --input-bg: #fefdfd;
  --tint-1: #fdfaf8;
  --tint-2: #f8f2ef;
  --tint-3: #f3e9e5;
  --border-2: #eadbd4;
  --border-3: #d7b4a2;
  --grad-a: #fbf8f4;
  --grad-b: #f9f2ee;
  --wheel-rim: #ffffff;
  --wheel-empty: #f8f4f2;
  --wheel-empty-line: #e2d2cb;
  --sb-thumb: #dfcdc3;
  --sb-thumb-hover: #c8a593;
  --skel: #f6eeea;
  --skel-hi: #fdfbf9;
  --muted: #63534b;
  --accent: #82482b;
  --chip-fg: #754d38;
  --toast-bg: #281f1a;
  --overlay: rgba(40, 31, 26, 0.38);
  --shadow: 0 10px 30px rgba(149, 103, 80, 0.13);
  --shadow-sm: 0 3px 10px rgba(149, 103, 80, 0.11);
  --shadow-lg: 0 24px 60px rgba(89, 55, 38, 0.3);
  --wheel-shadow: rgba(149, 103, 80, 0.25);
  --shade-rgb: 149, 103, 80;
  --g1: #db7240;
  --g2: #bd655a;
  --g1-hover: #d05e27;
  --g2-hover: #ae5146;
  --g1-soft: #f3cdb9;
  --g2-soft: #ebbcb4;
  --glow-rgb: 189, 101, 90;
  --accent-rgb: 130, 72, 43;
  color-scheme: light;
}

:root[data-palette="peach"][data-theme="dark"] {
  --bg1: #2f221b;
  --bg2: #3b2a21;
  --card: #433128;
  --surface: #503a30;
  --surface-a: rgba(76, 56, 46, 0.94);
  --ink: #f8f4f2;
  --line: #674e42;
  --accent-soft: #604334;
  --input-bg: #3d2c24;
  --tint-1: #4d382d;
  --tint-2: #584034;
  --tint-3: #765342;
  --border-2: #755748;
  --border-3: #b18068;
  --grad-a: #483d30;
  --grad-b: #543e33;
  --wheel-rim: #5a4135;
  --wheel-empty: #46342b;
  --wheel-empty-line: #856351;
  --sb-thumb: #7e5e4e;
  --sb-thumb-hover: #b18068;
  --skel: #543d31;
  --skel-hi: #6d4f40;
  --muted: #ded4cf;
  --accent: #edcfc0;
  --chip-fg: #e9d0c4;
  --toast-bg: #765342;
  --overlay: rgba(15, 8, 5, 0.62);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --wheel-shadow: rgba(0, 0, 0, 0.4);
  --shade-rgb: 0, 0, 0;
  --g1: #db7240;
  --g2: #bd655a;
  --g1-hover: #d05e27;
  --g2-hover: #ae5146;
  --g1-soft: #f3cdb9;
  --g2-soft: #ebbcb4;
  --glow-rgb: 0, 0, 0;
  --accent-rgb: 237, 207, 192;
  color-scheme: dark;
}

/* ---- Rose — soft pink */
:root[data-palette="rose"]:not([data-theme="dark"]) {
  --bg1: #fbf6f7;
  --bg2: #fbf2f5;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-a: rgba(255, 255, 255, 0.94);
  --ink: #281a1f;
  --line: #ecdde2;
  --accent-soft: #f9e9ef;
  --input-bg: #fefdfd;
  --tint-1: #fdf8fa;
  --tint-2: #f8eff2;
  --tint-3: #f3e5ea;
  --border-2: #ead4dc;
  --border-3: #d7a2b6;
  --grad-a: #fbf4f5;
  --grad-b: #f9eef2;
  --wheel-rim: #ffffff;
  --wheel-empty: #f8f2f4;
  --wheel-empty-line: #e2cbd3;
  --sb-thumb: #dfc3cd;
  --sb-thumb-hover: #c893a6;
  --skel: #f6eaee;
  --skel-hi: #fdf9fb;
  --muted: #694f58;
  --accent: #913054;
  --chip-fg: #833f58;
  --toast-bg: #281a1f;
  --overlay: rgba(40, 26, 31, 0.38);
  --shadow: 0 10px 30px rgba(149, 80, 106, 0.13);
  --shadow-sm: 0 3px 10px rgba(149, 80, 106, 0.11);
  --shadow-lg: 0 24px 60px rgba(89, 38, 57, 0.3);
  --wheel-shadow: rgba(149, 80, 106, 0.25);
  --shade-rgb: 149, 80, 106;
  --g1: #cb7596;
  --g2: #b56385;
  --g1-hover: #c15b82;
  --g2-hover: #a64f73;
  --g1-soft: #efc7d5;
  --g2-soft: #e2b6c7;
  --glow-rgb: 181, 99, 133;
  --accent-rgb: 145, 48, 84;
  color-scheme: light;
}

:root[data-palette="rose"][data-theme="dark"] {
  --bg1: #2f1b22;
  --bg2: #3b212a;
  --card: #432832;
  --surface: #50303b;
  --surface-a: rgba(76, 46, 57, 0.94);
  --ink: #f8f2f4;
  --line: #67424f;
  --accent-soft: #603444;
  --input-bg: #3d242d;
  --tint-1: #4d2d39;
  --tint-2: #583441;
  --tint-3: #764255;
  --border-2: #754858;
  --border-3: #b16882;
  --grad-a: #483033;
  --grad-b: #54333f;
  --wheel-rim: #5a3542;
  --wheel-empty: #462b35;
  --wheel-empty-line: #855164;
  --sb-thumb: #7e4e5f;
  --sb-thumb-hover: #b16882;
  --skel: #54313e;
  --skel-hi: #6d4051;
  --muted: #d5c3ca;
  --accent: #ebbccd;
  --chip-fg: #e7c0ce;
  --toast-bg: #764255;
  --overlay: rgba(15, 5, 9, 0.62);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --wheel-shadow: rgba(0, 0, 0, 0.4);
  --shade-rgb: 0, 0, 0;
  --g1: #cb7596;
  --g2: #b56385;
  --g1-hover: #c15b82;
  --g2-hover: #a64f73;
  --g1-soft: #efc7d5;
  --g2-soft: #e2b6c7;
  --glow-rgb: 0, 0, 0;
  --accent-rgb: 235, 188, 205;
  color-scheme: dark;
}

/* ---- Mono — black & white */
:root[data-palette="mono"]:not([data-theme="dark"]) {
  --bg1: #f9f9f9;
  --bg2: #f6f6f6;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-a: rgba(255, 255, 255, 0.94);
  --ink: #212121;
  --line: #e4e4e4;
  --accent-soft: #f1f1f1;
  --input-bg: #fdfdfd;
  --tint-1: #fafafa;
  --tint-2: #f4f4f4;
  --tint-3: #ececec;
  --border-2: #dfdfdf;
  --border-3: #bdbdbd;
  --grad-a: #f7f7f7;
  --grad-b: #f4f4f4;
  --wheel-rim: #ffffff;
  --wheel-empty: #f5f5f5;
  --wheel-empty-line: #d6d6d6;
  --sb-thumb: #d1d1d1;
  --sb-thumb-hover: #adadad;
  --skel: #f0f0f0;
  --skel-hi: #fbfbfb;
  --muted: #575757;
  --accent: #2e2e2e;
  --chip-fg: #404040;
  --toast-bg: #212121;
  --overlay: rgba(33, 33, 33, 0.38);
  --shadow: 0 10px 30px rgba(115, 115, 115, 0.13);
  --shadow-sm: 0 3px 10px rgba(115, 115, 115, 0.11);
  --shadow-lg: 0 24px 60px rgba(64, 64, 64, 0.3);
  --wheel-shadow: rgba(115, 115, 115, 0.25);
  --shade-rgb: 115, 115, 115;
  --g1: #3d3d3d;
  --g2: #1f1f1f;
  --g1-hover: #2b2b2b;
  --g2-hover: #0d0d0d;
  --g1-soft: #a3a3a3;
  --g2-soft: #858585;
  --glow-rgb: 31, 31, 31;
  --accent-rgb: 46, 46, 46;
  color-scheme: light;
}

:root[data-palette="mono"][data-theme="dark"] {
  --bg1: #252525;
  --bg2: #2e2e2e;
  --card: #363636;
  --surface: #404040;
  --surface-a: rgba(61, 61, 61, 0.94);
  --ink: #f5f5f5;
  --line: #545454;
  --accent-soft: #4a4a4a;
  --input-bg: #303030;
  --tint-1: #3d3d3d;
  --tint-2: #464646;
  --tint-3: #5c5c5c;
  --border-2: #5e5e5e;
  --border-3: #8c8c8c;
  --grad-a: #3c3c3c;
  --grad-b: #444444;
  --wheel-rim: #474747;
  --wheel-empty: #383838;
  --wheel-empty-line: #6b6b6b;
  --sb-thumb: #666666;
  --sb-thumb-hover: #8c8c8c;
  --skel: #424242;
  --skel-hi: #575757;
  --muted: #d6d6d6;
  --accent: #ebebeb;
  --chip-fg: #e6e6e6;
  --toast-bg: #5c5c5c;
  --overlay: rgba(10, 10, 10, 0.62);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --wheel-shadow: rgba(0, 0, 0, 0.4);
  --shade-rgb: 0, 0, 0;
  --g1: #5c5c5c;
  --g2: #424242;
  --g1-hover: #4a4a4a;
  --g2-hover: #303030;
  --g1-soft: #a3a3a3;
  --g2-soft: #858585;
  --glow-rgb: 0, 0, 0;
  --accent-rgb: 235, 235, 235;
  color-scheme: dark;
}
