/* สร้างโดย scripts/gen-palette.mjs จาก palette ของ Tailwind — ห้ามแก้มือ (แก้ที่สคริปต์แล้วรันใหม่) */
/*
 * ชุดสีป้ายกำกับ 20 สีให้ผู้ใช้เลือก (หมวด/แท็ก/ป้ายสถานะที่ตั้งเอง) — คนละเรื่องกับ semantic token (success/warning…)
 * class: bg-label-teal · bg-label-teal-subtle text-label-teal-subtle-foreground border-label-teal-border
 * ใช้ผ่าน `paletteClasses(color)` / `LabelBadge` / `ColorSelect` ดีกว่าเขียน class เอง
 */
@theme inline {
  --color-label-gray: var(--label-gray);
  --color-label-gray-foreground: var(--label-gray-foreground);
  --color-label-gray-subtle: var(--label-gray-subtle);
  --color-label-gray-subtle-foreground: var(--label-gray-subtle-foreground);
  --color-label-gray-border: var(--label-gray-border);
  --color-label-slate: var(--label-slate);
  --color-label-slate-foreground: var(--label-slate-foreground);
  --color-label-slate-subtle: var(--label-slate-subtle);
  --color-label-slate-subtle-foreground: var(--label-slate-subtle-foreground);
  --color-label-slate-border: var(--label-slate-border);
  --color-label-stone: var(--label-stone);
  --color-label-stone-foreground: var(--label-stone-foreground);
  --color-label-stone-subtle: var(--label-stone-subtle);
  --color-label-stone-subtle-foreground: var(--label-stone-subtle-foreground);
  --color-label-stone-border: var(--label-stone-border);
  --color-label-red: var(--label-red);
  --color-label-red-foreground: var(--label-red-foreground);
  --color-label-red-subtle: var(--label-red-subtle);
  --color-label-red-subtle-foreground: var(--label-red-subtle-foreground);
  --color-label-red-border: var(--label-red-border);
  --color-label-rose: var(--label-rose);
  --color-label-rose-foreground: var(--label-rose-foreground);
  --color-label-rose-subtle: var(--label-rose-subtle);
  --color-label-rose-subtle-foreground: var(--label-rose-subtle-foreground);
  --color-label-rose-border: var(--label-rose-border);
  --color-label-orange: var(--label-orange);
  --color-label-orange-foreground: var(--label-orange-foreground);
  --color-label-orange-subtle: var(--label-orange-subtle);
  --color-label-orange-subtle-foreground: var(--label-orange-subtle-foreground);
  --color-label-orange-border: var(--label-orange-border);
  --color-label-amber: var(--label-amber);
  --color-label-amber-foreground: var(--label-amber-foreground);
  --color-label-amber-subtle: var(--label-amber-subtle);
  --color-label-amber-subtle-foreground: var(--label-amber-subtle-foreground);
  --color-label-amber-border: var(--label-amber-border);
  --color-label-yellow: var(--label-yellow);
  --color-label-yellow-foreground: var(--label-yellow-foreground);
  --color-label-yellow-subtle: var(--label-yellow-subtle);
  --color-label-yellow-subtle-foreground: var(--label-yellow-subtle-foreground);
  --color-label-yellow-border: var(--label-yellow-border);
  --color-label-lime: var(--label-lime);
  --color-label-lime-foreground: var(--label-lime-foreground);
  --color-label-lime-subtle: var(--label-lime-subtle);
  --color-label-lime-subtle-foreground: var(--label-lime-subtle-foreground);
  --color-label-lime-border: var(--label-lime-border);
  --color-label-green: var(--label-green);
  --color-label-green-foreground: var(--label-green-foreground);
  --color-label-green-subtle: var(--label-green-subtle);
  --color-label-green-subtle-foreground: var(--label-green-subtle-foreground);
  --color-label-green-border: var(--label-green-border);
  --color-label-emerald: var(--label-emerald);
  --color-label-emerald-foreground: var(--label-emerald-foreground);
  --color-label-emerald-subtle: var(--label-emerald-subtle);
  --color-label-emerald-subtle-foreground: var(--label-emerald-subtle-foreground);
  --color-label-emerald-border: var(--label-emerald-border);
  --color-label-teal: var(--label-teal);
  --color-label-teal-foreground: var(--label-teal-foreground);
  --color-label-teal-subtle: var(--label-teal-subtle);
  --color-label-teal-subtle-foreground: var(--label-teal-subtle-foreground);
  --color-label-teal-border: var(--label-teal-border);
  --color-label-cyan: var(--label-cyan);
  --color-label-cyan-foreground: var(--label-cyan-foreground);
  --color-label-cyan-subtle: var(--label-cyan-subtle);
  --color-label-cyan-subtle-foreground: var(--label-cyan-subtle-foreground);
  --color-label-cyan-border: var(--label-cyan-border);
  --color-label-sky: var(--label-sky);
  --color-label-sky-foreground: var(--label-sky-foreground);
  --color-label-sky-subtle: var(--label-sky-subtle);
  --color-label-sky-subtle-foreground: var(--label-sky-subtle-foreground);
  --color-label-sky-border: var(--label-sky-border);
  --color-label-blue: var(--label-blue);
  --color-label-blue-foreground: var(--label-blue-foreground);
  --color-label-blue-subtle: var(--label-blue-subtle);
  --color-label-blue-subtle-foreground: var(--label-blue-subtle-foreground);
  --color-label-blue-border: var(--label-blue-border);
  --color-label-indigo: var(--label-indigo);
  --color-label-indigo-foreground: var(--label-indigo-foreground);
  --color-label-indigo-subtle: var(--label-indigo-subtle);
  --color-label-indigo-subtle-foreground: var(--label-indigo-subtle-foreground);
  --color-label-indigo-border: var(--label-indigo-border);
  --color-label-violet: var(--label-violet);
  --color-label-violet-foreground: var(--label-violet-foreground);
  --color-label-violet-subtle: var(--label-violet-subtle);
  --color-label-violet-subtle-foreground: var(--label-violet-subtle-foreground);
  --color-label-violet-border: var(--label-violet-border);
  --color-label-purple: var(--label-purple);
  --color-label-purple-foreground: var(--label-purple-foreground);
  --color-label-purple-subtle: var(--label-purple-subtle);
  --color-label-purple-subtle-foreground: var(--label-purple-subtle-foreground);
  --color-label-purple-border: var(--label-purple-border);
  --color-label-fuchsia: var(--label-fuchsia);
  --color-label-fuchsia-foreground: var(--label-fuchsia-foreground);
  --color-label-fuchsia-subtle: var(--label-fuchsia-subtle);
  --color-label-fuchsia-subtle-foreground: var(--label-fuchsia-subtle-foreground);
  --color-label-fuchsia-border: var(--label-fuchsia-border);
  --color-label-pink: var(--label-pink);
  --color-label-pink-foreground: var(--label-pink-foreground);
  --color-label-pink-subtle: var(--label-pink-subtle);
  --color-label-pink-subtle-foreground: var(--label-pink-subtle-foreground);
  --color-label-pink-border: var(--label-pink-border);
}

