/* Tema claro WebGenial (branco + gradiente azul → roxo) — carregado em todas as páginas logo após o CDN do Tailwind.
   As paletas do Tailwind (ver /js/theme.js) leem estas variáveis (canais RGB, para funcionar com /opacidade).
   Regra das cores cromáticas: tons 50↔950, 100↔900, 200↔800, 300↔700 trocados e 400 = 600 original, assim as
   classes escritas para o tema escuro (text-emerald-300, bg-amber-900/20…) ficam legíveis no fundo branco.
   gray: 950 = fundo da página/inputs, 900 = cartões, 800 = bordas, 400–100 = textos. "white" = tinta escura. */
:root {
    color-scheme: light;
    --wg-red-50:69 10 10;
    --wg-red-100:127 29 29;
    --wg-red-200:153 27 27;
    --wg-red-300:185 28 28;
    --wg-red-400:220 38 38;
    --wg-red-500:239 68 68;
    --wg-red-600:220 38 38;
    --wg-red-700:252 165 165;
    --wg-red-800:254 202 202;
    --wg-red-900:254 226 226;
    --wg-red-950:254 242 242;
    --wg-orange-50:67 20 7;
    --wg-orange-100:124 45 18;
    --wg-orange-200:154 52 18;
    --wg-orange-300:194 65 12;
    --wg-orange-400:234 88 12;
    --wg-orange-500:249 115 22;
    --wg-orange-600:234 88 12;
    --wg-orange-700:253 186 116;
    --wg-orange-800:254 215 170;
    --wg-orange-900:255 237 213;
    --wg-orange-950:255 247 237;
    --wg-amber-50:69 26 3;
    --wg-amber-100:120 53 15;
    --wg-amber-200:146 64 14;
    --wg-amber-300:180 83 9;
    --wg-amber-400:217 119 6;
    --wg-amber-500:245 158 11;
    --wg-amber-600:217 119 6;
    --wg-amber-700:252 211 77;
    --wg-amber-800:253 230 138;
    --wg-amber-900:254 243 199;
    --wg-amber-950:255 251 235;
    --wg-yellow-50:66 32 6;
    --wg-yellow-100:113 63 18;
    --wg-yellow-200:133 77 14;
    --wg-yellow-300:161 98 7;
    --wg-yellow-400:202 138 4;
    --wg-yellow-500:234 179 8;
    --wg-yellow-600:202 138 4;
    --wg-yellow-700:253 224 71;
    --wg-yellow-800:254 240 138;
    --wg-yellow-900:254 249 195;
    --wg-yellow-950:254 252 232;
    --wg-lime-50:26 46 5;
    --wg-lime-100:54 83 20;
    --wg-lime-200:63 98 18;
    --wg-lime-300:77 124 15;
    --wg-lime-400:101 163 13;
    --wg-lime-500:132 204 22;
    --wg-lime-600:101 163 13;
    --wg-lime-700:190 242 100;
    --wg-lime-800:217 249 157;
    --wg-lime-900:236 252 203;
    --wg-lime-950:247 254 231;
    --wg-green-50:5 46 22;
    --wg-green-100:20 83 45;
    --wg-green-200:22 101 52;
    --wg-green-300:21 128 61;
    --wg-green-400:22 163 74;
    --wg-green-500:34 197 94;
    --wg-green-600:22 163 74;
    --wg-green-700:134 239 172;
    --wg-green-800:187 247 208;
    --wg-green-900:220 252 231;
    --wg-green-950:240 253 244;
    --wg-emerald-50:2 44 34;
    --wg-emerald-100:6 78 59;
    --wg-emerald-200:6 95 70;
    --wg-emerald-300:4 120 87;
    --wg-emerald-400:5 150 105;
    --wg-emerald-500:16 185 129;
    --wg-emerald-600:5 150 105;
    --wg-emerald-700:110 231 183;
    --wg-emerald-800:167 243 208;
    --wg-emerald-900:209 250 229;
    --wg-emerald-950:236 253 245;
    --wg-teal-50:4 47 46;
    --wg-teal-100:19 78 74;
    --wg-teal-200:17 94 89;
    --wg-teal-300:15 118 110;
    --wg-teal-400:13 148 136;
    --wg-teal-500:20 184 166;
    --wg-teal-600:13 148 136;
    --wg-teal-700:94 234 212;
    --wg-teal-800:153 246 228;
    --wg-teal-900:204 251 241;
    --wg-teal-950:240 253 250;
    --wg-cyan-50:8 51 68;
    --wg-cyan-100:22 78 99;
    --wg-cyan-200:21 94 117;
    --wg-cyan-300:14 116 144;
    --wg-cyan-400:8 145 178;
    --wg-cyan-500:6 182 212;
    --wg-cyan-600:8 145 178;
    --wg-cyan-700:103 232 249;
    --wg-cyan-800:165 243 252;
    --wg-cyan-900:207 250 254;
    --wg-cyan-950:236 254 255;
    --wg-sky-50:8 47 73;
    --wg-sky-100:12 74 110;
    --wg-sky-200:7 89 133;
    --wg-sky-300:3 105 161;
    --wg-sky-400:2 132 199;
    --wg-sky-500:14 165 233;
    --wg-sky-600:2 132 199;
    --wg-sky-700:125 211 252;
    --wg-sky-800:186 230 253;
    --wg-sky-900:224 242 254;
    --wg-sky-950:240 249 255;
    --wg-blue-50:23 37 84;
    --wg-blue-100:30 58 138;
    --wg-blue-200:30 64 175;
    --wg-blue-300:29 78 216;
    --wg-blue-400:37 99 235;
    --wg-blue-500:59 130 246;
    --wg-blue-600:37 99 235;
    --wg-blue-700:147 197 253;
    --wg-blue-800:191 219 254;
    --wg-blue-900:219 234 254;
    --wg-blue-950:239 246 255;
    --wg-indigo-50:30 27 75;
    --wg-indigo-100:49 46 129;
    --wg-indigo-200:55 48 163;
    --wg-indigo-300:67 56 202;
    --wg-indigo-400:79 70 229;
    --wg-indigo-500:99 102 241;
    --wg-indigo-600:79 70 229;
    --wg-indigo-700:165 180 252;
    --wg-indigo-800:199 210 254;
    --wg-indigo-900:224 231 255;
    --wg-indigo-950:238 242 255;
    --wg-violet-50:46 16 101;
    --wg-violet-100:76 29 149;
    --wg-violet-200:91 33 182;
    --wg-violet-300:109 40 217;
    --wg-violet-400:124 58 237;
    --wg-violet-500:139 92 246;
    --wg-violet-600:124 58 237;
    --wg-violet-700:196 181 253;
    --wg-violet-800:221 214 254;
    --wg-violet-900:237 233 254;
    --wg-violet-950:245 243 255;
    --wg-purple-50:59 7 100;
    --wg-purple-100:88 28 135;
    --wg-purple-200:107 33 168;
    --wg-purple-300:126 34 206;
    --wg-purple-400:147 51 234;
    --wg-purple-500:168 85 247;
    --wg-purple-600:147 51 234;
    --wg-purple-700:216 180 254;
    --wg-purple-800:233 213 255;
    --wg-purple-900:243 232 255;
    --wg-purple-950:250 245 255;
    --wg-fuchsia-50:74 4 78;
    --wg-fuchsia-100:112 26 117;
    --wg-fuchsia-200:134 25 143;
    --wg-fuchsia-300:162 28 175;
    --wg-fuchsia-400:192 38 211;
    --wg-fuchsia-500:217 70 239;
    --wg-fuchsia-600:192 38 211;
    --wg-fuchsia-700:240 171 252;
    --wg-fuchsia-800:245 208 254;
    --wg-fuchsia-900:250 232 255;
    --wg-fuchsia-950:253 244 255;
    --wg-pink-50:80 7 36;
    --wg-pink-100:131 24 67;
    --wg-pink-200:157 23 77;
    --wg-pink-300:190 24 93;
    --wg-pink-400:219 39 119;
    --wg-pink-500:236 72 153;
    --wg-pink-600:219 39 119;
    --wg-pink-700:249 168 212;
    --wg-pink-800:251 207 232;
    --wg-pink-900:252 231 243;
    --wg-pink-950:253 242 248;
    --wg-rose-50:76 5 25;
    --wg-rose-100:136 19 55;
    --wg-rose-200:159 18 57;
    --wg-rose-300:190 18 60;
    --wg-rose-400:225 29 72;
    --wg-rose-500:244 63 94;
    --wg-rose-600:225 29 72;
    --wg-rose-700:253 164 175;
    --wg-rose-800:254 205 211;
    --wg-rose-900:255 228 230;
    --wg-rose-950:255 241 242;
    --wg-brand-50:30 27 75;
    --wg-brand-100:40 36 110;
    --wg-brand-200:49 46 129;
    --wg-brand-300:55 48 163;
    --wg-brand-400:67 56 202;
    --wg-brand-500:79 70 229;
    --wg-brand-600:67 56 202;
    --wg-brand-700:165 180 252;
    --wg-brand-800:199 210 254;
    --wg-brand-900:224 231 255;
    --wg-brand-950:238 242 255;
    --wg-gray-50:13 16 23;
    --wg-gray-100:22 26 34;
    --wg-gray-200:38 43 53;
    --wg-gray-300:59 65 77;
    --wg-gray-400:82 88 102;
    --wg-gray-500:107 114 128;
    --wg-gray-600:138 145 157;
    --wg-gray-700:212 215 221;
    --wg-gray-800:230 232 236;
    --wg-gray-900:255 255 255;
    --wg-gray-950:245 246 248;
    --wg-slate-50:13 16 23;
    --wg-slate-100:22 26 34;
    --wg-slate-200:38 43 53;
    --wg-slate-300:59 65 77;
    --wg-slate-400:82 88 102;
    --wg-slate-500:107 114 128;
    --wg-slate-600:138 145 157;
    --wg-slate-700:212 215 221;
    --wg-slate-800:230 232 236;
    --wg-slate-900:255 255 255;
    --wg-slate-950:245 246 248;
    --wg-zinc-50:13 16 23;
    --wg-zinc-100:22 26 34;
    --wg-zinc-200:38 43 53;
    --wg-zinc-300:59 65 77;
    --wg-zinc-400:82 88 102;
    --wg-zinc-500:107 114 128;
    --wg-zinc-600:138 145 157;
    --wg-zinc-700:212 215 221;
    --wg-zinc-800:230 232 236;
    --wg-zinc-900:255 255 255;
    --wg-zinc-950:245 246 248;
    --wg-neutral-50:13 16 23;
    --wg-neutral-100:22 26 34;
    --wg-neutral-200:38 43 53;
    --wg-neutral-300:59 65 77;
    --wg-neutral-400:82 88 102;
    --wg-neutral-500:107 114 128;
    --wg-neutral-600:138 145 157;
    --wg-neutral-700:212 215 221;
    --wg-neutral-800:230 232 236;
    --wg-neutral-900:255 255 255;
    --wg-neutral-950:245 246 248;
    --wg-stone-50:13 16 23;
    --wg-stone-100:22 26 34;
    --wg-stone-200:38 43 53;
    --wg-stone-300:59 65 77;
    --wg-stone-400:82 88 102;
    --wg-stone-500:107 114 128;
    --wg-stone-600:138 145 157;
    --wg-stone-700:212 215 221;
    --wg-stone-800:230 232 236;
    --wg-stone-900:255 255 255;
    --wg-stone-950:245 246 248;
    --wg-white:17 21 28;
    
    --wg-ink: #11151c;
    --wg-primary: #4f46e5;
    --wg-primary-deep: #7c3aed;
    --wg-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
}

