/* dm-ferramenta.css — camada de estilo compartilhada das ferramentas do diegomaier.com
   v1 — 14/10/2026. Referência visual: conversor de semaglutida (marinho #0d3857 + dourado #c9a227, Poppins).
   REGRA: este arquivo só muda aparência. Não altera HTML, textos, scripts, contas nem fontes.
   Entra DEPOIS do <style> próprio de cada página e sobrepõe os seletores do modelo "roxo"
   (.hero, .page-nav, .card, .form-group, .btn, .result-card, .imc-table, .cta-box, .section-title, .faq…).
   As cores com significado (risco, WhatsApp, avisos) ficam como estão. */

:root{
  --dmf-nv:#0d3857; --dmf-nv2:#071f33; --dmf-nv3:#114a73;
  --dmf-gold:#c9a227; --dmf-gold2:#e7c96b;
  --dmf-ink:#102a3c; --dmf-muted:#5b6b79; --dmf-line:#e4e9ef;
  --dmf-bg:#f6f8fb; --dmf-card:#ffffff;
  --dmf-r:14px; --dmf-r-lg:18px;
  --dmf-sh:0 4px 18px rgba(16,42,60,.08); --dmf-sh-lg:0 10px 28px rgba(16,42,60,.14);
  --dmf-focus:0 0 0 3px rgba(201,162,39,.35);
}

/* ---------- base ---------- */
html body{font-family:'Poppins',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;color:var(--dmf-ink);background:var(--dmf-bg);-webkit-font-smoothing:antialiased}
html body :is(input,select,button,textarea){font-family:inherit}
a{color:var(--dmf-nv)}
a:hover{color:var(--dmf-nv3)}
h1,h2,h3,h4{font-family:'Poppins',system-ui,sans-serif;letter-spacing:-.01em}
*,*::before,*::after{box-sizing:border-box}
img,svg,video{max-width:100%}