:root {
  --label-gray: oklch(44.6% 0.03 256.802);
  --label-gray-foreground: oklch(1 0 0);
  --label-gray-subtle: oklch(96.7% 0.003 264.542);
  --label-gray-subtle-foreground: oklch(27.8% 0.033 256.848);
  --label-gray-border: oklch(87.2% 0.01 258.338);
  --label-slate: oklch(44.6% 0.043 257.281);
  --label-slate-foreground: oklch(1 0 0);
  --label-slate-subtle: oklch(96.8% 0.007 247.896);
  --label-slate-subtle-foreground: oklch(27.9% 0.041 260.031);
  --label-slate-border: oklch(86.9% 0.022 252.894);
  --label-stone: oklch(44.4% 0.011 73.639);
  --label-stone-foreground: oklch(1 0 0);
  --label-stone-subtle: oklch(97% 0.001 106.424);
  --label-stone-subtle-foreground: oklch(26.8% 0.007 34.298);
  --label-stone-border: oklch(86.9% 0.005 56.366);
  --label-red: oklch(57.7% 0.245 27.325);
  --label-red-foreground: oklch(1 0 0);
  --label-red-subtle: oklch(93.6% 0.032 17.717);
  --label-red-subtle-foreground: oklch(44.4% 0.177 26.899);
  --label-red-border: oklch(80.8% 0.114 19.571);
  --label-rose: oklch(58.6% 0.253 17.585);
  --label-rose-foreground: oklch(1 0 0);
  --label-rose-subtle: oklch(94.1% 0.03 12.58);
  --label-rose-subtle-foreground: oklch(45.5% 0.188 13.697);
  --label-rose-border: oklch(81% 0.117 11.638);
  --label-orange: oklch(55.3% 0.195 38.402);
  --label-orange-foreground: oklch(1 0 0);
  --label-orange-subtle: oklch(95.4% 0.038 75.164);
  --label-orange-subtle-foreground: oklch(47% 0.157 37.304);
  --label-orange-border: oklch(83.7% 0.128 66.29);
  --label-amber: oklch(66.6% 0.179 58.318);
  --label-amber-foreground: oklch(27.9% 0.077 45.635);
  --label-amber-subtle: oklch(96.2% 0.059 95.617);
  --label-amber-subtle-foreground: oklch(47.3% 0.137 46.201);
  --label-amber-border: oklch(87.9% 0.169 91.605);
  --label-yellow: oklch(68.1% 0.162 75.834);
  --label-yellow-foreground: oklch(28.6% 0.066 53.813);
  --label-yellow-subtle: oklch(97.3% 0.071 103.193);
  --label-yellow-subtle-foreground: oklch(47.6% 0.114 61.907);
  --label-yellow-border: oklch(90.5% 0.182 98.111);
  --label-lime: oklch(64.8% 0.2 131.684);
  --label-lime-foreground: oklch(27.4% 0.072 132.109);
  --label-lime-subtle: oklch(96.7% 0.067 122.328);
  --label-lime-subtle-foreground: oklch(45.3% 0.124 130.933);
  --label-lime-border: oklch(89.7% 0.196 126.665);
  --label-green: oklch(62.7% 0.194 149.214);
  --label-green-foreground: oklch(26.6% 0.065 152.934);
  --label-green-subtle: oklch(96.2% 0.044 156.743);
  --label-green-subtle-foreground: oklch(44.8% 0.119 151.328);
  --label-green-border: oklch(87.1% 0.15 154.449);
  --label-emerald: oklch(50.8% 0.118 165.612);
  --label-emerald-foreground: oklch(1 0 0);
  --label-emerald-subtle: oklch(95% 0.052 163.051);
  --label-emerald-subtle-foreground: oklch(43.2% 0.095 166.913);
  --label-emerald-border: oklch(84.5% 0.143 164.978);
  --label-teal: oklch(51.1% 0.096 186.391);
  --label-teal-foreground: oklch(1 0 0);
  --label-teal-subtle: oklch(95.3% 0.051 180.801);
  --label-teal-subtle-foreground: oklch(43.7% 0.078 188.216);
  --label-teal-border: oklch(85.5% 0.138 181.071);
  --label-cyan: oklch(52% 0.105 223.128);
  --label-cyan-foreground: oklch(1 0 0);
  --label-cyan-subtle: oklch(95.6% 0.045 203.388);
  --label-cyan-subtle-foreground: oklch(45% 0.085 224.283);
  --label-cyan-border: oklch(86.5% 0.127 207.078);
  --label-sky: oklch(50% 0.134 242.749);
  --label-sky-foreground: oklch(1 0 0);
  --label-sky-subtle: oklch(95.1% 0.026 236.824);
  --label-sky-subtle-foreground: oklch(44.3% 0.11 240.79);
  --label-sky-border: oklch(82.8% 0.111 230.318);
  --label-blue: oklch(54.6% 0.245 262.881);
  --label-blue-foreground: oklch(1 0 0);
  --label-blue-subtle: oklch(93.2% 0.032 255.585);
  --label-blue-subtle-foreground: oklch(42.4% 0.199 265.638);
  --label-blue-border: oklch(80.9% 0.105 251.813);
  --label-indigo: oklch(51.1% 0.262 276.966);
  --label-indigo-foreground: oklch(1 0 0);
  --label-indigo-subtle: oklch(93% 0.034 272.788);
  --label-indigo-subtle-foreground: oklch(39.8% 0.195 277.366);
  --label-indigo-border: oklch(78.5% 0.115 274.713);
  --label-violet: oklch(54.1% 0.281 293.009);
  --label-violet-foreground: oklch(1 0 0);
  --label-violet-subtle: oklch(94.3% 0.029 294.588);
  --label-violet-subtle-foreground: oklch(43.2% 0.232 292.759);
  --label-violet-border: oklch(81.1% 0.111 293.571);
  --label-purple: oklch(55.8% 0.288 302.321);
  --label-purple-foreground: oklch(1 0 0);
  --label-purple-subtle: oklch(94.6% 0.033 307.174);
  --label-purple-subtle-foreground: oklch(43.8% 0.218 303.724);
  --label-purple-border: oklch(82.7% 0.119 306.383);
  --label-fuchsia: oklch(59.1% 0.293 322.896);
  --label-fuchsia-foreground: oklch(1 0 0);
  --label-fuchsia-subtle: oklch(95.2% 0.037 318.852);
  --label-fuchsia-subtle-foreground: oklch(45.2% 0.211 324.591);
  --label-fuchsia-border: oklch(83.3% 0.145 321.434);
  --label-pink: oklch(59.2% 0.249 0.584);
  --label-pink-foreground: oklch(1 0 0);
  --label-pink-subtle: oklch(94.8% 0.028 342.258);
  --label-pink-subtle-foreground: oklch(45.9% 0.187 3.815);
  --label-pink-border: oklch(82.3% 0.12 346.018);
}