/* Blocos que mantêm a paleta original do Tailwind (telas simuladas dos guias, videochamada) */
:root[data-theme="dark"], .theme-classic, .tg-illu {
    --wg-red-50:254 242 242;
    --wg-red-100:254 226 226;
    --wg-red-200:254 202 202;
    --wg-red-300:252 165 165;
    --wg-red-400:248 113 113;
    --wg-red-500:239 68 68;
    --wg-red-600:220 38 38;
    --wg-red-700:185 28 28;
    --wg-red-800:153 27 27;
    --wg-red-900:127 29 29;
    --wg-red-950:69 10 10;
    --wg-orange-50:255 247 237;
    --wg-orange-100:255 237 213;
    --wg-orange-200:254 215 170;
    --wg-orange-300:253 186 116;
    --wg-orange-400:251 146 60;
    --wg-orange-500:249 115 22;
    --wg-orange-600:234 88 12;
    --wg-orange-700:194 65 12;
    --wg-orange-800:154 52 18;
    --wg-orange-900:124 45 18;
    --wg-orange-950:67 20 7;
    --wg-amber-50:255 251 235;
    --wg-amber-100:254 243 199;
    --wg-amber-200:253 230 138;
    --wg-amber-300:252 211 77;
    --wg-amber-400:251 191 36;
    --wg-amber-500:245 158 11;
    --wg-amber-600:217 119 6;
    --wg-amber-700:180 83 9;
    --wg-amber-800:146 64 14;
    --wg-amber-900:120 53 15;
    --wg-amber-950:69 26 3;
    --wg-yellow-50:254 252 232;
    --wg-yellow-100:254 249 195;
    --wg-yellow-200:254 240 138;
    --wg-yellow-300:253 224 71;
    --wg-yellow-400:250 204 21;
    --wg-yellow-500:234 179 8;
    --wg-yellow-600:202 138 4;
    --wg-yellow-700:161 98 7;
    --wg-yellow-800:133 77 14;
    --wg-yellow-900:113 63 18;
    --wg-yellow-950:66 32 6;
    --wg-lime-50:247 254 231;
    --wg-lime-100:236 252 203;
    --wg-lime-200:217 249 157;
    --wg-lime-300:190 242 100;
    --wg-lime-400:163 230 53;
    --wg-lime-500:132 204 22;
    --wg-lime-600:101 163 13;
    --wg-lime-700:77 124 15;
    --wg-lime-800:63 98 18;
    --wg-lime-900:54 83 20;
    --wg-lime-950:26 46 5;
    --wg-green-50:240 253 244;
    --wg-green-100:220 252 231;
    --wg-green-200:187 247 208;
    --wg-green-300:134 239 172;
    --wg-green-400:74 222 128;
    --wg-green-500:34 197 94;
    --wg-green-600:22 163 74;
    --wg-green-700:21 128 61;
    --wg-green-800:22 101 52;
    --wg-green-900:20 83 45;
    --wg-green-950:5 46 22;
    --wg-emerald-50:236 253 245;
    --wg-emerald-100:209 250 229;
    --wg-emerald-200:167 243 208;
    --wg-emerald-300:110 231 183;
    --wg-emerald-400:52 211 153;
    --wg-emerald-500:16 185 129;
    --wg-emerald-600:5 150 105;
    --wg-emerald-700:4 120 87;
    --wg-emerald-800:6 95 70;
    --wg-emerald-900:6 78 59;
    --wg-emerald-950:2 44 34;
    --wg-teal-50:240 253 250;
    --wg-teal-100:204 251 241;
    --wg-teal-200:153 246 228;
    --wg-teal-300:94 234 212;
    --wg-teal-400:45 212 191;
    --wg-teal-500:20 184 166;
    --wg-teal-600:13 148 136;
    --wg-teal-700:15 118 110;
    --wg-teal-800:17 94 89;
    --wg-teal-900:19 78 74;
    --wg-teal-950:4 47 46;
    --wg-cyan-50:236 254 255;
    --wg-cyan-100:207 250 254;
    --wg-cyan-200:165 243 252;
    --wg-cyan-300:103 232 249;
    --wg-cyan-400:34 211 238;
    --wg-cyan-500:6 182 212;
    --wg-cyan-600:8 145 178;
    --wg-cyan-700:14 116 144;
    --wg-cyan-800:21 94 117;
    --wg-cyan-900:22 78 99;
    --wg-cyan-950:8 51 68;
    --wg-sky-50:240 249 255;
    --wg-sky-100:224 242 254;
    --wg-sky-200:186 230 253;
    --wg-sky-300:125 211 252;
    --wg-sky-400:56 189 248;
    --wg-sky-500:14 165 233;
    --wg-sky-600:2 132 199;
    --wg-sky-700:3 105 161;
    --wg-sky-800:7 89 133;
    --wg-sky-900:12 74 110;
    --wg-sky-950:8 47 73;
    --wg-blue-50:239 246 255;
    --wg-blue-100:219 234 254;
    --wg-blue-200:191 219 254;
    --wg-blue-300:147 197 253;
    --wg-blue-400:96 165 250;
    --wg-blue-500:59 130 246;
    --wg-blue-600:37 99 235;
    --wg-blue-700:29 78 216;
    --wg-blue-800:30 64 175;
    --wg-blue-900:30 58 138;
    --wg-blue-950:23 37 84;
    --wg-indigo-50:238 242 255;
    --wg-indigo-100:224 231 255;
    --wg-indigo-200:199 210 254;
    --wg-indigo-300:165 180 252;
    --wg-indigo-400:129 140 248;
    --wg-indigo-500:99 102 241;
    --wg-indigo-600:79 70 229;
    --wg-indigo-700:67 56 202;
    --wg-indigo-800:55 48 163;
    --wg-indigo-900:49 46 129;
    --wg-indigo-950:30 27 75;
    --wg-violet-50:245 243 255;
    --wg-violet-100:237 233 254;
    --wg-violet-200:221 214 254;
    --wg-violet-300:196 181 253;
    --wg-violet-400:167 139 250;
    --wg-violet-500:139 92 246;
    --wg-violet-600:124 58 237;
    --wg-violet-700:109 40 217;
    --wg-violet-800:91 33 182;
    --wg-violet-900:76 29 149;
    --wg-violet-950:46 16 101;
    --wg-purple-50:250 245 255;
    --wg-purple-100:243 232 255;
    --wg-purple-200:233 213 255;
    --wg-purple-300:216 180 254;
    --wg-purple-400:192 132 252;
    --wg-purple-500:168 85 247;
    --wg-purple-600:147 51 234;
    --wg-purple-700:126 34 206;
    --wg-purple-800:107 33 168;
    --wg-purple-900:88 28 135;
    --wg-purple-950:59 7 100;
    --wg-fuchsia-50:253 244 255;
    --wg-fuchsia-100:250 232 255;
    --wg-fuchsia-200:245 208 254;
    --wg-fuchsia-300:240 171 252;
    --wg-fuchsia-400:232 121 249;
    --wg-fuchsia-500:217 70 239;
    --wg-fuchsia-600:192 38 211;
    --wg-fuchsia-700:162 28 175;
    --wg-fuchsia-800:134 25 143;
    --wg-fuchsia-900:112 26 117;
    --wg-fuchsia-950:74 4 78;
    --wg-pink-50:253 242 248;
    --wg-pink-100:252 231 243;
    --wg-pink-200:251 207 232;
    --wg-pink-300:249 168 212;
    --wg-pink-400:244 114 182;
    --wg-pink-500:236 72 153;
    --wg-pink-600:219 39 119;
    --wg-pink-700:190 24 93;
    --wg-pink-800:157 23 77;
    --wg-pink-900:131 24 67;
    --wg-pink-950:80 7 36;
    --wg-rose-50:255 241 242;
    --wg-rose-100:255 228 230;
    --wg-rose-200:254 205 211;
    --wg-rose-300:253 164 175;
    --wg-rose-400:251 113 133;
    --wg-rose-500:244 63 94;
    --wg-rose-600:225 29 72;
    --wg-rose-700:190 18 60;
    --wg-rose-800:159 18 57;
    --wg-rose-900:136 19 55;
    --wg-rose-950:76 5 25;
    --wg-brand-50:238 242 255;
    --wg-brand-100:224 231 255;
    --wg-brand-200:199 210 254;
    --wg-brand-300:165 180 252;
    --wg-brand-400:129 140 248;
    --wg-brand-500:79 70 229;
    --wg-brand-600:67 56 202;
    --wg-brand-700:55 48 163;
    --wg-brand-800:49 46 129;
    --wg-brand-900:40 36 110;
    --wg-brand-950:30 27 75;
    --wg-gray-50:249 250 251;
    --wg-gray-100:243 244 246;
    --wg-gray-200:229 231 235;
    --wg-gray-300:209 213 219;
    --wg-gray-400:156 163 175;
    --wg-gray-500:107 114 128;
    --wg-gray-600:75 85 99;
    --wg-gray-700:55 65 81;
    --wg-gray-800:31 41 55;
    --wg-gray-900:17 24 39;
    --wg-gray-950:3 7 18;
    --wg-slate-50:248 250 252;
    --wg-slate-100:241 245 249;
    --wg-slate-200:226 232 240;
    --wg-slate-300:203 213 225;
    --wg-slate-400:148 163 184;
    --wg-slate-500:100 116 139;
    --wg-slate-600:71 85 105;
    --wg-slate-700:51 65 85;
    --wg-slate-800:30 41 59;
    --wg-slate-900:15 23 42;
    --wg-slate-950:2 6 23;
    --wg-zinc-50:250 250 250;
    --wg-zinc-100:244 244 245;
    --wg-zinc-200:228 228 231;
    --wg-zinc-300:212 212 216;
    --wg-zinc-400:161 161 170;
    --wg-zinc-500:113 113 122;
    --wg-zinc-600:82 82 91;
    --wg-zinc-700:63 63 70;
    --wg-zinc-800:39 39 42;
    --wg-zinc-900:24 24 27;
    --wg-zinc-950:9 9 11;
    --wg-neutral-50:250 250 250;
    --wg-neutral-100:245 245 245;
    --wg-neutral-200:229 229 229;
    --wg-neutral-300:212 212 212;
    --wg-neutral-400:163 163 163;
    --wg-neutral-500:115 115 115;
    --wg-neutral-600:82 82 82;
    --wg-neutral-700:64 64 64;
    --wg-neutral-800:38 38 38;
    --wg-neutral-900:23 23 23;
    --wg-neutral-950:10 10 10;
    --wg-stone-50:250 250 249;
    --wg-stone-100:245 245 244;
    --wg-stone-200:231 229 228;
    --wg-stone-300:214 211 209;
    --wg-stone-400:168 162 158;
    --wg-stone-500:120 113 108;
    --wg-stone-600:87 83 78;
    --wg-stone-700:68 64 60;
    --wg-stone-800:41 37 36;
    --wg-stone-900:28 25 23;
    --wg-stone-950:12 10 9;
    --wg-white:255 255 255;
    
}