/* ---------- barra interna da página + idiomas ---------- */
.page-nav{background:linear-gradient(135deg,var(--dmf-nv2) 0%,var(--dmf-nv) 60%,var(--dmf-nv3) 100%);border-bottom:1px solid rgba(231,201,107,.25)}
.nav-links a{color:rgba(255,255,255,.88);border-radius:8px;font-weight:500}
.nav-links a:hover,.nav-links a:focus{background:rgba(255,255,255,.12);color:#fff}
.lang-switcher{gap:6px}
.lang-btn{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:6px 12px;font-weight:600;font-size:.78rem;min-height:36px;font-family:inherit}
.lang-btn:hover{background:rgba(255,255,255,.22)}
.lang-btn.active{background:#fff;color:var(--dmf-nv);border-color:#fff}
.lang-btn:focus-visible{outline:none;box-shadow:var(--dmf-focus)}

/* ---------- cabeçalho da ferramenta (hero) ---------- */
.hero{background:linear-gradient(135deg,var(--dmf-nv2) 0%,var(--dmf-nv) 55%,var(--dmf-nv3) 100%);position:relative;color:#fff}
.hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,transparent,var(--dmf-gold),transparent)}
.hero h1{font-weight:700;color:#fff}
.hero .subtitle{color:rgba(255,255,255,.88)}

/* ---------- cartões ---------- */
.card{background:var(--dmf-card);border:1px solid var(--dmf-line);border-radius:var(--dmf-r-lg);box-shadow:var(--dmf-sh)}
.section-title{color:var(--dmf-nv);border-bottom:3px solid var(--dmf-gold);font-weight:700}
.tool-notice{background:#f4f7fa;border:1px solid var(--dmf-line);border-left:4px solid var(--dmf-gold);color:#3d4f5e;border-radius:10px}

/* ---------- formulário ---------- */
.form-grid>.form-group{min-width:0}
.form-group label{color:var(--dmf-ink);font-weight:600}
.form-group select,.form-group input,.form-control{border:1.5px solid #cfd9e2;border-radius:12px;background:#fff;color:var(--dmf-ink);min-height:48px;font-family:inherit;font-size:16px;max-width:100%}
.form-group select:focus,.form-group input:focus,.form-control:focus{outline:none;border-color:var(--dmf-nv);box-shadow:0 0 0 3px rgba(13,56,87,.14);background:#fff}
.form-group select{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230d3857' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");background-repeat:no-repeat;background-position:right 14px center;padding-right:38px;-webkit-appearance:none;appearance:none}
.radio-option label{border:1.5px solid #cfd9e2;border-radius:999px;background:#fff;color:var(--dmf-ink);font-weight:500;min-height:44px;display:inline-flex;align-items:center}
.radio-option label:hover{border-color:var(--dmf-nv)}
.radio-option input:checked+label{background:var(--dmf-nv);border-color:var(--dmf-nv);color:#fff;box-shadow:0 3px 10px rgba(13,56,87,.25)}
.radio-option input:focus-visible+label{box-shadow:var(--dmf-focus)}

/* ---------- botões ---------- */
.btn{border-radius:999px;font-weight:600;min-height:48px;font-family:inherit;letter-spacing:.1px;border:2px solid transparent}
.btn:focus-visible{outline:none;box-shadow:var(--dmf-focus)}
.btn-primary{background:linear-gradient(135deg,var(--dmf-nv2),var(--dmf-nv) 60%,var(--dmf-nv3));color:#fff;box-shadow:0 6px 16px rgba(13,56,87,.28)}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(13,56,87,.34)}
.btn-secondary{background:#fff;color:var(--dmf-nv);border-color:#cfd9e2}
.btn-secondary:hover{background:#f4f7fa;border-color:var(--dmf-nv)}
.btn-copy{background:#fff;color:var(--dmf-nv);border-color:var(--dmf-gold)}
.btn-copy:hover{background:#fdf8e9}

/* ---------- resultado ---------- */
.result-card{background:#f7f9fb;border:1px solid var(--dmf-line);border-radius:var(--dmf-r)}
.result-card .label{color:var(--dmf-muted)}
.result-card .value{background:none;-webkit-text-fill-color:var(--dmf-nv);color:var(--dmf-nv);font-weight:700}
.result-card .unit{color:var(--dmf-muted)}
.result-card.highlight{background:linear-gradient(135deg,var(--dmf-nv2),var(--dmf-nv) 60%,var(--dmf-nv3));border:1px solid rgba(231,201,107,.35);box-shadow:var(--dmf-sh-lg)}
.result-card.highlight .label,.result-card.highlight .unit{color:rgba(255,255,255,.85)}
.result-card.highlight .value{-webkit-text-fill-color:#fff;color:#fff}
.results-area h2{color:var(--dmf-nv)}

/* ---------- tabelas ---------- */
.imc-table,.ref-table,.results-table,.table{border:1px solid var(--dmf-line);border-radius:12px;overflow:hidden}
.imc-table th,.ref-table th,.results-table th,.table th{background:var(--dmf-nv);color:#fff;font-weight:600}
.imc-table td,.ref-table td,.results-table td,.table td{border-bottom:1px solid var(--dmf-line)}
.imc-table tr:nth-child(even) td,.ref-table tr:nth-child(even) td{background:#f7f9fb}

/* ---------- guia, FAQ, referências ---------- */
.guide-content h3,.faq-q,.faq-item h3{color:var(--dmf-nv)}
.faq-a,.guide-content p{color:#3d4f5e}
.ref-list a{color:var(--dmf-nv)}

/* ---------- CTA e avisos (verde do WhatsApp e âmbar do aviso ficam) ---------- */
.cta-box{background:#f7f9fb;border:1px solid var(--dmf-line);border-radius:var(--dmf-r-lg)}
.cta-box .cta-text{color:#3d4f5e}
.disclaimer-full{border-color:var(--dmf-line)}
.page-footer{color:var(--dmf-muted);border-top:1px solid var(--dmf-line)}
.page-footer strong{color:var(--dmf-nv)}

/* ---------- popup ---------- */
.popup-box{border-radius:var(--dmf-r-lg);border-top:4px solid var(--dmf-gold)}
.popup-box h3{color:var(--dmf-nv)}

/* ---------- Copiar / PDF (dm-pdf) ---------- */
.dm-tools button{border-radius:999px;min-height:44px;font-family:inherit;border:2px solid var(--dmf-nv);background:var(--dmf-nv);color:#fff}
.dm-tools button.ghost{background:#fff;color:var(--dmf-nv)}

/* ---------- responsividade (prioridade) ---------- */
@media (max-width:768px){
  .card{padding:22px 16px;border-radius:16px}
  .form-grid{grid-template-columns:1fr}
  .btn-row{flex-direction:column}
  .btn{width:100%}
  .radio-group{gap:10px}
  .radio-option label{padding:10px 16px}
}
@media (max-width:600px){
  .imc-table,.ref-table,.results-table,.table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap}
  .imc-table thead,.imc-table tbody,.ref-table thead,.ref-table tbody,.results-table thead,.results-table tbody,.table thead,.table tbody{display:table;width:100%}
  .hero{padding:32px 16px 26px}
  .hero h1{font-size:1.45rem}
}
@media (prefers-reduced-motion:reduce){
  .btn,.btn-primary:hover,.radio-option label{transition:none;transform:none}
}
@media print{
  .page-nav,.lang-switcher,.cta-box,.dm-tools{display:none!important}
  .card{box-shadow:none;border:1px solid #ccc}
}

/* =====================================================================
   MODO ESCURO (v1, 14/10/2026) — só com html[data-theme="dark"], ligado pelo botão de dm-tema.js.
   Contraste medido ≥ 4,5:1 em texto. A impressão sai sempre clara.
   ===================================================================== */
.dm-tema{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;border:1.5px solid var(--dmf-line);background:#fff;color:var(--dmf-nv);cursor:pointer;padding:0;margin-right:6px;transition:background .15s,border-color .15s}
.dm-tema:hover{border-color:var(--dmf-nv);background:#f4f7fa}
.dm-tema:focus-visible{outline:none;box-shadow:var(--dmf-focus)}
.dm-tema-fixo{position:fixed;left:14px;bottom:14px;z-index:9000;box-shadow:var(--dmf-sh)}

html[data-theme="dark"]{
  --dmf-ink:#e8eef4; --dmf-muted:#a9b8c6; --dmf-line:#243a4d;
  --dmf-bg:#0b1620; --dmf-card:#122232;
  --dmf-sh:0 4px 18px rgba(0,0,0,.35); --dmf-sh-lg:0 10px 28px rgba(0,0,0,.5);
  color-scheme:dark;
}
html[data-theme="dark"] body{background:var(--dmf-bg);color:var(--dmf-ink)}
html[data-theme="dark"] a{color:#9ccbf0}
html[data-theme="dark"] a:hover{color:#c3e1f8}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4{color:var(--dmf-ink)}
html[data-theme="dark"] .hero h1,html[data-theme="dark"] .hero .subtitle{color:#fff}
html[data-theme="dark"] .hero .subtitle{color:rgba(255,255,255,.88)}

/* cabeçalho/rodapé compartilhados (dm-shell) */
html[data-theme="dark"] .dmsh-header{background:#0f1d2a;border-bottom-color:var(--dmf-line);box-shadow:0 2px 12px rgba(0,0,0,.4)}
html[data-theme="dark"] .dmsh-menu>li>a{color:#e8eef4}
html[data-theme="dark"] .dmsh-menu>li>a:hover{background:#1a2f42;color:#fff}
html[data-theme="dark"] .dmsh-menu,html[data-theme="dark"] .dmsh-sub{background:#122232;border-color:var(--dmf-line)}
html[data-theme="dark"] .dmsh-sub a{color:#e8eef4}
html[data-theme="dark"] .dmsh-sub a:hover{background:#1a2f42;color:#fff}
html[data-theme="dark"] .dmsh-grp{color:#a9b8c6}
html[data-theme="dark"] .dmsh-burger{color:#e8eef4;border-color:var(--dmf-line)}
html[data-theme="dark"] .dm-tema{background:#122232;color:#f6e6b4;border-color:var(--dmf-line)}
html[data-theme="dark"] .dm-tema:hover{background:#1a2f42}
html[data-theme="dark"] .dmsh-nl{background:#0f1d2a}
html[data-theme="dark"] .dmsh-nl h2,html[data-theme="dark"] .dmsh-nl p{color:#e8eef4}
html[data-theme="dark"] .dmsh-nl-form input{background:#122232;color:#e8eef4;border-color:var(--dmf-line)}

/* cartões, formulário, botões */
html[data-theme="dark"] .card{background:var(--dmf-card);border-color:var(--dmf-line)}
html[data-theme="dark"] .section-title{color:#f1f5f9}
html[data-theme="dark"] .tool-notice{background:#15283a;border-color:var(--dmf-line);color:#d5dee7}
html[data-theme="dark"] .form-group label{color:#e8eef4}
html[data-theme="dark"] .form-group select,html[data-theme="dark"] .form-group input,html[data-theme="dark"] .form-control{background:#0f1d2a;color:#e8eef4;border-color:#2e4a60}
html[data-theme="dark"] .form-group select{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e8eef4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>")}
html[data-theme="dark"] .form-group select:focus,html[data-theme="dark"] .form-group input:focus,html[data-theme="dark"] .form-control:focus{border-color:#9ccbf0;box-shadow:0 0 0 3px rgba(156,203,240,.25);background:#0f1d2a}
html[data-theme="dark"] input::placeholder{color:#7f91a1}
html[data-theme="dark"] .radio-option label{background:#0f1d2a;color:#e8eef4;border-color:#2e4a60}
html[data-theme="dark"] .radio-option input:checked+label{background:#1f6fa8;border-color:#1f6fa8;color:#fff}
html[data-theme="dark"] .btn-secondary{background:#122232;color:#e8eef4;border-color:#2e4a60}
html[data-theme="dark"] .btn-secondary:hover{background:#1a2f42;border-color:#9ccbf0}
html[data-theme="dark"] .btn-copy{background:#122232;color:#f6e6b4;border-color:var(--dmf-gold)}
html[data-theme="dark"] .btn-copy:hover{background:#1a2f42}
html[data-theme="dark"] .btn-primary{background:linear-gradient(135deg,#114a73,#1f6fa8);box-shadow:0 6px 16px rgba(0,0,0,.4)}

/* resultado, tabelas, textos */
html[data-theme="dark"] .result-card{background:#15283a;border-color:var(--dmf-line)}
html[data-theme="dark"] .result-card .label,html[data-theme="dark"] .result-card .unit{color:#a9b8c6}
html[data-theme="dark"] .result-card .value{-webkit-text-fill-color:#f1f5f9;color:#f1f5f9}
html[data-theme="dark"] .result-card.highlight{background:linear-gradient(135deg,#114a73,#1f6fa8)}
html[data-theme="dark"] .result-card.highlight .value{-webkit-text-fill-color:#fff;color:#fff}
html[data-theme="dark"] .results-area h2{color:#f1f5f9}
html[data-theme="dark"] .imc-table,html[data-theme="dark"] .ref-table,html[data-theme="dark"] .results-table,html[data-theme="dark"] .table{border-color:var(--dmf-line)}
html[data-theme="dark"] .imc-table th,html[data-theme="dark"] .ref-table th,html[data-theme="dark"] .results-table th,html[data-theme="dark"] .table th{background:#114a73;color:#fff}
html[data-theme="dark"] .imc-table td,html[data-theme="dark"] .ref-table td,html[data-theme="dark"] .results-table td,html[data-theme="dark"] .table td{background:#122232;color:#e8eef4;border-color:var(--dmf-line)}
html[data-theme="dark"] .imc-table tr:nth-child(even) td,html[data-theme="dark"] .ref-table tr:nth-child(even) td{background:#15283a}
html[data-theme="dark"] .guide-content h3,html[data-theme="dark"] .faq-q,html[data-theme="dark"] .faq-item h3{color:#f1f5f9}
html[data-theme="dark"] .faq-a,html[data-theme="dark"] .guide-content p,html[data-theme="dark"] .guide-content li,html[data-theme="dark"] p,html[data-theme="dark"] li{color:#d5dee7}
html[data-theme="dark"] .ref-list,html[data-theme="dark"] .ref-list li{color:#d5dee7}
html[data-theme="dark"] .cta-box{background:#15283a;border-color:var(--dmf-line)}
html[data-theme="dark"] .cta-box .cta-text{color:#d5dee7}
html[data-theme="dark"] .disclaimer{background:#2a2410;border-left-color:var(--dmf-gold);color:#f1dca0}
html[data-theme="dark"] .disclaimer strong{color:#ffe9a8}
html[data-theme="dark"] .disclaimer-full{background:#122232;border-color:var(--dmf-line);color:#c9d4de}
html[data-theme="dark"] .page-footer{color:#a9b8c6;border-top-color:var(--dmf-line)}
html[data-theme="dark"] .page-footer strong{color:#e8eef4}
html[data-theme="dark"] .popup-box{background:#122232;color:#e8eef4}
html[data-theme="dark"] .popup-box h3{color:#f1f5f9}
html[data-theme="dark"] .popup-box p{color:#d5dee7}
html[data-theme="dark"] .dm-tools button.ghost{background:#122232;color:#e8eef4;border-color:#2e4a60}

@media print{
  html[data-theme="dark"],html[data-theme="dark"] body{background:#fff!important;color:#000!important}
  .dm-tema{display:none!important}
}

/* escuro: textos dentro dos cartões (vence regras por id das páginas antigas) */
html[data-theme="dark"] .card :is(h2,h3,h4){color:#f1f5f9!important}
html[data-theme="dark"] .card :is(p,li,small,span,td,label,.label,.unit):not(.btn):not(.cta-btn):not(.result-card.highlight *):not(.disclaimer *):not(.disclaimer):not(.cta-btn *):not(.radio-option *):not([style*="color"]):not(.badge):not([class*="badge"]){color:#d5dee7!important}
html[data-theme="dark"] .card :is(.value,.result-value){color:#f1f5f9!important;-webkit-text-fill-color:#f1f5f9!important}
html[data-theme="dark"] .result-card.highlight .value{color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme="dark"] .dmsh-nl :is(h2,p,label){color:#e8eef4!important}
html[data-theme="dark"] .dmsh-nl a{color:#9ccbf0!important}
html[data-theme="dark"] .dmsh-nl-lgpd,html[data-theme="dark"] .dmsh-nl-eb{color:#b7c4d0!important}
html[data-theme="dark"] .dmsh-nl-form button{background:var(--dmf-gold);color:#102a3c}
html[data-theme="dark"] .radio-option input:checked+label{color:#fff!important}
/* escuro: cinzas escritos no próprio HTML (style="color:#666" etc.) ficam legíveis; cores com significado não entram aqui */
html[data-theme="dark"] .card :is([style*="color:#666"],[style*="color:#555"],[style*="color:#777"],[style*="color:#444"],[style*="color:#333"],[style*="color:#718096"],[style*="color:#64748b"],[style*="color:#4a5568"],[style*="color:#2d3748"],[style*="color:#6b7280"],[style*="color:#374151"],[style*="color: #666"],[style*="color: #555"],[style*="color: #777"],[style*="color: #444"],[style*="color: #333"]){color:#cfd8e2!important}

/* =====================================================================
   LOTE 1 (14/10): TMB, bioimpedância, guia de medidas — classes próprias dessas páginas
   ===================================================================== */
/* TMB: barra própria + tabela de gasto */
.top-nav{background:linear-gradient(135deg,var(--dmf-nv2) 0%,var(--dmf-nv) 60%,var(--dmf-nv3) 100%);box-shadow:0 2px 12px rgba(13,56,87,.18)}
.nav-brand{color:#fff}
.get-table{border:1px solid var(--dmf-line);border-radius:12px;overflow:hidden}
.get-table th{background:var(--dmf-nv);color:#fff}
.get-table td{border-bottom:1px solid var(--dmf-line)}
.get-table tr.selected td,.get-table tr.active td,.get-table tr.highlight td{background:#fdf8e9;font-weight:600}
/* bioimpedância: progresso e checklist */
.progress-label{color:var(--dmf-ink)}
.progress-bar{background:#e4e9ef}
.progress-fill{background:linear-gradient(90deg,var(--dmf-gold),var(--dmf-gold2))}
.checkbox-item{padding:10px 12px;border:1px solid var(--dmf-line);border-radius:12px;background:#fff;min-height:44px;align-items:center}
.checkbox-item:hover{border-color:var(--dmf-nv)}
.checkbox-item input[type="checkbox"]{accent-color:var(--dmf-nv);width:20px;height:20px;margin-top:0;flex:0 0 auto}
.category-header{color:var(--dmf-nv)}
/* guia de medidas */
.input-field{border:1.5px solid #cfd9e2;border-radius:12px;min-height:48px;font-size:16px;font-family:inherit}
.input-field:focus{border-color:var(--dmf-nv);box-shadow:0 0 0 3px rgba(13,56,87,.14)}
.input-hint{color:var(--dmf-muted)}
.photo-card{border:1px solid var(--dmf-line);border-radius:var(--dmf-r);box-shadow:var(--dmf-sh)}
.photo-section-title,.checklist-header{color:var(--dmf-nv)}
.guidelines-list,.checklist-container{background:#f7f9fb;border:1px solid var(--dmf-line);border-radius:var(--dmf-r)}
.imc-result-card{background:#f7f9fb;border:1px solid var(--dmf-line);border-radius:var(--dmf-r)}
.imc-value{background:none;-webkit-text-fill-color:var(--dmf-nv);color:var(--dmf-nv);font-weight:700}
.dmh-btn{border-radius:999px;border:1.5px solid var(--dmf-nv);color:var(--dmf-nv);background:#fff;font-family:inherit;min-height:40px;padding:8px 16px}
.dmh-btn:hover{background:var(--dmf-nv);color:#fff}
.dmh-manual{border:1px dashed #c8d3de;border-radius:12px}
.btn-success{border-radius:999px} /* verde do WhatsApp/sucesso fica */

/* lote 1 — escuro */
html[data-theme="dark"] .get-table th{background:#114a73}
html[data-theme="dark"] .get-table td{background:#122232;color:#e8eef4;border-color:var(--dmf-line)}
html[data-theme="dark"] .get-table tr.selected td,html[data-theme="dark"] .get-table tr.active td,html[data-theme="dark"] .get-table tr.highlight td{background:#2a2410;color:#f1dca0}
html[data-theme="dark"] .progress-bar{background:#243a4d}
html[data-theme="dark"] .checkbox-item{background:#0f1d2a;border-color:#2e4a60;color:#e8eef4}
html[data-theme="dark"] .checkbox-item:hover{border-color:#9ccbf0}
html[data-theme="dark"] .category-header,html[data-theme="dark"] .photo-section-title,html[data-theme="dark"] .checklist-header{color:#f1f5f9}
html[data-theme="dark"] .input-field{background:#0f1d2a;color:#e8eef4;border-color:#2e4a60}
html[data-theme="dark"] .input-field:focus{border-color:#9ccbf0;box-shadow:0 0 0 3px rgba(156,203,240,.25)}
html[data-theme="dark"] .photo-card,html[data-theme="dark"] .guidelines-list,html[data-theme="dark"] .checklist-container,html[data-theme="dark"] .imc-result-card,html[data-theme="dark"] .dmh-manual{background:#15283a;border-color:var(--dmf-line)}
html[data-theme="dark"] .imc-value{-webkit-text-fill-color:#f1f5f9;color:#f1f5f9}
html[data-theme="dark"] .dmh-btn{background:#122232;color:#e8eef4;border-color:#9ccbf0}
html[data-theme="dark"] .dmh-btn:hover{background:#1f6fa8;color:#fff}
html[data-theme="dark"] .guidelines-list li,html[data-theme="dark"] .dmh-sub,html[data-theme="dark"] .imc-scale-labels{color:#d5dee7}
/* escuro — textos fora dos cartões (histórico do guia de medidas, fotos de progresso, progresso) */
html[data-theme="dark"] :is(main,.container,.content-wrapper,.page-container) :is(h2,h3,h4):not(.hero *):not(.result-card.highlight *):not([style*="color"]){color:#f1f5f9!important}
html[data-theme="dark"] :is(main,.container,.content-wrapper,.page-container) :is(p,li,small,.title,.desc,.dmh-sub,.dmh-nota,.dmh-vazio,.progress-text,.imc-scale-labels,.input-hint,.progress-label):not(.btn):not(.cta-btn):not(.result-card.highlight *):not(.disclaimer *):not(.disclaimer):not(.cta-btn *):not(.radio-option *):not([style*="color"]):not([class*="badge"]):not(.imc-classification){color:#d5dee7!important}
html[data-theme="dark"] #dmh{background:#15283a;border-color:var(--dmf-line)}
html[data-theme="dark"] #dmh table{background:#122232}
html[data-theme="dark"] #dmh th,html[data-theme="dark"] #dmh td{border-color:var(--dmf-line);color:#e8eef4}
html[data-theme="dark"] #dmh th:first-child,html[data-theme="dark"] #dmh td:first-child{background:#122232;color:#9ccbf0}
html[data-theme="dark"] #dmh thead th{background:#114a73;color:#fff}
html[data-theme="dark"] #dmh tbody tr:nth-child(even) td{background:#15283a}
html[data-theme="dark"] #dmh .dmh-var{background:#2a2410!important;color:#f1dca0}
html[data-theme="dark"] .dmh-vazio{background:#0f1d2a;border-color:#2e4a60}
html[data-theme="dark"] .category-icon{filter:none}
html[data-theme="dark"] #dmh .dmh-vazio{background:#0f1d2a;color:#b7c4d0;border-color:#2e4a60}
html[data-theme="dark"] :is(main,.container,.content-wrapper,.page-container) :is(strong,b,span):not(.btn *):not(.cta-btn *):not(.result-card.highlight *):not(.disclaimer *):not(.radio-option *):not([style*="color"]):not([class*="badge"]):not(.imc-classification):not(.value):not(.lang-btn *):not(.hero *){color:#e8eef4!important}
html[data-theme="dark"] :is(main,.container,.content-wrapper,.page-container) :is([style*="color:#888"],[style*="color: #888"],[style*="color:#999"],[style*="color: #999"],[style*="color:#666"],[style*="color: #666"],[style*="color:#555"],[style*="color:#777"],[style*="color:#444"],[style*="color:#333"],[style*="color:#718096"],[style*="color:#64748b"]){color:#cfd8e2!important}
.body-image-note{border-radius:12px;border-left:4px solid var(--dmf-gold)}
html[data-theme="dark"] .body-image-note{background:#2a2410;color:#f1dca0;border-color:var(--dmf-gold)}
html[data-theme="dark"] .body-image-note strong{color:#ffe9a8!important}
.checklist-category{border:1px solid var(--dmf-line);border-radius:var(--dmf-r);background:#f7f9fb}
html[data-theme="dark"] .checklist-category{background:#15283a;border-color:var(--dmf-line)}
html[data-theme="dark"] .checkbox-item{background:#0f1d2a}

/* =====================================================================
   LOTE 2 (14/10): creatina, L-glutamina, vitamina D — modelo "cartões brancos"
   ===================================================================== */
/* fundo e cartões */
html body{background:var(--dmf-bg)}
html .header,html .nav,html .calculator,html .section,html .calculator-section,html .content-wrapper,html .reference-section,html .popup-content{background:#fff;border:1px solid var(--dmf-line);border-radius:var(--dmf-r-lg);box-shadow:var(--dmf-sh)}
html .header{border-top:4px solid var(--dmf-gold)}
html h1:not([class*="hero"] *):not([class*="header"] *):not([class*="-head"] *):not(.lc-cta *):not(.lc-res *):not(.dmsh *):not(.result-card *):not(.cta-section *):not(.contato-box *):not(.res-hero *):not(.ft-disc *):not(.modal *):not(.lc-head){background:none;-webkit-text-fill-color:var(--dmf-nv);color:var(--dmf-nv);font-weight:700}
html .header p,html .meta-desc{color:var(--dmf-muted)}
html .nav a{color:var(--dmf-nv);font-weight:600}
html .nav a:hover{color:var(--dmf-nv3)}
html .section h2,html .calculator h2,html h2:not([class*="hero"] *):not([class*="header"] *):not([class*="-head"] *):not(.lc-cta *):not(.lc-res *):not(.dmsh *):not(.result-card *):not(.cta-section *):not(.contato-box *):not(.res-hero *):not(.ft-disc *):not(.modal *):not(.lc-head){background:none;-webkit-text-fill-color:var(--dmf-nv);color:var(--dmf-nv);font-weight:700}
html h2{border-bottom-color:var(--dmf-gold)}
html .section h3,html h3:not([class*="hero"] *):not([class*="header"] *):not([class*="-head"] *):not(.lc-cta *):not(.lc-res *):not(.dmsh *):not(.result-card *):not(.cta-section *):not(.contato-box *):not(.res-hero *):not(.ft-disc *):not(.modal *):not(.lc-head):not(.medication-section *){color:var(--dmf-ink)}
html .calculator-integrated{background:#fff;border:2px solid var(--dmf-gold);border-radius:var(--dmf-r-lg);box-shadow:var(--dmf-sh)}
/* campos e opções */
html .form-group label{color:var(--dmf-ink)}
html .radio-group label,html .checkbox-label{border:1.5px solid #cfd9e2;border-radius:12px;background:#fff;min-height:48px}
html .radio-group label:hover,html .checkbox-label:hover{border-color:var(--dmf-nv);background:#f4f7fa}
html .radio-group label:has(input:checked),html .checkbox-label:has(input:checked){border-color:var(--dmf-nv);background:#eef4fa}
html .radio-group input,html .checkbox-label input{accent-color:var(--dmf-nv)}
/* resultado */
html .result,html .result-section{background:#f7f9fb;border:1px solid var(--dmf-line);border-left:5px solid var(--dmf-nv);border-radius:var(--dmf-r)}
html .result-section h3{color:var(--dmf-nv)}
html .result-box{border-left:3px solid var(--dmf-gold);border-radius:12px;box-shadow:var(--dmf-sh)}
html .result-value{color:var(--dmf-nv)}
html .highlight-box,html .abbrev-box{background:#f7f9fb;border-left:4px solid var(--dmf-gold);border-radius:12px}
html .reference-list li{border-left:4px solid var(--dmf-gold);border-radius:12px}
html .reference-link{color:var(--dmf-nv)}
html .author-info,html .meta-info{background:#f7f9fb;border-color:var(--dmf-nv);color:var(--dmf-nv);border-radius:12px}
/* seletor de idioma flutuante (glutamina) */
html .language-selector{background:linear-gradient(135deg,var(--dmf-nv2),var(--dmf-nv))}
/* âmbar dos avisos e verde do WhatsApp ficam (.educational-note, .alert-warning, .cta-section, .whatsapp-button) */
html .cta-section,html .whatsapp-button{border-radius:var(--dmf-r-lg)}
html .cta-button{border-radius:999px}

/* lote 2 — escuro */
html[data-theme="dark"] :is(.header,.nav,.calculator,.section,.calculator-section,.content-wrapper,.reference-section,.popup-content,.calculator-integrated){background:var(--dmf-card);border-color:var(--dmf-line)}
html[data-theme="dark"] .calculator-integrated{border-color:rgba(231,201,107,.45)}
html[data-theme="dark"] :is(.header h1,h1,.section h2,.calculator h2,h2){-webkit-text-fill-color:#f1f5f9;color:#f1f5f9}
html[data-theme="dark"] :is(.header p,.meta-desc,.section h3,h3){color:#d5dee7}
html[data-theme="dark"] .nav a{color:#e8eef4}
html[data-theme="dark"] .nav a:hover{color:#9ccbf0}
html[data-theme="dark"] :is(.radio-group label,.checkbox-label){background:#0f1d2a;color:#e8eef4;border-color:#2e4a60}
html[data-theme="dark"] :is(.radio-group label,.checkbox-label):hover{background:#1a2f42;border-color:#9ccbf0}
html[data-theme="dark"] :is(.radio-group label:has(input:checked),.checkbox-label:has(input:checked)){background:#1a3a55;border-color:#9ccbf0}
html[data-theme="dark"] :is(.result,.result-section){background:#15283a;border-color:var(--dmf-line);border-left-color:#9ccbf0}
html[data-theme="dark"] .result-section h3{color:#f1f5f9}
html[data-theme="dark"] :is(.result-box,.highlight-box,.abbrev-box,.reference-list li,.author-info,.meta-info){background:#15283a;color:#e8eef4;border-color:var(--dmf-line)}
html[data-theme="dark"] :is(.result-box,.highlight-box,.abbrev-box,.reference-list li){border-left-color:var(--dmf-gold)}
html[data-theme="dark"] :is(.author-info,.meta-info){border-color:#9ccbf0;color:#9ccbf0}
html[data-theme="dark"] .result-box h4{color:#f1f5f9}
html[data-theme="dark"] .result-value{color:#f1f5f9}
html[data-theme="dark"] .reference-link{color:#9ccbf0}
html[data-theme="dark"] :is(.educational-note,.alert-warning){background:#2a2410;color:#f1dca0;border-color:var(--dmf-gold)}
html[data-theme="dark"] .alert-warning strong,html[data-theme="dark"] .educational-note strong{color:#ffe9a8!important}

/* escuro — blocos com fundo claro escrito no próprio HTML (resultados da creatina, avisos) viram cartões escuros */
html[data-theme="dark"] :is(.result,.result-section,.section,.calculator,.calculator-section,#resultContent,.resultado) [style*="background"]:not(img):not(a):not(button):not([class*="scale"]):not([class*="progress"]):not([class*="bar"]):not([class*="badge"]){background:#15283a!important;color:#e8eef4!important}
html[data-theme="dark"] :is(.result,.result-section,.section,.calculator,.calculator-section,#resultContent,.resultado) [style*="background"]:not(img):not(a):not(button):not([class*="scale"]):not([class*="progress"]):not([class*="bar"]):not([class*="badge"]) :is(h3,h4,p,strong,span,small,li){color:#e8eef4!important}
html[data-theme="dark"] .section[style*="fff3cd"],html[data-theme="dark"] .section[style*="FFF3CD"]{background:#2a2410!important;border-left-color:var(--dmf-gold)!important}
html[data-theme="dark"] .section[style*="fff3cd"] :is(h2,h3,p,li,strong){color:#f1dca0!important}
html[data-theme="dark"] .faq-question{color:#e8eef4}
html[data-theme="dark"] .faq-answer{color:#d5dee7}
html[data-theme="dark"] .faq-item{border-color:var(--dmf-line)}
/* lote 2 — caixas claras próprias (vitamina D, glutamina) */
.warning-box,.main-disclaimer{border-radius:12px;border-left:4px solid var(--dmf-gold)}
.vdr-box,.meta-desc,details{border-radius:12px}
html[data-theme="dark"] :is(.warning-box,.main-disclaimer){background:#2a2410!important;color:#f1dca0!important;border-color:var(--dmf-gold)}
html[data-theme="dark"] :is(.warning-box,.main-disclaimer) :is(p,li,strong,span,h3,h4){color:#f1dca0!important}
html[data-theme="dark"] :is(.vdr-box,.meta-desc,details,summary){background:#15283a!important;color:#e8eef4!important;border-color:var(--dmf-line)}
html[data-theme="dark"] :is(.vdr-box,details) :is(p,li,strong,span,h3,h4,summary){color:#e8eef4!important}
/* escuro — cores de texto escritas no HTML em azul-marinho viram azul-claro */
html[data-theme="dark"] :is(main,.container,.content-wrapper,.page-container) :is([style*="color:#1e3a5f"],[style*="color: #1e3a5f"],[style*="color:#2c5282"],[style*="color: #2c5282"],[style*="color:#0d3857"],[style*="color: #0d3857"],[style*="color:#0D3857"],[style*="color: #0D3857"],[style*="color:#2d3748"],[style*="color: #2d3748"],[style*="color:#4a5568"],[style*="color: #4a5568"]){color:#9ccbf0!important}
/* escuro — parágrafos com fundo claro escrito no HTML */
html[data-theme="dark"] :is(main,.container,.content-wrapper,.page-container) :is(p,div,li)[style*="background"]:not([class*="scale"]):not([class*="progress"]):not([class*="bar"]){background:#15283a!important;color:#e8eef4!important}
html[data-theme="dark"] .cta-button{background:rgba(255,255,255,.18);color:#fff}

html[data-theme="dark"] :is(main,.container,.content-wrapper,.page-container) :is([style*="color: #333"],[style*="color: #444"],[style*="color: #555"],[style*="color: #666"],[style*="color: #777"],[style*="color: #888"],[style*="color: #999"],[style*="color: #718096"],[style*="color: #64748b"],[style*="color: #6b7280"],[style*="color: #374151"]){color:#cfd8e2!important}
html[data-theme="dark"] :is(main,.container,.content-wrapper,.page-container) :is(h2,h3,h4):is([style*="color: #333"],[style*="color:#333"],[style*="color: #444"],[style*="color: #555"],[style*="color:#2d3748"],[style*="color: #2d3748"]){color:#f1f5f9!important}

/* =====================================================================
   LOTE 3 (14/10): EFCA (cream), Castelli e TG/HDL (lc-*) — já em marinho/dourado; aqui: botões em pílula e MODO ESCURO
   ===================================================================== */
html .btn,html .btn-p,html .btn-g,html .btn-gold,html .rbtn,html .cbtn,html .lc-go,html .lc-ghost,html .lc-act button,html .lc-act a{border-radius:999px}
html .opt,html .gate button{border-radius:14px}

/* escuro — EFCA (variáveis da página + fundos brancos/creme) */
html[data-theme="dark"]{--navy:#9ccbf0;--cream:#15283a;--cream2:#1a2f42;--ink:#e8eef4;--muted:#a9b8c6;--line:#243a4d;
  --mut:#a9b8c6;--bg:#0b1620}
html[data-theme="dark"] .topbar{background:#071f33}
html[data-theme="dark"] header.site{background:#0f1d2a;border-color:var(--dmf-line)}
html[data-theme="dark"] :is(.card,.qcard,.opt,.gate button,.pheno,.cmp,.disc,details,.actbar .ab,.cmp .cbtn.ghost,.res-actions .rbtn.ghost){background:#15283a;color:#e8eef4;border-color:var(--dmf-line)}
html[data-theme="dark"] .qcard{box-shadow:0 10px 30px rgba(0,0,0,.45)}
html[data-theme="dark"] :is(.opt:hover,.gate button:hover){background:#1a2f42;border-color:var(--dmf-gold)}
html[data-theme="dark"] .opt.sel{background:#1f6fa8;border-color:#1f6fa8;color:#fff}
html[data-theme="dark"] .btn-p{background:#1f6fa8;color:#fff}
html[data-theme="dark"] .btn-p:hover{background:#2a7fc0}
html[data-theme="dark"] .btn-g{color:#f6e6b4}
html[data-theme="dark"] .btn-g:hover{background:#2a2410}
html[data-theme="dark"] .btn-gold{color:#102a3c}
html[data-theme="dark"] :is(.qtext,.gate button b,.res-bar .lbl,.disc strong,.brand){color:#f1f5f9}
html[data-theme="dark"] :is(.pcount,.gate button span,.nav a,.hero p.lead,.sub){color:#a9b8c6}
html[data-theme="dark"] .pbar,html[data-theme="dark"] .res-bar .track{background:#243a4d}
html[data-theme="dark"] .res-bar .track>i{background:#9ccbf0}
html[data-theme="dark"] .chip{background:#1a2f42;color:#e8eef4;border-color:var(--dmf-line)}

/* escuro — Castelli / TG-HDL */
html[data-theme="dark"] :is(.lc-card,.lc-unit,.lc-note,.lc-toc,.lc-tbl,.lc-faq details,.lc-disc,.lc-ghost,.lc-links a){background:#122232;color:#e8eef4;border-color:var(--dmf-line)}
html[data-theme="dark"] .lc-card{box-shadow:0 30px 70px -30px rgba(0,0,0,.8)}
html[data-theme="dark"] .lc-unit{background:#15283a}
html[data-theme="dark"] .lc-seg{background:#0f1d2a}
html[data-theme="dark"] .lc-seg button{color:#e8eef4}
html[data-theme="dark"] .lc-seg button.on{background:#1f6fa8;color:#fff}
html[data-theme="dark"] :is(.lc-in input,.lc-in select){background:#0f1d2a;color:#e8eef4;border-color:#2e4a60}
html[data-theme="dark"] .lc-in .u{background:#1a2f42;color:#9ccbf0}
html[data-theme="dark"] .lc-err{background:#3a1d1a;color:#ffb0ad}
html[data-theme="dark"] .lc-tbl th,html[data-theme="dark"] th{background:#114a73;color:#fff}
html[data-theme="dark"] .lc-tbl td{border-color:var(--dmf-line);color:#e8eef4}
html[data-theme="dark"] .lc-tbl tr:nth-child(even) td{background:#15283a}
html[data-theme="dark"] :is(.lc-f label,.lc-unit b,.lc-art h2,.lc-art h3,.lc-ttl){color:#f1f5f9}
html[data-theme="dark"] :is(.lc-hint,.lc-rev,.lc-f label small,.lc-art p,.lc-art li,.lc-note,.lc-disc){color:#d5dee7}
html[data-theme="dark"] .lc-hint.warn{color:#ffd27a}
html[data-theme="dark"] .lc-links a{color:#9ccbf0}
html[data-theme="dark"] .lc-ghost{color:#e8eef4;border-color:#2e4a60}

/* hero (EFCA e demais): título e texto sempre claros sobre o marinho */
html .hero h1,html .hero h2,html .hero .qtext{color:#fff!important}
html .hero p,html .hero .lead,html .hero p.lead{color:rgba(255,255,255,.88)!important}
html .hero .eyebrow{color:var(--dmf-gold2)}
html .hero strong{color:#fff}

/* =====================================================================
   LOTE 4 (14/10): Mounjaro, BI-RADS (navigation/header/section), semaglutida manipulada, comparativa de custos
   As cores das canetas e dos exames (pen-*, exam-*) têm significado e ficam.
   ===================================================================== */
html .navigation{background:#fff;border:1px solid var(--dmf-line);border-radius:var(--dmf-r-lg);box-shadow:var(--dmf-sh)}
html .navigation h2{color:var(--dmf-nv)}
html .nav-btn{background:var(--dmf-nv);color:#fff;border-radius:999px;font-weight:600}
html .nav-btn:hover{background:var(--dmf-nv3)}
html .section{background:#fff;border:1px solid var(--dmf-line);border-radius:var(--dmf-r-lg);box-shadow:var(--dmf-sh)}
html .header{background:linear-gradient(135deg,var(--dmf-nv2) 0%,var(--dmf-nv) 55%,var(--dmf-nv3) 100%);border-top:0;border-bottom:2px solid var(--dmf-gold)}
html .header h1,html .header .main-title,html .header p,html .header .subtitle{color:#fff;-webkit-text-fill-color:#fff}
html .language-btn{border-radius:999px;background:rgba(255,255,255,.12);color:#fff}
html .language-btn.active{box-shadow:0 0 0 2px var(--dmf-gold);background:#fff;color:var(--dmf-nv)}
html .language-selector .language-btn{color:inherit}
html .dose-value,html .click-number,html .result-value{color:var(--dmf-nv)}
html .dose-slider{background:linear-gradient(to right,var(--dmf-gold) 0%,var(--dmf-gold) var(--fill-percent,0%),#e3e8ee var(--fill-percent,0%),#e3e8ee 100%)}
html .dose-slider::-webkit-slider-thumb{border-color:var(--dmf-nv)}
html .dose-slider::-moz-range-thumb{border-color:var(--dmf-nv)}
html .click-display,html .results-display{background:#f7f9fb;border:1px solid var(--dmf-line);border-radius:var(--dmf-r)}
html .info-box{background:#f7f9fb;border-left:4px solid var(--dmf-gold);border-radius:12px}
html .info-box strong{color:var(--dmf-nv)}
html .category-btn{border-radius:12px;border-color:#cfd9e2;min-height:48px}
html .category-btn:hover{border-color:var(--dmf-nv)}
html .category-btn.active{border-color:var(--dmf-nv);background:#eef4fa;color:var(--dmf-nv)}
html .conduct-display{border-left-color:var(--dmf-gold);border-radius:12px}
html .conduct-icon{color:var(--dmf-nv)}
html .guide-section h2,html .guide-section h3,html .references h3,html .teleconsulta-popup h3{color:var(--dmf-nv)}
html .references{background:#f7f9fb;border:1px solid var(--dmf-line);border-radius:12px}
html .references li:before{color:var(--dmf-gold)}
html .references a{color:var(--dmf-nv)}
html thead tr{background:var(--dmf-nv)}
html table{border-radius:12px;box-shadow:var(--dmf-sh)}
/* manipulada */
html .container{box-shadow:var(--dmf-sh)}
html .tool-container{background:#f7f9fb;border:1px solid var(--dmf-line);border-radius:var(--dmf-r)}
html .concentration-setup{border-left-color:var(--dmf-gold);border-radius:12px}
html .dose-input-box{border-color:#cfd9e2;border-radius:12px}
html .unit-label{background:var(--dmf-nv);border-radius:999px}
html .result-card{background:#f7f9fb;border:1px solid var(--dmf-line)}
html .tool-container .result-card{background:linear-gradient(135deg,var(--dmf-nv2),var(--dmf-nv) 60%,var(--dmf-nv3));color:#fff;border:0;box-shadow:var(--dmf-sh-lg)}
html .tool-container .result-card .value,html .tool-container .result-card .result-value{color:#fff;-webkit-text-fill-color:#fff}
html .educational-note{border-radius:12px}
html footer{color:var(--dmf-muted)}
/* custos */
html .card-header{background:linear-gradient(135deg,var(--dmf-nv2),var(--dmf-nv) 60%,var(--dmf-nv3));border-bottom:2px solid var(--dmf-gold)}
html .tab-button{border-radius:999px;border:1.5px solid #cfd9e2;background:#fff;color:var(--dmf-nv)}
html .tab-button.active{background:var(--dmf-nv);color:#fff;border-color:var(--dmf-nv)}
html .medication-section{background:#f7f9fb;border-color:var(--dmf-line);border-radius:var(--dmf-r)}
html .medication-section.original{border-color:var(--dmf-nv)}
html .medication-section.original h3{background:var(--dmf-nv)}
html .dose-option{border-radius:999px;border-color:#cfd9e2}
html .dose-option:hover{border-color:var(--dmf-nv)}
html .dose-option.selected{background:var(--dmf-nv);border-color:var(--dmf-nv);color:#fff}
html .result-section{background:#f7f9fb;border:1px solid var(--dmf-line);border-left:5px solid var(--dmf-nv)}
html .result-card.original{background:linear-gradient(135deg,var(--dmf-nv2),var(--dmf-nv) 60%,var(--dmf-nv3));color:#fff}
html .btn-secondary{background:#fff;color:var(--dmf-nv);border-color:#cfd9e2}
html .input-group input:focus{border-color:var(--dmf-nv);box-shadow:0 0 0 3px rgba(13,56,87,.14)}

/* lote 4 — escuro */
html[data-theme="dark"] :is(.navigation,.section,.container,.click-display,.results-display,.info-box,.references,.tool-container,.concentration-setup,.dose-input-box,.medication-section,.result-section,.teleconsulta-popup,.result-card,.conduct-display,table,tbody tr:nth-child(even),tbody tr:hover){background:#122232;color:#e8eef4;border-color:var(--dmf-line)}
html[data-theme="dark"] :is(.click-display,.results-display,.info-box,.references,.tool-container,.medication-section,.result-section,.result-card){background:#15283a}
html[data-theme="dark"] .navigation h2,html[data-theme="dark"] .guide-section h2,html[data-theme="dark"] .guide-section h3,html[data-theme="dark"] .references h3,html[data-theme="dark"] .teleconsulta-popup h3{color:#f1f5f9}
html[data-theme="dark"] :is(.dose-value,.click-number,.result-value,.info-box strong){color:#f1f5f9}
html[data-theme="dark"] .category-btn{background:#0f1d2a;color:#e8eef4;border-color:#2e4a60}
html[data-theme="dark"] .category-btn.active{background:#1a3a55;border-color:#9ccbf0;color:#fff}
html[data-theme="dark"] .references a{color:#9ccbf0}
html[data-theme="dark"] thead tr{background:#114a73}
html[data-theme="dark"] :is(td,th){color:#e8eef4;border-color:var(--dmf-line)}
html[data-theme="dark"] .educational-note{background:#15283a;color:#d5dee7;border-left-color:#9ccbf0}
html[data-theme="dark"] :is(.tab-button,.dose-option,.btn-secondary){background:#122232;color:#e8eef4;border-color:#2e4a60}
html[data-theme="dark"] :is(.tab-button.active,.dose-option.selected){background:#1f6fa8;border-color:#1f6fa8;color:#fff}
html[data-theme="dark"] .savings,html[data-theme="dark"] .educational-notice{background:#2a2410;color:#f1dca0;border-color:var(--dmf-gold)}
html[data-theme="dark"] footer{background:#0f1d2a;color:#a9b8c6}
html[data-theme="dark"] .unit-label{background:#1f6fa8}
html[data-theme="dark"] .dose-slider{background:linear-gradient(to right,var(--dmf-gold) 0%,var(--dmf-gold) var(--fill-percent,0%),#243a4d var(--fill-percent,0%),#243a4d 100%)}
html[data-theme="dark"] .language-btn.active{background:#fff;color:var(--dmf-nv)}
html .dmev-nota{border-left-color:var(--dmf-gold)}
html[data-theme="dark"] .dmev{color:#d5dee7}
html[data-theme="dark"] .dmev-nota{background:#15283a;color:#e8eef4;border-left-color:var(--dmf-gold)}
html[data-theme="dark"] .dmev-alerta{background:#2a2410;color:#f1dca0}
html[data-theme="dark"] .dmev-wrap{border-color:var(--dmf-line)}
html[data-theme="dark"] .dmev th{background:#114a73}
html[data-theme="dark"] .dmev td{border-color:var(--dmf-line);color:#e8eef4;background:#122232}
html[data-theme="dark"] .dose-label,html[data-theme="dark"] .dose-label-text,html[data-theme="dark"] .conduct-text,html[data-theme="dark"] .result-title,html[data-theme="dark"] .result-subtitle{color:#e8eef4}

/* escuro — títulos: a cor de preenchimento acompanha a cor (páginas antigas usavam texto em degradê) */
html[data-theme="dark"] :is(h1,h2,h3,h4,h5):not(.dmsh *){-webkit-text-fill-color:currentColor!important}
html .header :is(h1,h2,.main-title),html .card-header :is(h1,h2,h3){color:#fff!important;-webkit-text-fill-color:#fff!important;background:none!important}
/* escuro — portão/modal do cabeçalho compartilhado (dm-shell) */
html[data-theme="dark"] .dmsh-modal{background:#122232;color:#e8eef4}
html[data-theme="dark"] .dmsh-modal h2{color:#f1f5f9}
html[data-theme="dark"] .dmsh-modal .sub,html[data-theme="dark"] .dmsh-leave{color:#a9b8c6}
html[data-theme="dark"] .dmsh-decl{background:#15283a;border-color:var(--dmf-line)}
html[data-theme="dark"] .dmsh-decl span{color:#e8eef4}
html[data-theme="dark"] .dmsh-disc{background:#0f1d2a;border-color:var(--dmf-line);color:#b7c4d0}
html[data-theme="dark"] .dmsh-enter{background:#2e4a60}
html[data-theme="dark"] .dmsh-enter.ready{background:linear-gradient(135deg,#114a73,#1f6fa8)}
html[data-theme="dark"] .dmsh-pro{background:#2a2410;color:#f1dca0;border-color:var(--dmf-gold)}

/* =====================================================================
   LOTE 5 (14/10): Doses UI (#dmcalc), fertilidade (vars --primary), fator de correção, MRPA, peptídeos, hub /ferramentas/
   ===================================================================== */
/* variáveis das páginas: roxo → marinho (fertilidade, peptídeos), azul → marinho (Doses UI) */
html:root{--primary:#0d3857;--secondary:#114a73;--accent1:#0d3857;--accent2:#174f7a;--blue-fill:#c9d8ea}
html #dmcalc{--blue:#0d3857;--cyan:#c9a227;--ink:#102a3c;--mut:#5b6b79;--bg:#f6f8fb;font-family:'Poppins',system-ui,sans-serif}
html #dmcalc .hero{background:linear-gradient(135deg,var(--dmf-nv2) 0%,var(--dmf-nv) 55%,var(--dmf-nv3) 100%);border-bottom:2px solid var(--dmf-gold)}
html #dmcalc .card{border:1px solid var(--dmf-line);box-shadow:var(--dmf-sh)}
html #dmcalc .conc{background:#fdf8e9;border-color:var(--dmf-gold2);color:#7a5a12}
html #dmcalc .dosebox{background:#f7f9fb;border-color:var(--dmf-line)}
html #dmcalc .dosebox input{border-color:#cfd9e2;border-radius:12px}
html #dmcalc .dosebox input:focus{border-color:var(--dmf-nv);outline:none;box-shadow:0 0 0 3px rgba(13,56,87,.14)}
html #dmcalc .stat{background:#f7f9fb;border-color:var(--dmf-line)}
html #dmcalc .stat b{color:var(--dmf-nv)}
html #dmcalc .syr-fill{background:linear-gradient(90deg,var(--dmf-gold2),var(--dmf-gold))}
html #dmcalc .syr-track{border-color:#8fa3b8}
html #dmcalc .btn{border-radius:999px;min-height:46px;font-family:inherit}
html #dmcalc .btn-s{background:#fff;color:var(--dmf-nv);border:1.5px solid #cfd9e2}
html #dmcalc .warn{border-radius:12px}
html #dmcalc details{border-color:var(--dmf-line);border-radius:12px}
/* fertilidade */
html nav.primary{border-bottom:1px solid var(--dmf-line)}
html .tab{border-radius:999px;background:#fff;border-color:#cfd9e2;color:var(--dmf-nv);font-weight:600;min-height:44px}
html .tab[aria-selected="true"]{background:var(--dmf-nv);color:#fff}
html .result{background:#f7f9fb;border:1px solid var(--dmf-line);border-left:4px solid var(--dmf-nv);border-radius:12px}
html .badge{border-radius:999px}
html .focus-panel,html .phase-panel .box{border-color:var(--dmf-line);border-radius:12px}
html input:not([type=range]):not([type=checkbox]):not([type=radio]),html select,html textarea{font-family:inherit}
/* fator de correção */
html .calculator-section{background:#f7f9fb;border:1px solid var(--dmf-line);border-radius:var(--dmf-r)}
html #resultado{background:#f7f9fb;border:1px solid var(--dmf-line);border-left:5px solid var(--dmf-nv);border-radius:var(--dmf-r)}
html .resultado-isf{color:var(--dmf-nv);border-radius:12px}
html .resultado-exemplo{border-left-color:var(--dmf-nv)}
html .formulas-box{background:#f7f9fb;border-left-color:var(--dmf-gold);border-radius:12px}
html .referencias{background:#f7f9fb;border:1px solid var(--dmf-line);border-radius:12px}
html .contato-box{background:linear-gradient(135deg,var(--dmf-nv2),var(--dmf-nv) 60%,var(--dmf-nv3));border-radius:var(--dmf-r-lg)}
html .tabela-insulinas thead{background:var(--dmf-nv)}
html .sticky-nav{background:var(--dmf-nv)}
html .caixa-ddt{border-color:var(--dmf-gold);border-radius:12px}
html .ddt-somar .btn-usar{background:var(--dmf-nv);border-radius:999px}
html .leia-grid a{border-radius:12px}
html .leia-grid a:hover{border-color:var(--dmf-gold)}
html .faq details{border-radius:12px}
/* MRPA (monitoramento) */
html .hero{border-bottom:2px solid var(--dmf-gold)}
html .tab-nav-wrap{border-bottom-color:var(--dmf-line)}
html .tab-btn.active,html .tab-btn[aria-selected="true"]{color:var(--dmf-nv);border-bottom-color:var(--dmf-gold)}
html .step-num{background:var(--dmf-nv)}
html .evidence-badge{background:#fdf8e9;color:#7a5a12;border-color:var(--dmf-gold2)}
html .ref-table th,html .diary-table th,html th{background:var(--dmf-nv)}
html .diary-table td.day-col{color:var(--dmf-nv);background:#f7f9fb!important}
html .print-btn{background:var(--dmf-nv);border-radius:999px}
html .print-btn:hover{background:var(--dmf-nv3)}
html .print-btn-outline{background:transparent;color:var(--dmf-nv);border-color:var(--dmf-nv)}
html .print-btn-outline:hover{background:#f4f7fa}
html .tip{border-left-color:var(--dmf-gold)}
html .site-footer{background:var(--dmf-nv2)}
/* peptídeos */
html .opt.active{background:var(--dmf-nv);border-color:var(--dmf-nv)}
html .res-hero{background:linear-gradient(135deg,var(--dmf-nv2),var(--dmf-nv) 60%,var(--dmf-nv3))}
html .results{background:#f7f9fb}
html .rbtn{border-color:var(--dmf-nv);color:var(--dmf-nv);border-radius:999px}
html .rbtn:hover{background:var(--dmf-nv)}
html .disc{border-left-color:var(--dmf-gold)}
html .langsw button.active{background:var(--dmf-nv)}
html .m-enter.ready{background:linear-gradient(135deg,var(--dmf-nv2),var(--dmf-nv3))}
html .menu>li>a:hover,html .submenu a:hover{color:var(--dmf-nv3);background:#f4f7fa}
html input[type=range]::-webkit-slider-thumb{border-color:var(--dmf-nv)}
html input[type=range]::-moz-range-thumb{border-color:var(--dmf-nv)}

/* lote 5 — escuro */
html[data-theme="dark"]{--card:#122232;--dim:#1a2f42;--blue-fill:#2e4a60;--menses:#3a1d1a;--fert:#17352a;--peri:#17352a;--white:#122232}
html[data-theme="dark"] #dmcalc{--ink:#e8eef4;--mut:#a9b8c6;--bg:#0b1620;--card:#122232;color:#e8eef4;background:#0b1620}
html[data-theme="dark"] #dmcalc :is(.card,.dosebox,.stat,details,.conc){background:#15283a;border-color:var(--dmf-line);color:#e8eef4}
html[data-theme="dark"] #dmcalc .conc{background:#2a2410;color:#f1dca0;border-color:var(--dmf-gold)}
html[data-theme="dark"] #dmcalc .dosebox input{background:#0f1d2a;color:#e8eef4;border-color:#2e4a60}
html[data-theme="dark"] #dmcalc .stat b{color:#f1f5f9}
html[data-theme="dark"] #dmcalc .syr-track{background:linear-gradient(#1a2f42,#0f1d2a);border-color:#5b7792}
html[data-theme="dark"] #dmcalc .btn-s{background:#122232;color:#e8eef4;border-color:#2e4a60}
html[data-theme="dark"] #dmcalc .btn-c{background:#17352a;color:#7fe0ad;border-color:#1e7a46}
html[data-theme="dark"] #dmcalc .warn{background:#2a2410;color:#f1dca0;border-color:var(--dmf-gold)}
html[data-theme="dark"] #dmcalc .refs li,html[data-theme="dark"] #dmcalc p,html[data-theme="dark"] #dmcalc li{color:#d5dee7}
html[data-theme="dark"] #dm5010{background:#15283a;border-color:var(--dmf-line)}
html[data-theme="dark"] #dm5010 .seg,html[data-theme="dark"] #dm5010 .seg button{background:#0f1d2a;color:#e8eef4;border-color:#2e4a60}
html[data-theme="dark"] #dm5010 .seg button.on{background:#1f6fa8;color:#fff}
html[data-theme="dark"] #dm5010 .bar{background:#243a4d}
html[data-theme="dark"] .site-head,html[data-theme="dark"] nav.primary,html[data-theme="dark"] .site-header,html[data-theme="dark"] .tab-nav-wrap{background:#0f1d2a;border-color:var(--dmf-line)}
html[data-theme="dark"] :is(.tab,.badge,.focus-panel,.phase-panel .box,.result,.calculator-section,#resultado,.resultado-isf,.resultado-exemplo,.formulas-box,.referencias,.caixa-ddt,.ddt-somar,.leia-grid a,.faq details,.card,.tip,.res-cell,.results,.opt,.rbtn,.disc,.ft-card,.modal,.decl,.m-disc,.popup){background:#15283a;color:#e8eef4;border-color:var(--dmf-line)}
html[data-theme="dark"] :is(.tab[aria-selected="true"],.opt.active){background:#1f6fa8;color:#fff;border-color:#1f6fa8}
html[data-theme="dark"] :is(.resultado-calculo,.ddt-ajuda,.disc.warn2,.warn){background:#2a2410;color:#f1dca0;border-color:var(--dmf-gold)}
html[data-theme="dark"] :is(.resultado-aviso,.regra15){background:#3a1d1a;color:#ffb0ad;border-color:#8e2a1f}
html[data-theme="dark"] .resultado-isf{color:#f1f5f9}
html[data-theme="dark"] .calendar .day{color:#e8eef4}
html[data-theme="dark"] .day.h{background:#1a3a55}
html[data-theme="dark"] .day.m{color:#ffb0ad}
html[data-theme="dark"] .day.f,html[data-theme="dark"] .day.peri{color:#7fe0ad}
html[data-theme="dark"] .calendar .day .tag{background:#0f1d2a;color:#e8eef4;border-color:#2e4a60}
html[data-theme="dark"] .tab-btn{color:#a9b8c6}
html[data-theme="dark"] .tab-btn.active{color:#f1f5f9}
html[data-theme="dark"] .evidence-badge{background:#2a2410;color:#f1dca0}
html[data-theme="dark"] :is(.schedule-card,.alert,.cta-card){background:#15283a!important;color:#e8eef4;border-color:var(--dmf-line)!important}
html[data-theme="dark"] .alert.warning{background:#2a2410!important;color:#f1dca0}
html[data-theme="dark"] .alert.danger{background:#3a1d1a!important;color:#ffb0ad}
html[data-theme="dark"] .diary-table td,html[data-theme="dark"] .ref-table td{background:#122232;color:#e8eef4;border-color:var(--dmf-line)}
html[data-theme="dark"] .diary-table td.day-col{background:#15283a!important;color:#9ccbf0}
html[data-theme="dark"] .print-btn-outline{color:#9ccbf0;border-color:#9ccbf0}
html[data-theme="dark"] .ft-aviso{background:#2a2410;color:#f1dca0;border-color:var(--dmf-gold)}
html[data-theme="dark"] .ft-sec.alt{background:#0f1d2a;border-color:var(--dmf-line)}
html[data-theme="dark"] .ft-card{background:#15283a}
html[data-theme="dark"] .ft-card:hover{border-color:var(--dmf-gold)}
html[data-theme="dark"] :is(.ft-card b,.ft-card strong,.ft-grp h3,.ft-head h2){color:#f1f5f9}
html[data-theme="dark"] :is(.ft-card span,.ft-card p,.ft-head p){color:#d5dee7}
html[data-theme="dark"] .langsw button{background:#122232;color:#e8eef4;border-color:#2e4a60}
html[data-theme="dark"] .langsw button.active{background:#1f6fa8;color:#fff}
html[data-theme="dark"] .burger{color:#e8eef4;border-color:#2e4a60}
html[data-theme="dark"] .menu,html[data-theme="dark"] .submenu{background:#122232;border-color:var(--dmf-line)}
html[data-theme="dark"] :is(.menu>li>a,.submenu a){color:#e8eef4}
html[data-theme="dark"] :is(.menu>li>a:hover,.submenu a:hover){background:#1a2f42;color:#fff}
html[data-theme="dark"] .m-enter{background:#2e4a60}
html[data-theme="dark"] .m-enter.ready{background:linear-gradient(135deg,#114a73,#1f6fa8)}
html[data-theme="dark"] #dm5010 .t,html[data-theme="dark"] #dm5010 .msg b{color:#f1f5f9}
html[data-theme="dark"] #dm5010 .msg{color:#d5dee7}
html[data-theme="dark"] #dm5010 .warn{background:#2a2410;color:#f1dca0;border-color:var(--dmf-gold)}
html[data-theme="dark"] .site-head{background:#0f1d2a}
html[data-theme="dark"] .site-head nav a,html[data-theme="dark"] .site-head .logo{color:#e8eef4}
html[data-theme="dark"] .site-head .logo small{color:#a9b8c6}
/* escuro — bloco de newsletter do Elementor embutido em algumas páginas */
html[data-theme="dark"] :is(.elementor-heading-title,.elementor-field-label,.elementor-widget-text-editor,.elementor-widget-text-editor p){color:#e8eef4!important}
html[data-theme="dark"] .elementor-field-group input{background:#0f1d2a;color:#e8eef4;border-color:#2e4a60}
html[data-theme="dark"] :is(.elementor-section,.e-con,.elementor-element)[data-element_type]{background-color:transparent}
html[data-theme="dark"] .elementor-widget-container{color:#e8eef4}

/* peptídeos — portão próprio no escuro */
html[data-theme="dark"] .modal{background:#122232;color:#e8eef4}
html[data-theme="dark"] .modal h2,html[data-theme="dark"] .modal .sub{color:#f1f5f9}
html[data-theme="dark"] .decl span,html[data-theme="dark"] .m-disc{color:#d5dee7}
html[data-theme="dark"] .ft-hero h1,html[data-theme="dark"] .ft-hero p{color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme="dark"] nav.primary a,html[data-theme="dark"] nav.primary .brand{color:#e8eef4}
html[data-theme="dark"] nav.primary a:hover{color:#9ccbf0}

/* =====================================================================
   LOTE 6 (14/10): páginas de ferramenta no WordPress — testosterona (#dmT-app) e ISI (.isi-*) + rodapé/newsletter do WP (.dmf-*)
   Já são marinho/dourado; aqui só pílulas, Poppins e MODO ESCURO.
   ===================================================================== */
html .isi-question .question-number{background:var(--dmf-nv)}
html .isi-btn,html .isi-btn-secondary,html .dmT-t,html #dmT-app .dmT-ex button{border-radius:999px}
html .isi-question select{border-radius:12px}

html[data-theme="dark"] #dmT-app{--linha:#243a4d;--fundo:#15283a;--suave:#a9b8c6;--okbg:#17352a;--okbd:#1e7a46;--atbg:#2a2410;--atbd:#8a6d20;--bxbg:#3a1d1a;--bxbd:#8e2a1f;color:#e8eef4}
html[data-theme="dark"] #dmT-app :is(.dmT-shell,.dmT-t,.dmT-seg button[aria-pressed="true"],.dmT-det summary,.dmT-det[open] summary,.dmT-in input,.dmT-in select,.dmT-fixa){background:#122232!important;color:#e8eef4;border-color:#2e4a60}
html[data-theme="dark"] #dmT-app :is(.dmT-kpi,.dmT-aviso,.dmT-nota,.dmT-dica,.dmT-eg,.dmT-legal){background:#15283a;color:#e8eef4;border-color:var(--dmf-line)}
html[data-theme="dark"] #dmT-app .dmT-i-ok{color:#7fe0ad}
html[data-theme="dark"] #dmT-app .dmT-i-at{color:#ffd27a}
html[data-theme="dark"] #dmT-app .dmT-i-bx{color:#ffb0ad}
html[data-theme="dark"] #dmT-app :is(h2,h3,h4,label,b,strong,p,small,span,li,summary){color:#e8eef4}
html[data-theme="dark"] #dmT-app .dmT-top :is(h1,h2,p,span){color:#fff}
html[data-theme="dark"] #dmT-app .dmT-seg button{color:#a9b8c6}
html[data-theme="dark"] #dmT-app .dmT-seg button[aria-pressed="true"]{color:#fff;background:#1f6fa8!important}
html[data-theme="dark"] :is(.isi-form,.isi-question,.isi-result,.isi-btn-secondary,.isi-popup-content,.isi-question select){background:#122232!important;color:#e8eef4!important;border-color:#2e4a60!important}
html[data-theme="dark"] .isi-question.completed{border-color:#1e7a46!important;background:#17352a!important}
html[data-theme="dark"] .isi-question .example-text{color:#a9b8c6!important;background:#15283a!important}
html[data-theme="dark"] :is(.isi-warning,.isi-legal){background:#2a2410!important;color:#f1dca0!important;border-color:var(--dmf-gold)!important}
html[data-theme="dark"] .isi-result.has-result{background:#15283a!important;color:#e8eef4!important}
html[data-theme="dark"] :is(.isi-form,.isi-question,.isi-result,.isi-popup-content) :is(h2,h3,h4,label,p,li,strong,span,small):not(.isi-badge){color:#e8eef4!important}
/* rodapé/newsletter do WordPress */
html[data-theme="dark"] .dmf-lead{background:#0f1d2a;border-color:var(--dmf-line)}
html[data-theme="dark"] .dmf-lead :is(h2,h3,p,label,.dmf-lead-txt,.dmf-eyebrow){color:#e8eef4!important}
html[data-theme="dark"] .dmf-lgpd,html[data-theme="dark"] .dmf-note{color:#b7c4d0!important}
html[data-theme="dark"] .dmf-form input{background:#122232;color:#e8eef4;border-color:#2e4a60}
html[data-theme="dark"] .dmf-form button{background:var(--dmf-gold);color:#102a3c}
html[data-theme="dark"] .dmf-sr{color:transparent}
html[data-theme="dark"] .elementor-widget-container :is(h1,h2,h3){color:#f1f5f9!important}
html .isi-header,html .isi-calculator{background:linear-gradient(135deg,var(--dmf-nv2) 0%,var(--dmf-nv) 55%,var(--dmf-nv3) 100%)!important}
html .isi-calculator{border-radius:var(--dmf-r-lg)}
html .isi-badge{border:1px solid rgba(231,201,107,.45)}
html .isi-cta{border-radius:12px}
html .isi-btn{background:linear-gradient(135deg,var(--dmf-gold2),var(--dmf-gold));color:#2a1f05}

/* ---------- seletor de idioma (dm-tema.js v2) ---------- */
.dm-idioma{display:inline-flex;align-items:center;gap:2px;margin-right:8px;padding:3px;border:1.5px solid var(--dmf-line);border-radius:999px;background:#fff}
.dm-idioma a{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:30px;padding:0 9px;border-radius:999px;font:600 .74rem/1 'Poppins',system-ui,sans-serif;letter-spacing:.06em;color:var(--dmf-nv);text-decoration:none}
.dm-idioma a:hover{background:#f4f7fa}
.dm-idioma a.on{background:var(--dmf-nv);color:#fff}
.dm-idioma-fixo{position:fixed;left:62px;bottom:14px;z-index:9000;box-shadow:var(--dmf-sh)}
html[data-theme="dark"] .dm-idioma{background:#122232;border-color:var(--dmf-line)}
html[data-theme="dark"] .dm-idioma a{color:#e8eef4}
html[data-theme="dark"] .dm-idioma a:hover{background:#1a2f42}
html[data-theme="dark"] .dm-idioma a.on{background:#1f6fa8;color:#fff}
/* os seletores de idioma que cada página tinha por conta própria saem de cena quando a página tem versões por endereço */
html[data-dm-lang] :is(.lang-switcher,.language-selector,.langsw,.lc-lang,.langs,.lang-bar,.dmc-lang,.lang-buttons){display:none!important}
@media (max-width:480px){.dm-idioma a{min-width:30px;padding:0 6px;font-size:.68rem}}

/* ---- 15/10/2026 (v20261015b): sobras de WordPress copiadas para 3 páginas estáticas (manipulada, fertilidade, fator de
   insulina) — banner de cookies do Complianz sem o CSS/JS dele (ícone gigante + "Gerenciar consentimento" cru) e um
   formulário antigo de newsletter do Elementor ("Blog Dr. Diegomaier / Assinar"), ambos mortos. Só nas estáticas
   (o body do WordPress tem "page-id-…", onde o Complianz funciona de verdade e não deve ser escondido). */
html body:not([class*="page-id"]) :is(#cmplz-cookiebanner-container,.cmplz-cookiebanner,.cmplz-manage-consent,
  .elementor-element-2d799785,.elementor-element-5f3eb12,.elementor-element-24574bd6,.elementor-element-4628cf65,.elementor-element-6542fa66){display:none!important}

/* ---- 15/10/2026 (v20261015d): peptídeos — o submenu "Ferramentas ▾" do cabeçalho próprio da página fica escondido
   (visibility:hidden) mas 17px além da borda direita em 1280px, criando rolagem lateral no desktop. Alinhado à direita. */
@media (min-width:1024px){ html .menu>li.has-sub:last-child .submenu, html .menu>li.has-sub:nth-last-child(2) .submenu{left:auto;right:0} }
