/* Modo claro / escuro (pedido do usuário, 09/11/2026).
   Cores de apoio (fundos claros, bordas e textos de aviso) são variáveis --k-<papel>-<cor original>: no modo claro valem a cor
   original; no escuro, uma versão escura/clara da mesma matiz. Regra para CSS novo: nunca escreva #fff como fundo nem uma
   cor fixa clara/escura de apoio; use var(--superficie), var(--texto), var(--suave), var(--borda) ou uma variável --k-*.
   O escuro vale só na tela (@media screen): o que se imprime continua claro. Sem CSS aninhado (tablets antigos). */
:root {
  --k-bd-bbbbbb: #bbbbbb;
  --k-bd-bfe3cf: #bfe3cf;
  --k-bd-c3d8f1: #c3d8f1;
  --k-bd-c4ccd4: #c4ccd4;
  --k-bd-c9a0dc: #c9a0dc;
  --k-bd-c9b2ee: #c9b2ee;
  --k-bd-c9b6f2: #c9b6f2;
  --k-bd-c9d1db: #c9d1db;
  --k-bd-c9d3dd: #c9d3dd;
  --k-bd-c9dcf5: #c9dcf5;
  --k-bd-cfe7d8: #cfe7d8;
  --k-bd-cfe9f6: #cfe9f6;
  --k-bd-dccbff: #dccbff;
  --k-bd-dde3ea: #dde3ea;
  --k-bd-e1e6ec: #e1e6ec;
  --k-bd-e3e6ea: #e3e6ea;
  --k-bd-e5e7eb: #e5e7eb;
  --k-bd-e5e9ef: #e5e9ef;
  --k-bd-e8b4b0: #e8b4b0;
  --k-bd-eef0f2: #eef0f2;
  --k-bd-eef1f4: #eef1f4;
  --k-bd-f0b8b3: #f0b8b3;
  --k-bd-f0c4c0: #f0c4c0;
  --k-bd-f0d49a: #f0d49a;
  --k-bd-f0d9a0: #f0d9a0;
  --k-bd-f1d2a6: #f1d2a6;
  --k-bd-f3b8b3: #f3b8b3;
  --k-bd-f3d9a4: #f3d9a4;
  --k-bd-f3dfa8: #f3dfa8;
  --k-bg-c4ccd4: #c4ccd4;
  --k-bg-c7ccd3: #c7ccd3;
  --k-bg-dff2fb: #dff2fb;
  --k-bg-e3f5ea: #e3f5ea;
  --k-bg-e5f4ec: #e5f4ec;
  --k-bg-e6dcf7: #e6dcf7;
  --k-bg-e6f0fb: #e6f0fb;
  --k-bg-e7f6ec: #e7f6ec;
  --k-bg-e8f0fe: #e8f0fe;
  --k-bg-e8f6ee: #e8f6ee;
  --k-bg-e9ecef: #e9ecef;
  --k-bg-e9edf2: #e9edf2;
  --k-bg-eaf7f0: #eaf7f0;
  --k-bg-eceef1: #eceef1;
  --k-bg-eef1f4: #eef1f4;
  --k-bg-eef2f5: #eef2f5;
  --k-bg-eef2f7: #eef2f7;
  --k-bg-eef2fb: #eef2fb;
  --k-bg-eef5fd: #eef5fd;
  --k-bg-efe6fb: #efe6fb;
  --k-bg-efe8fd: #efe8fd;
  --k-bg-f0f8f3: #f0f8f3;
  --k-bg-f1f3f5: #f1f3f5;
  --k-bg-f2f6f9: #f2f6f9;
  --k-bg-f2f7fe: #f2f7fe;
  --k-bg-f3f3f3: #f3f3f3;
  --k-bg-f3f4f6: #f3f4f6;
  --k-bg-f3f5f8: #f3f5f8;
  --k-bg-f3f6f9: #f3f6f9;
  --k-bg-f4f5f7: #f4f5f7;
  --k-bg-f4f6f8: #f4f6f8;
  --k-bg-f4f8fe: #f4f8fe;
  --k-bg-f4fbf7: #f4fbf7;
  --k-bg-f5f7fa: #f5f7fa;
  --k-bg-f6f0fa: #f6f0fa;
  --k-bg-f6f0fd: #f6f0fd;
  --k-bg-f6f1ff: #f6f1ff;
  --k-bg-f6f2fc: #f6f2fc;
  --k-bg-f6f7f9: #f6f7f9;
  --k-bg-f6f9ff: #f6f9ff;
  --k-bg-f7f3ff: #f7f3ff;
  --k-bg-f7faff: #f7faff;
  --k-bg-f8fafc: #f8fafc;
  --k-bg-fafafa: #fafafa;
  --k-bg-fafbfc: #fafbfc;
  --k-bg-fbeaea: #fbeaea;
  --k-bg-fbf8fd: #fbf8fd;
  --k-bg-fde8e8: #fde8e8;
  --k-bg-fdeceb: #fdeceb;
  --k-bg-fdecec: #fdecec;
  --k-bg-fdf0e1: #fdf0e1;
  --k-bg-fdf2f2: #fdf2f2;
  --k-bg-fdf3dc: #fdf3dc;
  --k-bg-ffe2b0: #ffe2b0;
  --k-bg-fff2d9: #fff2d9;
  --k-bg-fff3cf: #fff3cf;
  --k-bg-fff4b8: #fff4b8;
  --k-bg-fff4e0: #fff4e0;
  --k-bg-fff6e0: #fff6e0;
  --k-bg-fff6f5: #fff6f5;
  --k-bg-fff7e0: #fff7e0;
  --k-bg-fff7f7: #fff7f7;
  --k-bg-fff8e6: #fff8e6;
  --k-bg-fffaf0: #fffaf0;
  --k-bg-fffbef: #fffbef;
  --k-bg-fffdf3: #fffdf3;
  --k-tx-0756b5: #0756b5;
  --k-tx-0b6bde: #0b6bde;
  --k-tx-0c447c: #0c447c;
  --k-tx-145c3c: #145c3c;
  --k-tx-17633a: #17633a;
  --k-tx-1b2733: #1b2733;
  --k-tx-1d3f8a: #1d3f8a;
  --k-tx-1d7a46: #1d7a46;
  --k-tx-1f4f86: #1f4f86;
  --k-tx-1f7aa6: #1f7aa6;
  --k-tx-2b4a8a: #2b4a8a;
  --k-tx-2e7d32: #2e7d32;
  --k-tx-333333: #333333;
  --k-tx-374151: #374151;
  --k-tx-4a2a8f: #4a2a8f;
  --k-tx-4b2a7b: #4b2a7b;
  --k-tx-4c5763: #4c5763;
  --k-tx-555555: #555555;
  --k-tx-5b3596: #5b3596;
  --k-tx-5b6b7a: #5b6b7a;
  --k-tx-5c4600: #5c4600;
  --k-tx-5c6670: #5c6670;
  --k-tx-6b3d00: #6b3d00;
  --k-tx-6b5200: #6b5200;
  --k-tx-6b7280: #6b7280;
  --k-tx-6b7580: #6b7580;
  --k-tx-777777: #777777;
  --k-tx-7a1a14: #7a1a14;
  --k-tx-7a4d00: #7a4d00;
  --k-tx-7a5200: #7a5200;
  --k-tx-7a5300: #7a5300;
  --k-tx-7a5a90: #7a5a90;
  --k-tx-8c1d17: #8c1d17;
  --k-tx-8c2a20: #8c2a20;
  --k-tx-9a5b00: #9a5b00;
  --k-tx-9b1c1c: #9b1c1c;
  --k-tx-b85c00: #b85c00;
}