/* Um cartão claro dentro de um bloco sólido volta à tinta escura */
:is([class~="bg-gray-900"], [class~="bg-gray-950"], [class~="bg-gray-800"]) { --wg-white: 17 21 28; }
/* Fundos sólidos coloridos: "text-white" continua branco (inclusive nos ícones dentro do botão) */
/* (vem depois: se o elemento tiver as duas classes, vale o fundo sólido) */
:is([class~="bg-red-500"],[class~="from-red-500"],[class~="bg-red-600"],[class~="from-red-600"],[class~="bg-orange-500"],[class~="from-orange-500"],[class~="bg-orange-600"],[class~="from-orange-600"],[class~="bg-amber-500"],[class~="from-amber-500"],[class~="bg-amber-600"],[class~="from-amber-600"],[class~="bg-yellow-500"],[class~="from-yellow-500"],[class~="bg-yellow-600"],[class~="from-yellow-600"],[class~="bg-lime-500"],[class~="from-lime-500"],[class~="bg-lime-600"],[class~="from-lime-600"],[class~="bg-green-500"],[class~="from-green-500"],[class~="bg-green-600"],[class~="from-green-600"],[class~="bg-emerald-500"],[class~="from-emerald-500"],[class~="bg-emerald-600"],[class~="from-emerald-600"],[class~="bg-teal-500"],[class~="from-teal-500"],[class~="bg-teal-600"],[class~="from-teal-600"],[class~="bg-cyan-500"],[class~="from-cyan-500"],[class~="bg-cyan-600"],[class~="from-cyan-600"],[class~="bg-sky-500"],[class~="from-sky-500"],[class~="bg-sky-600"],[class~="from-sky-600"],[class~="bg-blue-500"],[class~="from-blue-500"],[class~="bg-blue-600"],[class~="from-blue-600"],[class~="bg-indigo-500"],[class~="from-indigo-500"],[class~="bg-indigo-600"],[class~="from-indigo-600"],[class~="bg-violet-500"],[class~="from-violet-500"],[class~="bg-violet-600"],[class~="from-violet-600"],[class~="bg-purple-500"],[class~="from-purple-500"],[class~="bg-purple-600"],[class~="from-purple-600"],[class~="bg-fuchsia-500"],[class~="from-fuchsia-500"],[class~="bg-fuchsia-600"],[class~="from-fuchsia-600"],[class~="bg-pink-500"],[class~="from-pink-500"],[class~="bg-pink-600"],[class~="from-pink-600"],[class~="bg-rose-500"],[class~="from-rose-500"],[class~="bg-rose-600"],[class~="from-rose-600"],[class~="bg-brand-500"],[class~="from-brand-500"],[class~="bg-brand-600"],[class~="from-brand-600"],[class~="from-red-400"],[class~="from-orange-400"],[class~="from-amber-400"],[class~="from-yellow-400"],[class~="from-lime-400"],[class~="from-green-400"],[class~="from-emerald-400"],[class~="from-teal-400"],[class~="from-cyan-400"],[class~="from-sky-400"],[class~="from-blue-400"],[class~="from-indigo-400"],[class~="from-violet-400"],[class~="from-purple-400"],[class~="from-fuchsia-400"],[class~="from-pink-400"],[class~="from-rose-400"],[class~="from-brand-400"],[class~="bg-accent-purple"],[class~="from-accent-purple"],[class~="bg-accent-emerald"],[class~="from-accent-emerald"],[class~="bg-accent-rose"],[class~="from-accent-rose"],[class~="bg-accent-amber"],[class~="from-accent-amber"]),
:is([class~="hover:bg-red-500"]:hover,[class~="hover:bg-red-600"]:hover,[class~="hover:bg-orange-500"]:hover,[class~="hover:bg-orange-600"]:hover,[class~="hover:bg-amber-500"]:hover,[class~="hover:bg-amber-600"]:hover,[class~="hover:bg-yellow-500"]:hover,[class~="hover:bg-yellow-600"]:hover,[class~="hover:bg-lime-500"]:hover,[class~="hover:bg-lime-600"]:hover,[class~="hover:bg-green-500"]:hover,[class~="hover:bg-green-600"]:hover,[class~="hover:bg-emerald-500"]:hover,[class~="hover:bg-emerald-600"]:hover,[class~="hover:bg-teal-500"]:hover,[class~="hover:bg-teal-600"]:hover,[class~="hover:bg-cyan-500"]:hover,[class~="hover:bg-cyan-600"]:hover,[class~="hover:bg-sky-500"]:hover,[class~="hover:bg-sky-600"]:hover,[class~="hover:bg-blue-500"]:hover,[class~="hover:bg-blue-600"]:hover,[class~="hover:bg-indigo-500"]:hover,[class~="hover:bg-indigo-600"]:hover,[class~="hover:bg-violet-500"]:hover,[class~="hover:bg-violet-600"]:hover,[class~="hover:bg-purple-500"]:hover,[class~="hover:bg-purple-600"]:hover,[class~="hover:bg-fuchsia-500"]:hover,[class~="hover:bg-fuchsia-600"]:hover,[class~="hover:bg-pink-500"]:hover,[class~="hover:bg-pink-600"]:hover,[class~="hover:bg-rose-500"]:hover,[class~="hover:bg-rose-600"]:hover,[class~="hover:bg-brand-500"]:hover,[class~="hover:bg-brand-600"]:hover) { --wg-white: 255 255 255; }
.brand-gradient { --wg-white: 255 255 255; }
.theme-classic, .theme-classic *, .tg-illu, .tg-illu * { --wg-white: 255 255 255; }