.dark {
  --label-gray: oklch(70.7% 0.022 261.325);
  --label-gray-foreground: oklch(13% 0.028 261.692);
  --label-gray-subtle: oklch(27.8% 0.033 256.848);
  --label-gray-subtle-foreground: oklch(92.8% 0.006 264.531);
  --label-gray-border: oklch(37.3% 0.034 259.733);
  --label-slate: oklch(70.4% 0.04 256.788);
  --label-slate-foreground: oklch(12.9% 0.042 264.695);
  --label-slate-subtle: oklch(27.9% 0.041 260.031);
  --label-slate-subtle-foreground: oklch(92.9% 0.013 255.508);
  --label-slate-border: oklch(37.2% 0.044 257.287);
  --label-stone: oklch(70.9% 0.01 56.259);
  --label-stone-foreground: oklch(14.7% 0.004 49.25);
  --label-stone-subtle: oklch(26.8% 0.007 34.298);
  --label-stone-subtle-foreground: oklch(92.3% 0.003 48.717);
  --label-stone-border: oklch(37.4% 0.01 67.558);
  --label-red: oklch(70.4% 0.191 22.216);
  --label-red-foreground: oklch(25.8% 0.092 26.042);
  --label-red-subtle: oklch(25.8% 0.092 26.042);
  --label-red-subtle-foreground: oklch(88.5% 0.062 18.334);
  --label-red-border: oklch(44.4% 0.177 26.899);
  --label-rose: oklch(71.2% 0.194 13.428);
  --label-rose-foreground: oklch(27.1% 0.105 12.094);
  --label-rose-subtle: oklch(27.1% 0.105 12.094);
  --label-rose-subtle-foreground: oklch(89.2% 0.058 10.001);
  --label-rose-border: oklch(45.5% 0.188 13.697);
  --label-orange: oklch(75% 0.183 55.934);
  --label-orange-foreground: oklch(26.6% 0.079 36.259);
  --label-orange-subtle: oklch(26.6% 0.079 36.259);
  --label-orange-subtle-foreground: oklch(90.1% 0.076 70.697);
  --label-orange-border: oklch(47% 0.157 37.304);
  --label-amber: oklch(82.8% 0.189 84.429);
  --label-amber-foreground: oklch(27.9% 0.077 45.635);
  --label-amber-subtle: oklch(27.9% 0.077 45.635);
  --label-amber-subtle-foreground: oklch(92.4% 0.12 95.746);
  --label-amber-border: oklch(47.3% 0.137 46.201);
  --label-yellow: oklch(85.2% 0.199 91.936);
  --label-yellow-foreground: oklch(28.6% 0.066 53.813);
  --label-yellow-subtle: oklch(28.6% 0.066 53.813);
  --label-yellow-subtle-foreground: oklch(94.5% 0.129 101.54);
  --label-yellow-border: oklch(47.6% 0.114 61.907);
  --label-lime: oklch(84.1% 0.238 128.85);
  --label-lime-foreground: oklch(27.4% 0.072 132.109);
  --label-lime-subtle: oklch(27.4% 0.072 132.109);
  --label-lime-subtle-foreground: oklch(93.8% 0.127 124.321);
  --label-lime-border: oklch(45.3% 0.124 130.933);
  --label-green: oklch(79.2% 0.209 151.711);
  --label-green-foreground: oklch(26.6% 0.065 152.934);
  --label-green-subtle: oklch(26.6% 0.065 152.934);
  --label-green-subtle-foreground: oklch(92.5% 0.084 155.995);
  --label-green-border: oklch(44.8% 0.119 151.328);
  --label-emerald: oklch(76.5% 0.177 163.223);
  --label-emerald-foreground: oklch(26.2% 0.051 172.552);
  --label-emerald-subtle: oklch(26.2% 0.051 172.552);
  --label-emerald-subtle-foreground: oklch(90.5% 0.093 164.15);
  --label-emerald-border: oklch(43.2% 0.095 166.913);
  --label-teal: oklch(77.7% 0.152 181.912);
  --label-teal-foreground: oklch(27.7% 0.046 192.524);
  --label-teal-subtle: oklch(27.7% 0.046 192.524);
  --label-teal-subtle-foreground: oklch(91% 0.096 180.426);
  --label-teal-border: oklch(43.7% 0.078 188.216);
  --label-cyan: oklch(78.9% 0.154 211.53);
  --label-cyan-foreground: oklch(30.2% 0.056 229.695);
  --label-cyan-subtle: oklch(30.2% 0.056 229.695);
  --label-cyan-subtle-foreground: oklch(91.7% 0.08 205.041);
  --label-cyan-border: oklch(45% 0.085 224.283);
  --label-sky: oklch(74.6% 0.16 232.661);
  --label-sky-foreground: oklch(29.3% 0.066 243.157);
  --label-sky-subtle: oklch(29.3% 0.066 243.157);
  --label-sky-subtle-foreground: oklch(90.1% 0.058 230.902);
  --label-sky-border: oklch(44.3% 0.11 240.79);
  --label-blue: oklch(70.7% 0.165 254.624);
  --label-blue-foreground: oklch(28.2% 0.091 267.935);
  --label-blue-subtle: oklch(28.2% 0.091 267.935);
  --label-blue-subtle-foreground: oklch(88.2% 0.059 254.128);
  --label-blue-border: oklch(42.4% 0.199 265.638);
  --label-indigo: oklch(67.3% 0.182 276.935);
  --label-indigo-foreground: oklch(25.7% 0.09 281.288);
  --label-indigo-subtle: oklch(25.7% 0.09 281.288);
  --label-indigo-subtle-foreground: oklch(87% 0.065 274.039);
  --label-indigo-border: oklch(39.8% 0.195 277.366);
  --label-violet: oklch(70.2% 0.183 293.541);
  --label-violet-foreground: oklch(28.3% 0.141 291.089);
  --label-violet-subtle: oklch(28.3% 0.141 291.089);
  --label-violet-subtle-foreground: oklch(89.4% 0.057 293.283);
  --label-violet-border: oklch(43.2% 0.232 292.759);
  --label-purple: oklch(71.4% 0.203 305.504);
  --label-purple-foreground: oklch(29.1% 0.149 302.717);
  --label-purple-subtle: oklch(29.1% 0.149 302.717);
  --label-purple-subtle-foreground: oklch(90.2% 0.063 306.703);
  --label-purple-border: oklch(43.8% 0.218 303.724);
  --label-fuchsia: oklch(74% 0.238 322.16);
  --label-fuchsia-foreground: oklch(29.3% 0.136 325.661);
  --label-fuchsia-subtle: oklch(29.3% 0.136 325.661);
  --label-fuchsia-subtle-foreground: oklch(90.3% 0.076 319.62);
  --label-fuchsia-border: oklch(45.2% 0.211 324.591);
  --label-pink: oklch(71.8% 0.202 349.761);
  --label-pink-foreground: oklch(28.4% 0.109 3.907);
  --label-pink-subtle: oklch(28.4% 0.109 3.907);
  --label-pink-subtle-foreground: oklch(89.9% 0.061 343.231);
  --label-pink-border: oklch(45.9% 0.187 3.815);
}