/* O botão da barra mostra a lua no modo claro e o sol no escuro. */
.tema-lua, .tema-sol { display: inline-flex; }
.tema-sol { display: none; }
.botao-tema .icone { width: 20px; height: 20px; }
.btn[data-tema-escolher].ativo { background: var(--primaria); border-color: var(--primaria); color: #fff; }

@media screen {
html[data-tema="escuro"] {
  --k-bd-bbbbbb: #727272;
  --k-bd-bfe3cf: #456653;
  --k-bd-c3d8f1: #334860;
  --k-bd-c4ccd4: #555c63;
  --k-bd-c9a0dc: #775587;
  --k-bd-c9b2ee: #503b72;
  --k-bd-c9b6f2: #47356e;
  --k-bd-c9d1db: #4c535c;
  --k-bd-c9d3dd: #49535c;
  --k-bd-c9dcf5: #2c405a;
  --k-bd-cfe7d8: #3c5445;
  --k-bd-cfe9f6: #294654;
  --k-bd-dccbff: #311e59;
  --k-bd-dde3ea: #363d44;
  --k-bd-e1e6ec: #333940;
  --k-bd-e3e6ea: #35393d;
  --k-bd-e5e7eb: #34363b;
  --k-bd-e5e9ef: #2f343b;
  --k-bd-e8b4b0: #754643;
  --k-bd-eef0f2: #2a2d30;
  --k-bd-eef1f4: #272c30;
  --k-bd-f0b8b3: #713d38;
  --k-bd-f0c4c0: #643935;
  --k-bd-f0d49a: #8a723f;
  --k-bd-f0d9a0: #84703e;
  --k-bd-f1d2a6: #7e623b;
  --k-bd-f3b8b3: #713935;
  --k-bd-f3d9a4: #806939;
  --k-bd-f3dfa8: #7c6a38;
  --k-bg-c4ccd4: #434f5b;
  --k-bg-c7ccd3: #454d58;
  --k-bg-dff2fb: #1b323c;
  --k-bg-e3f5ea: #22372a;
  --k-bg-e5f4ec: #23352b;
  --k-bg-e6dcf7: #2b203e;
  --k-bg-e6f0fb: #1a2736;
  --k-bg-e7f6ec: #203427;
  --k-bg-e8f0fe: #152136;
  --k-bg-e8f6ee: #203328;
  --k-bg-e9ecef: #2a323a;
  --k-bg-e9edf2: #252a31;
  --k-bg-eaf7f0: #1f3127;
  --k-bg-eceef1: #292f37;
  --k-bg-eef1f4: #242e38;
  --k-bg-eef2f5: #22282c;
  --k-bg-eef2f7: #1f252d;
  --k-bg-eef2fb: #19202f;
  --k-bg-eef5fd: #152231;
  --k-bg-efe6fb: #261a36;
  --k-bg-efe8fd: #211636;
  --k-bg-f0f8f3: #1e2b23;
  --k-bg-f1f3f5: #252c33;
  --k-bg-f2f6f9: #1d2429;
  --k-bg-f2f7fe: #131e2e;
  --k-bg-f3f3f3: #2c2c2c;
  --k-bg-f3f4f6: #252931;
  --k-bg-f3f5f8: #1e2228;
  --k-bg-f3f6f9: #1d2328;
  --k-bg-f4f5f7: #232830;
  --k-bg-f4f6f8: #202932;
  --k-bg-f4f8fe: #121d2d;
  --k-bg-f4fbf7: #192920;
  --k-bg-f5f7fa: #1c2026;
  --k-bg-f6f0fa: #251b2c;
  --k-bg-f6f0fd: #21152f;
  --k-bg-f6f1ff: #1c122f;
  --k-bg-f6f2fc: #1f172c;
  --k-bg-f6f7f9: #202530;
  --k-bg-f6f9ff: #10192b;
  --k-bg-f7f3ff: #1b112e;
  --k-bg-f7faff: #101a2b;
  --k-bg-f8fafc: #181e25;
  --k-bg-fafafa: #262626;
  --k-bg-fafbfc: #1a1d21;
  --k-bg-fbeaea: #331919;
  --k-bg-fbf8fd: #201626;
  --k-bg-fde8e8: #361616;
  --k-bg-fdeceb: #331716;
  --k-bg-fdecec: #331515;
  --k-bg-fdf0e1: #3c2b17;
  --k-bg-fdf2f2: #2d1515;
  --k-bg-fdf3dc: #403418;
  --k-bg-ffe2b0: #5e4924;
  --k-bg-fff2d9: #413318;
  --k-bg-fff3cf: #483d1b;
  --k-bg-fff4b8: #585022;
  --k-bg-fff4e0: #3b2e17;
  --k-bg-fff6e0: #3b3117;
  --k-bg-fff6f5: #2c1411;
  --k-bg-fff7e0: #3b3217;
  --k-bg-fff7f7: #2b1010;
  --k-bg-fff8e6: #372e15;
  --k-bg-fffaf0: #302612;
  --k-bg-fffbef: #312912;
  --k-bg-fffdf3: #2e2911;
  --k-tx-0756b5: #7bb0ef;
  --k-tx-0b6bde: #5598e9;
  --k-tx-0c447c: #aecff1;
  --k-tx-145c3c: #c8efde;
  --k-tx-17633a: #c1ecd5;
  --k-tx-1b2733: #dfe6ec;
  --k-tx-1d3f8a: #9db3e3;
  --k-tx-1d7a46: #abe5c4;
  --k-tx-1f4f86: #a0bfe2;
  --k-tx-1f7aa6: #83c1de;
  --k-tx-2b4a8a: #9aaed8;
  --k-tx-2e7d32: #a4d7a7;
  --k-tx-333333: #e0e0e0;
  --k-tx-374151: #c8ced7;
  --k-tx-4a2a8f: #ab95d8;
  --k-tx-4b2a7b: #bca7db;
  --k-tx-4c5763: #b4bcc3;
  --k-tx-555555: #bebebe;
  --k-tx-5b3596: #a78dcf;
  --k-tx-5b6b7a: #9ea9b4;
  --k-tx-5c4600: #faf0d1;
  --k-tx-5c6670: #a7adb4;
  --k-tx-6b3d00: #f8e2c3;
  --k-tx-6b5200: #f8ecc3;
  --k-tx-6b7280: #979ca5;
  --k-tx-6b7580: #979ea5;
  --k-tx-777777: #9e9e9e;
  --k-tx-7a1a14: #ebb1ae;
  --k-tx-7a4d00: #f7dfb6;
  --k-tx-7a5200: #f7e2b6;
  --k-tx-7a5300: #f7e2b6;
  --k-tx-7a5a90: #a28bb1;
  --k-tx-8c1d17: #e7a09d;
  --k-tx-8c2a20: #e0a19a;
  --k-tx-9a5b00: #f4cf99;
  --k-tx-9b1c1c: #e28e8e;
  --k-tx-b85c00: #f1b77e;
  color-scheme: dark;
  --fundo: #0d141b;
  --superficie: #16202a;
  --texto: #e3e8ed;
  --suave: #98a5b3;
  --borda: #27333f;
  --perigo: #e5534b;
  --sucesso: #3fb27f;
  --sombra: 0 1px 2px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .4);
  --sombra-alta: 0 10px 28px rgba(0, 0, 0, .55);
  --forca-suave: 22%;
  --primaria-texto: color-mix(in srgb, var(--primaria) 55%, #fff);
  --lateral: color-mix(in srgb, var(--primaria) 40%, #05090d);
}
/* Gráficos desenhados no servidor (SVG com cores fixas): texto, grade e barras cinza ganham contraste. */
html[data-tema="escuro"] svg [fill="#3a4652"] { fill: #c9d3dd; }
html[data-tema="escuro"] svg [fill="#7c8994"] { fill: #98a5b3; }
html[data-tema="escuro"] svg [stroke="#e6ebf0"] { stroke: #2c3945; }
html[data-tema="escuro"] svg [fill="#4c5763"] { fill: #8190a0; }
html[data-tema="escuro"] svg [stroke="#4c5763"] { stroke: #8190a0; }
/* Sempre brancos: logo, QR (o celular precisa ler) e quadros de assinatura (traço escuro). */
html[data-tema="escuro"] .lateral-marca,
html[data-tema="escuro"] .capa-logo,
html[data-tema="escuro"] .boleto-pagar .boleto-qr svg,
html[data-tema="escuro"] .qr-2fa svg,
html[data-tema="escuro"] .quadro-assinatura,
html[data-tema="escuro"] .ficha-assinatura { background: #fff; }
/* O botão da barra mostra o sol no escuro (a lua no claro). */
html[data-tema="escuro"] .tema-lua { display: none; }
html[data-tema="escuro"] .tema-sol { display: inline-flex; }
/* Campos um tom mais fundos que o cartão onde estão: sem isso somem no escuro. */
html[data-tema="escuro"] .campo,
html[data-tema="escuro"] input[type=text],
html[data-tema="escuro"] input[type=password],
html[data-tema="escuro"] input[type=email],
html[data-tema="escuro"] input[type=search],
html[data-tema="escuro"] input[type=number],
html[data-tema="escuro"] input[type=date],
html[data-tema="escuro"] input[type=tel],
html[data-tema="escuro"] input[type=time],
html[data-tema="escuro"] input[type=month],
html[data-tema="escuro"] input[type=url],
html[data-tema="escuro"] select,
html[data-tema="escuro"] textarea { background-color: var(--fundo); border-color: #3a4856; }
}

@media screen and (prefers-color-scheme: dark) {
html[data-tema="auto"] {
  --k-bd-bbbbbb: #727272;
  --k-bd-bfe3cf: #456653;
  --k-bd-c3d8f1: #334860;
  --k-bd-c4ccd4: #555c63;
  --k-bd-c9a0dc: #775587;
  --k-bd-c9b2ee: #503b72;
  --k-bd-c9b6f2: #47356e;
  --k-bd-c9d1db: #4c535c;
  --k-bd-c9d3dd: #49535c;
  --k-bd-c9dcf5: #2c405a;
  --k-bd-cfe7d8: #3c5445;
  --k-bd-cfe9f6: #294654;
  --k-bd-dccbff: #311e59;
  --k-bd-dde3ea: #363d44;
  --k-bd-e1e6ec: #333940;
  --k-bd-e3e6ea: #35393d;
  --k-bd-e5e7eb: #34363b;
  --k-bd-e5e9ef: #2f343b;
  --k-bd-e8b4b0: #754643;
  --k-bd-eef0f2: #2a2d30;
  --k-bd-eef1f4: #272c30;
  --k-bd-f0b8b3: #713d38;
  --k-bd-f0c4c0: #643935;
  --k-bd-f0d49a: #8a723f;
  --k-bd-f0d9a0: #84703e;
  --k-bd-f1d2a6: #7e623b;
  --k-bd-f3b8b3: #713935;
  --k-bd-f3d9a4: #806939;
  --k-bd-f3dfa8: #7c6a38;
  --k-bg-c4ccd4: #434f5b;
  --k-bg-c7ccd3: #454d58;
  --k-bg-dff2fb: #1b323c;
  --k-bg-e3f5ea: #22372a;
  --k-bg-e5f4ec: #23352b;
  --k-bg-e6dcf7: #2b203e;
  --k-bg-e6f0fb: #1a2736;
  --k-bg-e7f6ec: #203427;
  --k-bg-e8f0fe: #152136;
  --k-bg-e8f6ee: #203328;
  --k-bg-e9ecef: #2a323a;
  --k-bg-e9edf2: #252a31;
  --k-bg-eaf7f0: #1f3127;
  --k-bg-eceef1: #292f37;
  --k-bg-eef1f4: #242e38;
  --k-bg-eef2f5: #22282c;
  --k-bg-eef2f7: #1f252d;
  --k-bg-eef2fb: #19202f;
  --k-bg-eef5fd: #152231;
  --k-bg-efe6fb: #261a36;
  --k-bg-efe8fd: #211636;
  --k-bg-f0f8f3: #1e2b23;
  --k-bg-f1f3f5: #252c33;
  --k-bg-f2f6f9: #1d2429;
  --k-bg-f2f7fe: #131e2e;
  --k-bg-f3f3f3: #2c2c2c;
  --k-bg-f3f4f6: #252931;
  --k-bg-f3f5f8: #1e2228;
  --k-bg-f3f6f9: #1d2328;
  --k-bg-f4f5f7: #232830;
  --k-bg-f4f6f8: #202932;
  --k-bg-f4f8fe: #121d2d;
  --k-bg-f4fbf7: #192920;
  --k-bg-f5f7fa: #1c2026;
  --k-bg-f6f0fa: #251b2c;
  --k-bg-f6f0fd: #21152f;
  --k-bg-f6f1ff: #1c122f;
  --k-bg-f6f2fc: #1f172c;
  --k-bg-f6f7f9: #202530;
  --k-bg-f6f9ff: #10192b;
  --k-bg-f7f3ff: #1b112e;
  --k-bg-f7faff: #101a2b;
  --k-bg-f8fafc: #181e25;
  --k-bg-fafafa: #262626;
  --k-bg-fafbfc: #1a1d21;
  --k-bg-fbeaea: #331919;
  --k-bg-fbf8fd: #201626;
  --k-bg-fde8e8: #361616;
  --k-bg-fdeceb: #331716;
  --k-bg-fdecec: #331515;
  --k-bg-fdf0e1: #3c2b17;
  --k-bg-fdf2f2: #2d1515;
  --k-bg-fdf3dc: #403418;
  --k-bg-ffe2b0: #5e4924;
  --k-bg-fff2d9: #413318;
  --k-bg-fff3cf: #483d1b;
  --k-bg-fff4b8: #585022;
  --k-bg-fff4e0: #3b2e17;
  --k-bg-fff6e0: #3b3117;
  --k-bg-fff6f5: #2c1411;
  --k-bg-fff7e0: #3b3217;
  --k-bg-fff7f7: #2b1010;
  --k-bg-fff8e6: #372e15;
  --k-bg-fffaf0: #302612;
  --k-bg-fffbef: #312912;
  --k-bg-fffdf3: #2e2911;
  --k-tx-0756b5: #7bb0ef;
  --k-tx-0b6bde: #5598e9;
  --k-tx-0c447c: #aecff1;
  --k-tx-145c3c: #c8efde;
  --k-tx-17633a: #c1ecd5;
  --k-tx-1b2733: #dfe6ec;
  --k-tx-1d3f8a: #9db3e3;
  --k-tx-1d7a46: #abe5c4;
  --k-tx-1f4f86: #a0bfe2;
  --k-tx-1f7aa6: #83c1de;
  --k-tx-2b4a8a: #9aaed8;
  --k-tx-2e7d32: #a4d7a7;
  --k-tx-333333: #e0e0e0;
  --k-tx-374151: #c8ced7;
  --k-tx-4a2a8f: #ab95d8;
  --k-tx-4b2a7b: #bca7db;
  --k-tx-4c5763: #b4bcc3;
  --k-tx-555555: #bebebe;
  --k-tx-5b3596: #a78dcf;
  --k-tx-5b6b7a: #9ea9b4;
  --k-tx-5c4600: #faf0d1;
  --k-tx-5c6670: #a7adb4;
  --k-tx-6b3d00: #f8e2c3;
  --k-tx-6b5200: #f8ecc3;
  --k-tx-6b7280: #979ca5;
  --k-tx-6b7580: #979ea5;
  --k-tx-777777: #9e9e9e;
  --k-tx-7a1a14: #ebb1ae;
  --k-tx-7a4d00: #f7dfb6;
  --k-tx-7a5200: #f7e2b6;
  --k-tx-7a5300: #f7e2b6;
  --k-tx-7a5a90: #a28bb1;
  --k-tx-8c1d17: #e7a09d;
  --k-tx-8c2a20: #e0a19a;
  --k-tx-9a5b00: #f4cf99;
  --k-tx-9b1c1c: #e28e8e;
  --k-tx-b85c00: #f1b77e;
  color-scheme: dark;
  --fundo: #0d141b;
  --superficie: #16202a;
  --texto: #e3e8ed;
  --suave: #98a5b3;
  --borda: #27333f;
  --perigo: #e5534b;
  --sucesso: #3fb27f;
  --sombra: 0 1px 2px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .4);
  --sombra-alta: 0 10px 28px rgba(0, 0, 0, .55);
  --forca-suave: 22%;
  --primaria-texto: color-mix(in srgb, var(--primaria) 55%, #fff);
  --lateral: color-mix(in srgb, var(--primaria) 40%, #05090d);
}
/* Gráficos desenhados no servidor (SVG com cores fixas): texto, grade e barras cinza ganham contraste. */
html[data-tema="auto"] svg [fill="#3a4652"] { fill: #c9d3dd; }
html[data-tema="auto"] svg [fill="#7c8994"] { fill: #98a5b3; }
html[data-tema="auto"] svg [stroke="#e6ebf0"] { stroke: #2c3945; }
html[data-tema="auto"] svg [fill="#4c5763"] { fill: #8190a0; }
html[data-tema="auto"] svg [stroke="#4c5763"] { stroke: #8190a0; }
/* Sempre brancos: logo, QR (o celular precisa ler) e quadros de assinatura (traço escuro). */
html[data-tema="auto"] .lateral-marca,
html[data-tema="auto"] .capa-logo,
html[data-tema="auto"] .boleto-pagar .boleto-qr svg,
html[data-tema="auto"] .qr-2fa svg,
html[data-tema="auto"] .quadro-assinatura,
html[data-tema="auto"] .ficha-assinatura { background: #fff; }
/* O botão da barra mostra o sol no escuro (a lua no claro). */
html[data-tema="auto"] .tema-lua { display: none; }
html[data-tema="auto"] .tema-sol { display: inline-flex; }
/* Campos um tom mais fundos que o cartão onde estão: sem isso somem no escuro. */
html[data-tema="auto"] .campo,
html[data-tema="auto"] input[type=text],
html[data-tema="auto"] input[type=password],
html[data-tema="auto"] input[type=email],
html[data-tema="auto"] input[type=search],
html[data-tema="auto"] input[type=number],
html[data-tema="auto"] input[type=date],
html[data-tema="auto"] input[type=tel],
html[data-tema="auto"] input[type=time],
html[data-tema="auto"] input[type=month],
html[data-tema="auto"] input[type=url],
html[data-tema="auto"] select,
html[data-tema="auto"] textarea { background-color: var(--fundo); border-color: #3a4856; }
}

/* Navegador sem color-mix (Chrome até 110, ex.: computador com Windows 7, que para no Chrome 109; caso real 20/11/2026:
   o menu lateral ficava branco com letra branca). As variáveis feitas com color-mix ficam inválidas e o fundo some;
   aqui elas ganham cores fixas de reserva. Fica no fim do tema.css para valer também no modo escuro. */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  :root, :root[data-tema] {
    --primaria-escura: var(--primaria);
    --primaria-suave: #e8f1f4;
    --primaria-borda: #b9ccd4;
    --lateral: var(--primaria);
  }
  .lateral { background: var(--primaria) !important; color: #fff; }
}