/* Texto escuro sobre botões claros (amber/emerald/cyan-500 com text-gray-950) */
.text-gray-950, .text-gray-900 { color: #11151c !important; }
.text-gray-800 { color: #262b35 !important; }
.theme-classic { color: #f3f4f6; }

/* Pílulas brancas com texto colorido escuro (escritas para o tema escuro) */
:is([class~="bg-white"], [class~="bg-white/90"]):is([class~="text-brand-700"], [class~="text-indigo-700"]) { background-color: #fff !important; color: #4338ca !important; }

html { background-color: #f5f6f8; }
::selection { background: #4f46e5; color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f5f6f8; }
::-webkit-scrollbar-thumb { background: #d4d7dd; border-radius: 999px; border: 2px solid #f5f6f8; }
::-webkit-scrollbar-thumb:hover { background: #b9bec7; }
* { scrollbar-color: #d4d7dd transparent; }

/* Painel de vidro (cabeçalho, menus): branco translúcido com borda fina e sombra suave */
.glass-panel {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border: 1px solid rgba(17, 21, 28, 0.07);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -12px rgba(16, 24, 40, 0.08);
}
.gradient-text {
    background: linear-gradient(120deg, #2563eb 0%, #4f46e5 50%, #9333ea 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
/* Gradiente da marca (CTAs principais, logo) */
.brand-gradient { background-image: var(--wg-gradient) !important; color: #fff !important; }

/* Cartões: sombra discreta (sem sobrescrever as classes shadow-* do Tailwind) */
:where([class~="bg-gray-900"][class~="border"][class*="rounded-"]) {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.03);
}
/* Campos: fundo cinza claro e branco ao focar */
:is(input, textarea, select)[class~="bg-gray-950"]:focus { background-color: #fff !important; }
:is(input, textarea, select):focus-visible { outline-color: #4f46e5; }

/* Overlays de modal um pouco mais leves no tema claro */
[class~="bg-black/70"], [class~="bg-black/80"] { background-color: rgba(13, 16, 23, 0.55) !important; }
.fixed.inset-0[class~="bg-gray-950/85"] { background-color: rgba(13, 16, 23, 0.5) !important; }

/* Preferência do visitante: o tema claro continua sendo o padrão. */
html[data-theme="dark"] { color-scheme: dark; background: #111827; }
html[data-theme="dark"] .glass-panel { background: rgba(17,24,39,.9) !important; border-color: #374151; }
html[data-theme="dark"] .lp-card { background: #1f2937; border-color: #374151; }
html[data-theme="dark"] :is(input,textarea,select)[class~="bg-gray-950"]:focus { background: #1f2937 !important; }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: #111827; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #4b5563; border-color: #111827; }
.wg-theme-toggle { position: fixed; bottom: 18px; left: 18px; z-index: 70; border: 1px solid rgb(var(--wg-gray-800)); border-radius: 99px; padding: 10px 15px; background: rgb(var(--wg-gray-900)); color: rgb(var(--wg-white)); box-shadow: 0 4px 18px #11182718; font: 600 12px sans-serif; cursor: pointer; }
.wg-theme-toggle:focus-visible { outline: 3px solid #818cf8; outline-offset: 3px; }

html[data-theme="dark"] body { background-color: #111827; color: #e5e7eb; }
:root[data-theme="dark"] :is([class~="bg-gray-900"],[class~="bg-gray-950"],[class~="bg-gray-800"]) { --wg-white: 255 255 255; }

/* Contraste do texto sobre superfícies que usam aliases e opacidades. */
html[data-theme="dark"] { --wg-ink: #f3f4f6; }
html[data-theme="dark"] :is([class~="bg-darkcard"], [class~="bg-darkbg"]) { --wg-white: 255 255 255; }
html[data-theme="dark"] .gradient-text { background-image: linear-gradient(120deg,#93b4ff,#b2a7ff,#d8a7ff) !important; }
@media (max-width: 640px) { .wg-theme-toggle { bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; padding: 9px 12px; font-size: 11px; } }

/* Aparência: controle compacto com rótulo acessível e descrição ao passar o cursor. */
button.wg-theme-toggle { width:44px; height:44px; min-width:44px; padding:10px; border-radius:50%; display:grid; place-items:center; }
.wg-theme-toggle svg { width:22px; height:22px; }
.wg-theme-toggle:focus-visible { outline:3px solid #818cf8; outline-offset:4px; }
