/* Tema claro/escuro (2026-10-08). GERADO por docs/specs/2026-10-08-modo-escuro/gerar_tokens.py —
   não edite à mão: ajuste overrides_escuro.py e rode "python gerar_tokens.py escuro".
   Claro = valores ORIGINAIS de cada literal (idêntico por construção). Regra pra código novo:
   toda cor nova usa var(--...) (ver spec.md). */
/* ==SGP-TOKENS-CLARO-INICIO== */
:root {
  --fundo-f4f5f7: #f4f5f7;
  --fundo-00284d: #00284d;
  --texto-white: white;
  --fundo-e0a800: #e0a800;
  --texto-1c2430: #1c2430;
  --fundo-0e8f8b: #0e8f8b;
  --fundo-rgba-255-255-255-0-15: rgba(255,255,255,.15);
  --fundo-white: white;
  --sombra-rgba-0-0-0-0-2: rgba(0,0,0,.2);
  --borda-eee: #eee;
  --borda-e2e5eb: #e2e5eb;
  --texto-555: #555;
  --texto-00284d: #00284d;
  --borda-00284d: #00284d;
  --borda-ccd: #ccd;
  --fundo-0067ff: #0067ff;
  --fundo-0055d4: #0055d4;
  --texto-fff: #fff;
  --fundo-f8f9fb: #f8f9fb;
  --fundo-ffedd9: #ffedd9;
  --fundo-fff: #fff;
  --texto-1f5fa8: #1f5fa8;
  --fundo-f1f5fa: #f1f5fa;
  --borda-d5dfec: #d5dfec;
  --texto-223: #223;
  --texto-1b6e2d: #1b6e2d;
  --texto-7a5600: #7a5600;
  --texto-a12626: #a12626;
  --fundo-fff8e1: #fff8e1;
  --borda-f0d98a: #f0d98a;
  --texto-6b5200: #6b5200;
  --texto-b02a2a: #b02a2a;
  --texto-666: #666;
  --texto-8a93a6: #8a93a6;
  --texto-999: #999;
  --borda-cfd8e3: #cfd8e3;
  --fundo-fdecea: #fdecea;
  --borda-f2b8b5: #f2b8b5;
  --texto-7a1f1a: #7a1f1a;
  --fundo-e2e5eb: #e2e5eb;
  --sombra-e9edf5: #e9edf5;
  --fundo-e9edf5: #e9edf5;
  --fundo-ddf3f1: #ddf3f1;
  --texto-0b6e6b: #0b6e6b;
  --fundo-fafbfc: #fafbfc;
  --fundo-fff3d6: #fff3d6;
  --borda-f0dca0: #f0dca0;
  --texto-8a5a00: #8a5a00;
  --fundo-8a5a00: #8a5a00;
  --borda-8a5a00: #8a5a00;
  --borda-0e8f8b: #0e8f8b;
  --texto-0e8f8b: #0e8f8b;
  --texto-444: #444;
  --fundo-fff4d6: #fff4d6;
  --texto-8a6100: #8a6100;
  --borda-c7eae6: #c7eae6;
  --fundo-fde8e8: #fde8e8;
  --texto-333: #333;
  --borda-d6b0b0: #d6b0b0;
  --fundo-fffaf0: #fffaf0;
  --fundo-fff5f5: #fff5f5;
  --texto-0067ff: #0067ff;
  --fundo-c7eae6: #c7eae6;
  --fundo-rgba-0-0-0-0-4: rgba(0,0,0,.4);
  --fundo-b25a1e: #b25a1e;
  --fundo-2b3245: #2b3245;
  --sombra-rgba-0-0-0-0-25: rgba(0,0,0,.25);
  --fundo-a12626: #a12626;
  --fundo-8a6100: #8a6100;
  --fundo-f4f6fb: #f4f6fb;
  --borda-0067ff: #0067ff;
  --sombra-0067ff: #0067ff;
  --texto-b25a1e: #b25a1e;
  --borda-b02a2a: #b02a2a;
  --borda-e0a800: #e0a800;
  --fundo-eef0f3: #eef0f3;
  --fundo-d8dde5: #d8dde5;
  --borda-f3c6c1: #f3c6c1;
  --borda-rgba-255-255-255-0-3: rgba(255,255,255,.3);
  --texto-b45309: #b45309;
  --fundo-fff3b0: #fff3b0;
  --texto-5c4a00: #5c4a00;
  --texto-2a7a2a: #2a7a2a;
  --texto-c0392b: #c0392b;
  --borda-2a78d6: #2a78d6;
  --fundo-2a78d6: #2a78d6;
  --borda-eb6834: #eb6834;
  --fundo-eb6834: #eb6834;
  --fundo-aab2bf: #aab2bf;
  --fundo-b02a2a: #b02a2a;
  --fundo-1baf7a: #1baf7a;
  --fundo-eda100: #eda100;
  --fundo-e87ba4: #e87ba4;
  --fundo-008300: #008300;
  --fundo-4a3aa7: #4a3aa7;
  --fundo-e34948: #e34948;
  --fundo-8a93a6: #8a93a6;
}
/* ==SGP-TOKENS-CLARO-FIM== */
/* ==SGP-TOKENS-ESCURO-INICIO== */
:root[data-tema="escuro"] {
  color-scheme: dark;
  --fundo-f4f5f7: #12161c;
  --fundo-00284d: #0b3a6b;
  --texto-white: white;
  --fundo-e0a800: #e0a800;
  --texto-1c2430: #e6eaf0;
  --fundo-0e8f8b: #0b7b77;
  --fundo-rgba-255-255-255-0-15: rgba(255,255,255,.15);
  --fundo-white: #1b2129;
  --sombra-rgba-0-0-0-0-2: rgba(0,0,0,.44);
  --borda-eee: #2d343c;
  --borda-e2e5eb: #383f47;
  --texto-555: #a1a7af;
  --texto-00284d: #c1defe;
  --borda-00284d: #9dc7f6;
  --borda-ccd: #545462;
  --fundo-0067ff: #0067ff;
  --fundo-0055d4: #0055d4;
  --texto-fff: #fff;
  --fundo-f8f9fb: #20262e;
  --fundo-ffedd9: #442d0e;
  --fundo-fff: #1b2129;
  --texto-1f5fa8: #83b8fb;
  --fundo-f1f5fa: #242a32;
  --borda-d5dfec: #3f4752;
  --texto-223: #c4c4d3;
  --texto-1b6e2d: #85cb8c;
  --texto-7a5600: #d4b073;
  --texto-a12626: #fe988e;
  --fundo-fff8e1: #322804;
  --borda-f0d98a: #5a4a0a;
  --texto-6b5200: #d1b97c;
  --texto-b02a2a: #fc8f86;
  --texto-666: #979da6;
  --texto-8a93a6: #98a1b3;
  --texto-999: #8b9199;
  --borda-cfd8e3: #485059;
  --fundo-fdecea: #412b29;
  --borda-f2b8b5: #774644;
  --texto-7a1f1a: #fcb0a5;
  --fundo-e2e5eb: #323841;
  --sombra-e9edf5: #313640;
  --fundo-e9edf5: #313640;
  --fundo-ddf3f1: #1a3c3a;
  --texto-0b6e6b: #7bc4c0;
  --fundo-fafbfc: #1e252d;
  --fundo-fff3d6: #3a2b02;
  --borda-f0dca0: #574603;
  --texto-8a5a00: #d7a869;
  --fundo-8a5a00: #8a5a00;
  --borda-8a5a00: #8a5a00;
  --borda-0e8f8b: #0e8f8b;
  --texto-0e8f8b: #58b5b1;
  --texto-444: #abb1ba;
  --fundo-fff4d6: #382b00;
  --texto-8a6100: #d0a865;
  --borda-c7eae6: #2a4946;
  --fundo-fde8e8: #472d2e;
  --texto-333: #b6bcc5;
  --borda-d6b0b0: #6c4b4c;
  --fundo-fffaf0: #2b2518;
  --fundo-fff5f5: #312526;
  --texto-0067ff: #74a7ff;
  --fundo-c7eae6: #0c4f4b;
  --fundo-rgba-0-0-0-0-4: rgba(0,0,0,.6);
  --fundo-b25a1e: #b25a1e;
  --fundo-2b3245: #2b3245;
  --sombra-rgba-0-0-0-0-25: rgba(0,0,0,.55);
  --fundo-a12626: #a12626;
  --fundo-8a6100: #8a6100;
  --fundo-f4f6fb: #222931;
  --borda-0067ff: #0067ff;
  --sombra-0067ff: #0067ff;
  --texto-b25a1e: #e4905f;
  --borda-b02a2a: #b02a2a;
  --borda-e0a800: #e0a800;
  --fundo-eef0f3: #282e37;
  --fundo-d8dde5: #444b56;
  --borda-f3c6c1: #6f4a46;
  --borda-rgba-255-255-255-0-3: rgba(255,255,255,.3);
  --texto-b45309: #eb8e5b;
  --fundo-fff3b0: #393100;
  --texto-5c4a00: #d2c188;
  --texto-2a7a2a: #7fc57b;
  --texto-c0392b: #fe816f;
  --borda-2a78d6: #2a78d6;
  --fundo-2a78d6: #2a78d6;
  --borda-eb6834: #eb6834;
  --fundo-eb6834: #eb6834;
  --fundo-aab2bf: #aab2bf;
  --fundo-b02a2a: #c53a3a;
  --fundo-1baf7a: #1baf7a;
  --fundo-eda100: #eda100;
  --fundo-e87ba4: #e87ba4;
  --fundo-008300: #008300;
  --fundo-4a3aa7: #7060d8;
  --fundo-e34948: #e34948;
  --fundo-8a93a6: #8a93a6;
  --cor-marca: #0b3a6b;
  --cor-acento: #0067ff;
  --cor-acento-fundo: #2a2e3f;
  --cor-acento-texto: #8eb7fc;
  --cor-texto: #e6eaf0;
  --cor-texto-2: #a1a7af;
  --cor-texto-mudo: #98a1b3;
  --cor-borda: #3d4146;
}
:root[data-tema="escuro"] header { background: #001f3d; }
:root[data-tema="escuro"] .ambiente-pill.homologacao { color: #1c2430; }
:root[data-tema="escuro"] input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=file]), :root[data-tema="escuro"] select, :root[data-tema="escuro"] textarea { background: #12161c; color: #e6eaf0; }
:root[data-tema="escuro"] input::placeholder, :root[data-tema="escuro"] textarea::placeholder { color: #7d8696; }
:root[data-tema="escuro"] img[src="/static/img/logo-tpf.png"] { content: url(/static/img/logo-tpf-branco.png); }
:root[data-tema="escuro"] .iris-badge img { filter: brightness(1.35); }
/* ==SGP-TOKENS-ESCURO-FIM== */
/* Seletor "Aparência" do menu ⚙ — sem literal de cor (usa as classes de
   botão já existentes: button.secundario / .ativo). */
.seletor-tema { display: flex; gap: 6px; margin-top: 6px; }
.seletor-tema button.secundario { flex: 1; margin: 0; padding: 6px 4px; font-size: 13px; }
