/* ===================== ÁREA CONDUTAS ===================== */
.abas-modo { display: flex; gap: 6px; padding: 8px 12px 0; max-width: 1200px; margin: 0 auto; }
.aba-modo { flex: 1; max-width: 200px; padding: 8px 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); border-radius: 8px; font-weight: 800; font-size: 13px; cursor: pointer; }
.aba-modo.ativa { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(2,132,199,.25); }

#area-condutas { max-width: 1400px; margin: 0 auto; padding: 14px 16px 40px; }
.cond-intro { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.cond-intro strong { color: var(--text-main); }
.cond-vazio { text-align: center; color: var(--text-muted); padding: 30px; }
.cond-cat-titulo { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--primary); margin: 14px 0 8px 4px; }
.cond-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cond-item { position: relative; text-align: left; background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--cor-cat); border-radius: 10px; padding: 12px 34px 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; color: var(--text-main); }
.cond-item:hover { box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.cond-item-nome { font-weight: 800; font-size: 15px; }
.cond-item-resumo { font-size: 12.5px; color: var(--text-muted); }
.cond-item-seta { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--cor-cat); }

/* Barra de voltar (faixa fina, escolhida pelo Dr. Jonas): presa logo abaixo do cabeçalho, acompanha a rolagem. */
.cond-barra { position: sticky; top: var(--altura-topo, 0px); z-index: 20; display: flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--border); border-top: none; border-radius: 0 0 10px 10px;
    padding: 3px 6px; margin-bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.cond-voltar { flex: none; background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary); font-weight: 700;
    font-size: 13px; padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.cond-voltar:hover { background: var(--primary); color: #fff; }
.cond-caminho { font-size: 12.5px; color: var(--text-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cond-caminho b { color: var(--text-main); }
.cond-cabecalho { background: color-mix(in srgb, var(--cor-cat) 12%, #fff); border-left: 6px solid var(--cor-cat); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.cond-cabecalho h2 { margin: 2px 0 4px; font-size: 21px; color: color-mix(in srgb, var(--cor-cat) 82%, #000); }
.cond-cabecalho-cat { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--cor-cat); }
.cond-cabecalho-resumo { font-size: 13.5px; color: #1e293b; }
.cond-indice { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cond-indice a { font-size: 11.5px; font-weight: 700; text-decoration: none; color: var(--text-main); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }

.cond-secao { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; scroll-margin-top: calc(var(--altura-topo, 100px) + 10px); }
.cond-secao h3 { margin: 0 0 8px; font-size: 15px; color: color-mix(in srgb, var(--cor-cat) 82%, #000); }
.cond-secao ul { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.55; }
.cond-secao li { margin-bottom: 3px; }
.cond-alerta { background: #fef2f2; border-color: #fecaca; }
.cond-alerta h3 { color: #b91c1c; }

.cond-tabela-wrap { overflow-x: auto; }
.cond-tabela { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 520px; }
.cond-tabela th, .cond-tabela td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; vertical-align: top; }
.cond-tabela thead th { background: color-mix(in srgb, var(--cor-cat) 12%, #fff); }
.cond-tabela-gravidade thead th:nth-child(2) { color: #15803d; } .cond-tabela-gravidade thead th:nth-child(3) { color: #b45309; } .cond-tabela-gravidade thead th:nth-child(4) { color: #b91c1c; }
.cond-tabela-titulo { font-weight: 800; font-size: 13px; margin: 12px 0 6px; }
.cond-nota { font-size: 12px; color: var(--text-muted); margin-top: 6px; line-height: 1.45; }
.cond-legenda { font-size: 12px; color: var(--text-muted); background: var(--surface); border: 1px dashed var(--border); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.tag-imip { display: inline-block; font-size: 10px; font-weight: 800; color: #7c3aed; background: #f3e8ff; border: 1px solid #ddd6fe; border-radius: 4px; padding: 0 5px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }
/* Seções sanfona (abre/fecha com um toque) */
details.cond-secao { padding: 0; }
details.cond-secao > summary { list-style: none; cursor: pointer; padding: 12px 40px 12px 16px; position: relative; }
details.cond-secao > summary::-webkit-details-marker { display: none; }
details.cond-secao > summary h3 { margin: 0; }
details.cond-secao > summary::after { content: "▸"; position: absolute; right: 16px; top: 12px; font-size: 18px; color: var(--cor-cat); transition: transform .15s; }
details.cond-secao[open] > summary::after { transform: rotate(90deg); }
details.cond-secao[open] > summary { border-bottom: 1px solid var(--border); }
.cond-secao-resumo { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.cond-secao-corpo { padding: 12px 16px; }
.cond-alerta.cond-secao > summary h3 { color: #b91c1c; }
/* Blocos (Diagnóstico · Emergência · Ambulatório) */
.cond-bloco { display: flex; flex-direction: column; gap: 2px; margin: 18px 0 10px; padding: 10px 14px; border-radius: 10px; background: var(--cor-bloco); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .2px; scroll-margin-top: calc(var(--altura-topo, 100px) + 10px); }
.cond-bloco small { font-weight: 600; font-size: 12px; opacity: .9; }
.cond-indice-blocos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.cond-indice-blocos a.cond-indice-bloco { text-align: center; border-radius: 10px; padding: 10px 8px; font-size: 13px; font-weight: 800; color: #fff; background: var(--cor-bloco); border: none; }
.cond-acoes { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 6px; }
.cond-acoes button { background: none; border: 1px solid var(--border); color: var(--text-muted); border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.cond-fonte ul { margin: 4px 0 8px; padding-left: 18px; }
.cond-tabela tbody th { background: #f8fafc; font-weight: 700; white-space: nowrap; }

.cond-grupo { border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 10px; }
.cond-grupo:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.cond-grupo-nome { font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.cond-meds-titulo { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); margin: 10px 0 6px; }
.cond-meds { display: grid; grid-template-columns: 1fr; gap: 10px; } /* um card por linha, largura toda (pedido do Dr. Jonas) */
.cond-med { border: 1px solid var(--border); border-left: 4px solid var(--cor-cat); border-radius: 10px; padding: 12px 14px; background: var(--bg-app); display: flex; flex-direction: column; gap: 6px; }
.cond-med-topo { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.cond-med-nome { font-weight: 800; font-size: 15px; }
.cond-med-apres { font-size: 13px; color: var(--text-muted); }
.cond-med-dose { background: var(--primary); color: #fff; font-weight: 800; font-size: 14px; border-radius: 8px; padding: 5px 12px; white-space: nowrap; }
.cond-med.sem-peso .cond-med-dose { background: #94a3b8; }
.cond-med-texto { font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.5; white-space: pre-wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.cond-med-botoes { display: flex; gap: 8px; justify-content: flex-end; }
.cond-med-botoes button { flex: 0 0 auto; min-width: 120px; padding: 9px 16px; border-radius: 999px; font-weight: 800; font-size: 13.5px; cursor: pointer; } /* modelo 3 */
.cond-btn-receita { background: #16a34a; color: #fff; border: 1px solid #16a34a; }
.cond-btn-receita.adicionado { background: #15803d; }
.cond-btn-copiar { background: var(--surface); color: var(--primary); border: 1px solid #bae6fd; }
.cond-fonte { font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; }

html[data-theme="dark"] .cond-cabecalho { background: color-mix(in srgb, var(--cor-cat) 18%, #0f172a); }
html[data-theme="dark"] .cond-cabecalho h2, html[data-theme="dark"] .cond-secao h3 { color: color-mix(in srgb, var(--cor-cat) 60%, #fff); }
html[data-theme="dark"] .cond-cabecalho-resumo { color: #e2e8f0; }
html[data-theme="dark"] .cond-alerta { background: #3b0d0d; border-color: #7f1d1d; }
html[data-theme="dark"] .cond-alerta h3 { color: #fca5a5; }
html[data-theme="dark"] .cond-tabela thead th { background: color-mix(in srgb, var(--cor-cat) 18%, #0f172a); }
html[data-theme="dark"] .cond-tabela tbody th { background: #0b1220; }
html[data-theme="dark"] .tag-imip { background: #2e1065; border-color: #5b21b6; color: #ddd6fe; }

/* Escores clicáveis */
.escore { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--bg-app); }
.escore-instrucao { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.escore-item { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.escore-item:last-of-type { border-bottom: none; }
.escore-item-nome { font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.escore-opcoes { display: flex; flex-wrap: wrap; gap: 6px; }
.escore-opcao { display: inline-flex; align-items: center; gap: 6px; text-align: left; background: var(--surface); color: var(--text-main); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; cursor: pointer; line-height: 1.3; }
.escore-opcao:hover { border-color: var(--primary); }
.escore-pts { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #e2e8f0; color: #334155; font-weight: 800; font-size: 11px; }
.escore-opcao.marcado { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.escore-opcao.marcado .escore-pts { background: #fff; color: var(--primary); }
.escore-resultado { position: sticky; bottom: 8px; display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 2px solid var(--cor-escore, #64748b); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.escore-total { display: flex; flex-direction: column; align-items: center; min-width: 54px; }
.escore-total-num { font-size: 28px; font-weight: 900; line-height: 1; color: var(--cor-escore, #64748b); }
.escore-total-de { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }
.escore-classe { flex: 1; display: flex; flex-direction: column; font-size: 14px; color: var(--cor-escore, #64748b); }
.escore-classe span { font-size: 12px; color: var(--text-muted); }
.escore-limpar { background: none; border: 1px solid var(--border); color: var(--text-muted); border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
html[data-theme="dark"] .escore-pts { background: #334155; color: #e2e8f0; }

/* Passo a passo numerado (ex.: condução da emergência) */
.cond-passo { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; margin-right: 4px; border-radius: 13px; background: var(--cor-cat); color: #fff; font-size: 13px; font-weight: 900; vertical-align: 1px; }
.cond-lista-passos { list-style: none; padding-left: 0 !important; }
.cond-lista-passos li { margin-bottom: 10px !important; padding-left: 36px; text-indent: -36px; }
.cond-lista-passos .cond-passo { text-indent: 0; margin-right: 6px; }

/* Link "Conduta passo a passo" na tarja da categoria da Prescrição (só onde a aba Condutas existe) */
.link-conduta { display: none; }
body.condutas-on .com-link-conduta { display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; }
body.condutas-on .link-conduta { display: inline-flex; align-items: center; background: #fff; color: var(--cor-link, #be123c); border: none; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 800; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.15); white-space: nowrap; }
/* Nos títulos de seção (fundo claro) o botão fica na cor da categoria */
body.condutas-on .sub-type-title .link-conduta { background: var(--cor-link, #0284c7); color: #fff; padding: 4px 10px; font-size: 11px; box-shadow: none; }
.cond-bloco { scroll-margin-top: calc(var(--altura-topo, 100px) + 10px); }

/* Queimados: boneco clicável (tabela de Lund-Browder) */
.qm-faixas { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.qm-faixa { border: 1px solid var(--border); background: var(--surface); color: var(--text-main); border-radius: 16px; padding: 5px 10px; font-size: 12.5px; cursor: pointer; }
.qm-faixa.ativa { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.qm-figuras { display: flex; gap: 8px; justify-content: center; }
.qm-fig { margin: 0; flex: 1; max-width: 230px; text-align: center; }
.qm-fig figcaption { font-weight: 800; font-size: 13px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 2px; }
.qm-fig svg { width: 100%; height: auto; touch-action: manipulation; }
.qm-reg { fill: #e2e8f0; stroke: #64748b; stroke-width: 1.2; cursor: pointer; transition: fill .12s; }
.qm-reg:hover { stroke: #ea580c; stroke-width: 2; }
.qm-reg.qm-inteira { fill: #dc2626; stroke: #7f1d1d; }
.qm-reg.qm-metade { stroke: #9a3412; }
.qm-lado { font-size: 12px; font-weight: 800; fill: var(--text-muted); }
.qm-legenda { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin: 4px 0; }
.qm-cor { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid #7f1d1d; }
.qm-cor-inteira { background: #dc2626; }
.qm-cor-metade { background: repeating-linear-gradient(45deg, #f97316 0 3px, #fed7aa 3px 6px); margin-left: 8px; }
.qm-lista ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
html[data-theme="dark"] .qm-reg:not(.qm-inteira):not(.qm-metade) { fill: #334155; stroke: #94a3b8; }
.qm-hid { margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-app); }
.qm-hid-titulo { font-weight: 800; color: #0369a1; margin: 6px 0; }
.qm-hid ul { margin: 0; padding-left: 18px; font-size: 13.5px; }
.qm-hid li { margin-bottom: 4px; }
.qm-eletrica { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
html[data-theme="dark"] .qm-hid-titulo { color: #7dd3fc; }

/* Icterícia neonatal: calculadora AAP 2022 com gráfico */
.ict-rotulo { font-weight: 800; font-size: 13px; margin: 10px 0 4px; }
.ict-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.ict-campo { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.ict-campo input { height: 40px; border: 1px solid var(--border-strong, var(--border)); border-radius: 8px; padding: 0 10px; font-size: 16px; background: var(--surface); color: var(--text-main); }
.ict-datas { margin: 6px 0; font-size: 13px; }
.ict-datas summary { cursor: pointer; color: var(--primary); font-weight: 700; }
.ict-fatores { flex-direction: column; align-items: stretch; }
.ict-check { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; margin: 10px 0 4px; color: var(--text-main); }
.ict-check input { margin-top: 2px; width: 16px; height: 16px; flex: none; }
.ict-lista ul { margin: 10px 0 6px; padding-left: 18px; font-size: 13px; line-height: 1.45; }
.ict-lista li { margin-bottom: 6px; }
.ict-grafico svg { width: 100%; max-width: 560px; height: auto; display: block; margin: 6px auto 0; }
.ict-g-grade { stroke: var(--border); stroke-width: 1; }
.ict-g-txt { font-size: 9px; fill: var(--text-muted); }
.ict-g-foto, .ict-g-esc, .ict-g-ext { fill: none; stroke-width: 2.2; }
.ict-g-foto { stroke: #d97706; }
.ict-g-esc { stroke: #ea580c; stroke-dasharray: 5 4; }
.ict-g-ext { stroke: #dc2626; }
.ict-g-pac { fill: #0b5cad; stroke: #fff; stroke-width: 2; }
.ict-g-ant { fill: #94a3b8; stroke: #fff; stroke-width: 1.5; }
.ict-g-legenda { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; font-size: 11.5px; color: var(--text-muted); margin: 4px 0 8px; }
.ict-l { display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-right: -6px; }
.ict-l-foto { background: #d97706; } .ict-l-esc { background: repeating-linear-gradient(90deg, #ea580c 0 5px, transparent 5px 8px); } .ict-l-ext { background: #dc2626; }
.ict-l-pac { width: 10px; height: 10px; border-radius: 50%; background: #0b5cad; }
html[data-theme="dark"] .ict-g-pac { fill: #4ea8f0; stroke: #0a0f1a; }

/* CAD: "Como chegar ao cálculo" da hidratação de 48 h */
.cadh { margin-top: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--cor-cat) 35%, var(--border)); background: color-mix(in srgb, var(--cor-cat) 5%, var(--surface)); }
.cadh-titulo { font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.cadh-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.cadh-rot { font-size: 12.5px; font-weight: 700; color: var(--text-muted); min-width: 120px; }
.cadh-opcoes { display: flex; flex-wrap: wrap; gap: 6px; }
.cadh-passos { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.cadh-passos li { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 14px; line-height: 1.5; }
.cadh-num { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--cor-cat); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.cadh-resultado { border-radius: 8px; padding: 10px 12px; background: color-mix(in srgb, var(--cor-cat) 12%, var(--surface)); font-size: 14px; }
.cadh-taxa { font-size: 18px; margin-top: 2px; color: var(--cor-cat); }
.cadg-sub { font-weight: 600; font-size: 12.5px; color: var(--text-muted); }
.cadg-regra { font-size: 13.5px; border-left: 4px solid #dc2626; background: color-mix(in srgb, #dc2626 7%, var(--surface)); padding: 8px 10px; border-radius: 6px; margin-bottom: 8px; }
.cadg-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.cadg-campos input { font-size: 18px; font-weight: 700; }
.cadg-acao { border: 2px solid var(--cor-acao); background: color-mix(in srgb, var(--cor-acao) 9%, var(--surface)); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.cadg-acao-tit { font-weight: 900; font-size: 17px; color: var(--cor-acao); margin-bottom: 4px; }
.cadg-acao ul { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.55; }
.cadg tr.cadg-atual th, .cadg tr.cadg-atual td { background: color-mix(in srgb, var(--cor-cat) 14%, var(--surface)); font-weight: 700; }
.cadg .cond-tabela { min-width: 0; font-size: 14px; }
.cadg .cond-tabela td { white-space: nowrap; }

/* Citações: link no texto → fonte numerada destacada */
.cond-fonte ol { margin: 4px 0 8px; padding-left: 22px; }
.cond-fonte li { padding: 4px 6px; border-radius: 6px; margin: 2px 0; transition: background .3s; scroll-margin: 120px; }
.cond-fonte li.destacada { background: color-mix(in srgb, #f59e0b 22%, var(--surface)); color: var(--text-main); outline: 2px solid #f59e0b; animation: cond-fonte-pisca 1.2s ease 2; }
.cond-fonte-voltar { display: none; margin-left: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--primary); border-radius: 12px; padding: 2px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.cond-fonte li.destacada .cond-fonte-voltar { display: inline-block; }
@keyframes cond-fonte-pisca { 50% { background: color-mix(in srgb, #f59e0b 45%, var(--surface)); } }
a.cond-cit { color: inherit; text-decoration: underline dotted color-mix(in srgb, var(--primary) 70%, transparent); text-underline-offset: 2px; cursor: pointer; }
a.cond-cit sup { color: var(--primary); font-weight: 800; font-size: .7em; margin-left: 1px; }
a.cond-cit:hover { color: var(--primary); }
a.cond-cit.piscando { background: color-mix(in srgb, #f59e0b 35%, transparent); border-radius: 4px; }

/* CAD passo 4: painel "Soro da CAD em Y" */
.sy { margin-top: 12px; border: 2px solid var(--cor-cat); border-radius: 14px; background: color-mix(in srgb, var(--cor-cat) 5%, var(--surface)); padding: 14px; }
.sy-h { font-weight: 900; font-size: 16px; margin-bottom: 6px; }
.sy-total { font-size: 30px; font-weight: 900; color: var(--cor-cat); line-height: 1.1; margin: 8px 0 4px; }
.sy-total small { display: block; font-size: 12.5px; color: var(--text-muted); font-weight: 700; margin-top: 2px; }
.sy-bags { display: flex; align-items: flex-start; justify-content: center; gap: 18px; margin: 12px 0 0; }
.sy-bag { width: 110px; text-align: center; }
.sy-bag-c { height: 90px; border-radius: 12px 12px 18px 18px; border: 3px solid var(--c); background: linear-gradient(to top, color-mix(in srgb, var(--c) 30%, var(--surface)) var(--n), var(--surface) var(--n)); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; font-size: 30px; line-height: 1; color: var(--c); }
.sy-bag-c small { font-size: 13px; font-weight: 800; letter-spacing: .02em; margin-bottom: 4px; }
.sy-bag-l { font-size: 12.5px; font-weight: 800; margin-top: 4px; min-height: 32px; }
.sy-bag-v { font-size: 15px; font-weight: 900; }
.sy-y { display: block; width: 240px; max-width: 100%; height: auto; margin: 0 auto -2px; }
.sy-y-letra { font: 800 14px Inter, sans-serif; fill: var(--text-muted); }
.sy-paciente { width: max-content; margin: 0 auto; border: 2.5px solid #334155; border-radius: 12px; padding: 7px 16px; font-weight: 800; font-size: 15px; background: var(--surface); }
.sy-paciente b { margin-left: 6px; }
.sy-agora { text-align: center; font-weight: 900; font-size: 14px; margin-top: 10px; }
.sy-fases-tit { font-weight: 800; font-size: 13px; color: var(--text-muted); margin: 12px 0 6px; }
.sy-fases { display: grid; gap: 8px; margin: 0 0 6px; }
.sy-fase { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
    background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px; padding: 8px 10px; transition: border-color .15s, box-shadow .15s; }
.sy-fase:hover { border-color: #94a3b8; }
.sy-fase.on { border-color: #0f172a; box-shadow: 0 0 0 2px #0f172a inset; background: color-mix(in srgb, #d97706 calc(var(--mix) / 5), var(--surface)); }
html[data-theme="dark"] .sy-fase.on { border-color: #e2e8f0; box-shadow: 0 0 0 2px #e2e8f0 inset; }
/* etiqueta da glicose: azul (só B) → laranja (só A), sem número de passo */
.sy-fase-pc { border-radius: 8px; padding: 6px 4px; text-align: center; font-weight: 900; font-size: 14px; color: #fff;
    background: color-mix(in srgb, #d97706 var(--mix), #2563eb); }
.sy-fase-txt b { font-size: 14px; display: block; } .sy-fase-txt span { font-size: 12.5px; color: var(--text-muted); display: block; }
.sy-fase-bomba { font-weight: 900; font-size: 14px; text-align: right; white-space: nowrap; }
.sy-rec-tit { font-weight: 900; font-size: 14px; margin: 14px 0 6px; }
.sy .cond-med-botoes { margin-top: 8px; }
.sy-k { display: grid; gap: 6px; margin-top: 10px; }
.sy-k div { border-radius: 8px; padding: 7px 10px; font-size: 13.5px; border-left: 5px solid; }
.sy-kv { background: color-mix(in srgb, #16a34a 10%, var(--surface)); border-color: #16a34a !important; }
.sy-ka { background: color-mix(in srgb, #d97706 10%, var(--surface)); border-color: #d97706 !important; }
.sy-kr { background: color-mix(in srgb, #dc2626 10%, var(--surface)); border-color: #dc2626 !important; }

/* CAD passo 8: transição para insulina SC */
.tr { margin-top: 12px; border: 2px solid #16a34a; border-radius: 14px; background: color-mix(in srgb, #16a34a 5%, var(--surface)); padding: 14px; }
.tr-crit { font-size: 13.5px; background: var(--surface); border: 1px dashed var(--border-strong, #94a3b8); border-radius: 8px; padding: 8px 10px; margin: 8px 0 10px; }
.tr-linha { display: grid; gap: 8px; }
.tr-passo { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--c); border-radius: 10px; padding: 8px 10px; }
.tr-n { width: 30px; height: 30px; border-radius: 8px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); font-size: 17px; display: flex; align-items: center; justify-content: center; }
.tr-passo b { display: block; font-size: 14.5px; } .tr-passo span { display: block; font-size: 13.5px; color: var(--text-soft, inherit); }
.tr .cond-med-botoes { margin-top: 8px; }
.tr .tr-tab { min-width: 0; font-size: 14px; max-width: 420px; }

/* ===== Doenças exantemáticas: fotos e guia de identificação ===== */
.exg { margin: 6px 0 10px; }
.ex-filtro { margin: 8px 0; }
.ex-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ex-chip { border: 1px solid var(--border); background: var(--surface); color: var(--text-main); border-radius: 16px; padding: 6px 11px; font-size: 13px; cursor: pointer; text-align: left; }
.ex-chip.ativo { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.ex-acoes { display: flex; justify-content: flex-end; margin: 6px 0; }
.ex-lista-titulo { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin: 10px 0 6px; }
.ex-card { display: flex; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 10px; margin-bottom: 8px; background: var(--surface); }
.ex-card.forte { border-color: #be185d; box-shadow: 0 0 0 2px color-mix(in srgb, #be185d 25%, transparent); }
.ex-card-fig { flex: 0 0 112px; display: flex; flex-direction: column; gap: 6px; }
.ex-card-txt { flex: 1; min-width: 0; }
.ex-card-nome { font-weight: 800; font-size: 15px; margin-bottom: 3px; }
.ex-pts { font-size: 11px; font-weight: 700; background: #be185d; color: #fff; border-radius: 10px; padding: 1px 7px; vertical-align: middle; }
.ex-card-desc { font-size: 13.5px; line-height: 1.45; }
.ex-alerta { font-size: 12.5px; font-weight: 700; color: var(--danger); margin: 2px 0 4px; }
.ex-link { margin-top: 6px; border: 0; background: #be185d; color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ex-embreve { display: inline-block; margin-top: 6px; font-size: 11.5px; color: var(--text-muted); border: 1px dashed var(--border); border-radius: 999px; padding: 3px 10px; }
.ex-foto { margin: 0; }
.ex-foto img { width: 100%; height: auto; display: block; border-radius: 10px; cursor: zoom-in; background: #eee; }
.ex-foto.pequena img { height: 86px; object-fit: cover; }
.ex-foto.pequena img.ex-inteira { object-fit: contain; background: #111; } /* DermNet: foto inteira, sem corte (licença ND) */
.ex-foto figcaption { font-size: 13px; margin-top: 4px; line-height: 1.35; }
.ex-credito { font-size: 10.5px; color: var(--text-muted); line-height: 1.3; margin-top: 2px; }
.ex-credito a { color: inherit; }
.ex-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ex-zoom { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.96); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ex-zoom figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; color: #fff; }
.ex-zoom img { max-width: 100%; max-height: 78vh; border-radius: 8px; }
.ex-zoom figcaption { font-size: 14px; margin-top: 8px; }
.ex-zoom figcaption span { font-size: 11px; opacity: .75; }
.ex-zoom-fechar { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 50%; width: 38px; height: 38px; font-size: 18px; cursor: pointer; }

/* Cronômetro da crise convulsiva (condutas/crise_convulsiva.js) */
.crise-crono { margin: 10px 0; padding: 12px; border-radius: 12px; border: 1px solid var(--border, #ddd); background: var(--card-bg, #fff); text-align: center; }
.crise-crono-tempo { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; color: #0284c7; line-height: 1.1; }
.crise-crono-fase { font-size: 14px; margin: 6px 0 10px; line-height: 1.35; }
.crise-crono-botoes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.crise-crono-botoes button { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border, #ccc); background: var(--bg-soft, #f3f4f6); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.crise-crono-botoes button:first-child { background: #6d28d9; color: #fff; border-color: #6d28d9; }

/* Padrão de escrita das condutas (aprovado pelo Dr. Jonas, 10/2026): rótulo do início do item em azul,
   subitens com › num quadro cinza, ponto de atenção em caixa amarela "⚠️ Atenção:". */
.cond-secao ul.cond-sub { list-style: none; background: var(--surface-3, #eef2f6); border-radius: 10px; padding: 8px 10px 6px 10px; margin: 8px 0 6px -4px; }
.cond-secao ul.cond-sub > li { position: relative; padding-left: 16px; margin-bottom: 6px; }
.cond-secao ul.cond-sub > li::before { content: "›"; position: absolute; left: 0; top: -1px; font-weight: 800; color: var(--primary); }
.cond-secao li.cond-item-alerta { list-style: none; margin: 8px 0 4px -20px; padding: 8px 10px; border-radius: 8px;
    background: #fef3c7; border-left: 4px solid #f59e0b; color: #78350f; }
.cond-secao li.cond-item-alerta > strong { color: inherit !important; font-weight: 700 !important; }
html[data-theme="dark"] .cond-secao li.cond-item-alerta { background: #3b2a06; color: #fde68a; }
#area-condutas.cond-padrao .cond-secao ul:not(.cond-sub) > li::marker { color: var(--primary); }
#area-condutas.cond-padrao .cond-secao li > strong:first-child,
#area-condutas.cond-padrao .cond-secao li > .cond-passo + strong { font-weight: 600; color: var(--primary); }

/* ===== Conduta em destaque na lista (ventilação mecânica) ===== */
.cond-item-destaque { border-width: 2px; border-left-width: 6px; border-color: var(--cor-cat); background: color-mix(in srgb, var(--cor-cat) 7%, var(--surface)); }
.cond-item-destaque .cond-item-nome::before { content: "🫁 "; }

/* ===== Simulador de ventilador (condutas/ventilacao.js) ===== */
.vm-sim { margin-bottom: 14px; }
.vm-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #0b3a4e; color: #fff; padding: 10px 14px; }
.vm-topo small { display: block; font-size: 11px; opacity: .8; }
.vm-topo b { font-size: 17px; }
.vm-resumo { display: block; font-size: 12px; color: #a5f3fc; margin-top: 2px; }
.vm-recomecar { flex: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.vm-prog { display: flex; gap: 4px; padding: 8px 14px 0; }
.vm-prog button { flex: 1; background: none; border: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; gap: 3px; align-items: stretch; }
.vm-prog button:disabled { cursor: default; }
.vm-prog i { height: 5px; border-radius: 3px; background: var(--border-strong, #cdd6e0); }
.vm-prog button.on i { background: #0e7490; }
.vm-prog span { font-size: 9.5px; color: var(--text-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-corpo { padding: 10px 14px 14px; }
.vm-corpo h4 { margin: 8px 0 10px; font-size: 16px; color: var(--text-main); }
.vm-op { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--surface); color: var(--text-main); border: 2px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font: inherit; }
.vm-op:hover { border-color: #0e7490; }
.vm-op.on { border-color: #0e7490; background: color-mix(in srgb, #0e7490 10%, var(--surface)); }
.vm-op-ic { font-size: 26px; flex: none; }
.vm-op b { font-size: 15px; display: block; }
.vm-op small { display: block; font-size: 12px; color: var(--text-muted); }
.vm-balao { background: var(--surface-2, #f7f9fb); border: 1px solid color-mix(in srgb, #0e7490 35%, var(--border)); border-radius: 10px; padding: 8px 11px; font-size: 12.5px; line-height: 1.45; margin-top: 8px; color: var(--text-main); }
.vm-balao b { color: #0e7490; }
.vm-campos { display: flex; gap: 8px; flex-wrap: wrap; }
.vm-campos label { flex: 1; min-width: 120px; font-size: 12px; color: var(--text-muted); display: flex; flex-direction: column; gap: 3px; }
.vm-campos input { font-size: 18px; font-weight: 700; padding: 8px 10px; border: 1px solid var(--border-strong, #cdd6e0); border-radius: 10px; background: var(--surface-2, #f7f9fb); color: var(--text-main); width: 100%; box-sizing: border-box; }
.vm-gaso label { min-width: 70px; }
.vm-erro { color: #b91c1c; font-size: 13px; font-weight: 600; min-height: 4px; margin-top: 4px; }
.vm-rodape { display: flex; gap: 8px; margin-top: 12px; }
.vm-btn { flex: 1; padding: 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2, #eef2f6); color: var(--text-main); font-weight: 700; font-size: 14px; cursor: pointer; }
.vm-btn-p { background: #0e7490; border-color: #0e7490; color: #fff; }
.vm-sug { background: color-mix(in srgb, #16a34a 8%, var(--surface)); border-left: 5px solid #16a34a; border-radius: 10px; padding: 9px 12px; font-size: 13px; line-height: 1.45; margin-bottom: 10px; color: var(--text-main); }
.vm-sug b { color: #15803d; }
.vm-modo { display: block; width: 100%; text-align: left; background: var(--surface); color: var(--text-main); border: 2px solid var(--border); border-radius: 12px; padding: 9px 12px; margin-bottom: 7px; cursor: pointer; font: inherit; }
.vm-modo.sug { border-color: #16a34a; }
.vm-modo.on { background: color-mix(in srgb, #0e7490 10%, var(--surface)); border-color: #0e7490; }
.vm-modo-nome { display: block; font-weight: 800; font-size: 15px; }
.vm-modo-nome small { font-weight: 500; font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.vm-modo-nome em { float: right; font-style: normal; font-size: 12px; color: #15803d; font-weight: 800; }
.vm-modo-desc { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
/* Painel escuro, imitando a tela do ventilador (igual no tema claro e no escuro). */
.vm-vent { background: #0b1220; border: 3px solid #1e293b; border-radius: 14px; padding: 10px; color: #e2e8f0; }
.vm-vent-topo { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: #94a3b8; margin-bottom: 8px; }
.vm-md { background: #0ea5e9; color: #001018; font-weight: 900; font-size: 14px; padding: 2px 10px; border-radius: 6px; }
.vm-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.vm-k { position: relative; background: #111c30; border: 1px solid #23324d; border-radius: 10px; padding: 7px 9px; }
.vm-k.al { border-color: #f59e0b; background: #2a1f08; }
.vm-k-n { font-size: 12px; font-weight: 700; color: #7dd3fc; padding-right: 22px; }
.vm-k-v { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 2px 0; }
.vm-k-v span { font-size: 25px; font-weight: 800; color: #f8fafc; }
.vm-k-v small { font-size: 11px; color: #94a3b8; margin-left: 3px; font-weight: 600; }
.vm-mm { width: 32px; height: 32px; flex: none; border-radius: 8px; border: none; background: #1e3a5f; color: #bae6fd; font-size: 20px; font-weight: 800; cursor: pointer; line-height: 1; }
.vm-mm:active { background: #0ea5e9; color: #001018; }
.vm-k-f { font-size: 11px; color: #94a3b8; }
.vm-k-al { font-size: 11.5px; color: #fbbf24; margin-top: 3px; line-height: 1.35; }
.vm-k-texto { grid-column: span 2; }
.vm-k-txt { font-size: 12.5px; color: #e2e8f0; line-height: 1.4; margin-top: 2px; }
.vm-k-aviso { font-size: 11.5px; color: #fca5a5; margin-top: 4px; }
.vm-q { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; border: none; background: #1e3a5f; color: #bae6fd; font-size: 11px; font-weight: 800; cursor: pointer; padding: 0; }
.vm-deriv { margin-top: 8px; font-size: 12px; color: #a5f3fc; }
.vm-d-al { color: #fbbf24; }
.vm-porque { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--text-main); }
.vm-porque ul, .vm-lista { margin: 4px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--text-main); }
.vm-porque b { color: #0e7490; }
.vm-nota { font-size: 12.5px; color: var(--text-muted); margin-top: 8px; }
.vm-gaso-res { list-style: none; padding: 0; margin: 10px 0 0; }
.vm-gaso-res li { border-radius: 10px; padding: 8px 11px; font-size: 13px; line-height: 1.45; margin-bottom: 6px; color: var(--text-main); }
.vm-gaso-res li.al { background: color-mix(in srgb, #f59e0b 14%, var(--surface)); border-left: 4px solid #f59e0b; }
.vm-gaso-res li.ok { background: color-mix(in srgb, #16a34a 10%, var(--surface)); border-left: 4px solid #16a34a; }
.vm-dope { margin-top: 12px; background: color-mix(in srgb, #dc2626 9%, var(--surface)); border-left: 4px solid #dc2626; border-radius: 10px; padding: 8px 11px; font-size: 13px; line-height: 1.45; color: var(--text-main); }
@media (max-width: 600px) { .vm-grade { grid-template-columns: 1fr 1fr; } .vm-k-v span { font-size: 22px; } .vm-mm { width: 30px; height: 30px; } }

/* ===== Tela do ventilador (layout tipo Mindray SV300/SV800, sem marca) ===== */
.vmx { background: #0a0f1a; border: 6px solid #2b3240; border-radius: 16px; overflow: hidden; color: #e5e7eb; position: relative; box-shadow: 0 6px 20px rgba(0,0,0,.25); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.vmx-top { display: flex; align-items: center; gap: 8px; background: #1b2433; padding: 6px 8px; min-height: 34px; font-size: 12px; }
.vmx-pac { color: #cbd5e1; white-space: nowrap; }
.vmx-modo { background: #1565c0; color: #fff; font-weight: 800; padding: 3px 9px; border-radius: 4px; font-size: 13px; white-space: nowrap; }
.vmx-alarme { flex: 1; min-width: 0; text-align: left; border: none; border-radius: 4px; padding: 4px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.vmx-alarme.n3 { background: #d32f2f; color: #fff; animation: vmx-pisca 1s steps(2) infinite; }
.vmx-alarme.n2 { background: #f5c400; color: #111; }
.vmx-alarme.n1 { background: #0e7fbf; color: #fff; }
.vmx-alarme.ok { background: transparent; color: #64748b; font-weight: 500; cursor: default; }
@keyframes vmx-pisca { 50% { background: #7f1d1d; } }
.vmx-hora { color: #94a3b8; margin-left: auto; white-space: nowrap; }
.vmx-alarme + .vmx-hora { margin-left: 0; }
.vmx-meio { display: grid; grid-template-columns: 1fr 210px; }
.vmx-curvas { position: relative; height: 270px; border-right: 1px solid #1f2937; }
.vmx-curvas canvas { width: 100%; height: 100%; display: block; }
.vmx-pausa { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(15,23,42,.94); border: 1px solid #ffd23f; border-radius: 8px; padding: 10px 14px; font-size: 12.5px; text-align: center; color: #e5e7eb; line-height: 1.5; }
.vmx-pausa b { color: #ffd23f; font-size: 16px; }
.vmx-mon { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #1f2937; align-content: start; }
.vmx-m { background: #0d1422; padding: 5px 7px; display: flex; flex-direction: column; min-height: 52px; }
.vmx-m span { font-size: 10.5px; color: #94a3b8; }
.vmx-m b { font-size: 21px; font-weight: 700; line-height: 1.15; }
.vmx-m small { font-size: 9.5px; color: #64748b; }
.vmx-m.p b { color: #ffd23f; } .vmx-m.v b { color: #3ee07a; } .vmx-m.o b { color: #e5e7eb; }
.vmx-teclas { display: flex; gap: 4px; padding: 6px; background: #121a28; overflow-x: auto; }
.vmx-k { flex: 1 0 64px; background: #2a3446; border: 2px solid #3b475c; border-radius: 6px; color: #e5e7eb; padding: 4px 4px 3px; display: flex; flex-direction: column; align-items: center; cursor: pointer; font: inherit; }
.vmx-k span { font-size: 11px; color: #cbd5e1; }
.vmx-k b { font-size: 20px; line-height: 1.2; }
.vmx-k small { font-size: 9.5px; color: #94a3b8; }
.vmx-k.sel { background: #f5c400; border-color: #ffe066; color: #111; }
.vmx-k.sel span, .vmx-k.sel small { color: #3b3200; }
.vmx-k-modo { background: #1565c0; border-color: #1e88e5; }
.vmx-k-modo b { font-size: 15px; }
.vmx-funcoes { display: flex; gap: 4px; padding: 0 6px 6px; background: #121a28; flex-wrap: wrap; }
.vmx-funcoes button { flex: 1 0 auto; background: #1b2433; border: 1px solid #334155; color: #cbd5e1; border-radius: 5px; padding: 6px 8px; font-size: 12px; cursor: pointer; }
.vmx-funcoes button.on { background: #0ea5e9; color: #001018; }
.vmx-ajuste { background: #172033; border-top: 2px solid #f5c400; padding: 8px 10px; }
.vmx-aj-linha { display: flex; align-items: center; justify-content: center; gap: 14px; }
.vmx-giro { width: 52px; height: 52px; border-radius: 50%; border: 2px solid #475569; background: radial-gradient(circle at 35% 30%, #4b5563, #1f2937); color: #fff; font-size: 26px; font-weight: 800; cursor: pointer; }
.vmx-giro:active { background: #f5c400; color: #111; }
.vmx-aj-val { text-align: center; min-width: 110px; }
.vmx-aj-val span { display: block; font-size: 12px; color: #cbd5e1; }
.vmx-aj-val b { font-size: 32px; color: #fff; }
.vmx-aj-val b.mudou { color: #f5c400; }
.vmx-aj-val small { font-size: 12px; color: #94a3b8; margin-left: 4px; }
.vmx-aj-info { font-size: 12px; color: #a5f3fc; text-align: center; margin-top: 4px; line-height: 1.4; }
.vmx-aj-al { font-size: 12px; color: #fbbf24; text-align: center; margin-top: 4px; line-height: 1.4; }
.vmx-aj-ajuda { font-size: 12px; color: #cbd5e1; margin-top: 6px; line-height: 1.4; background: #0d1422; border-radius: 6px; padding: 6px 8px; }
.vmx-aj-ajuda b { color: #7dd3fc; }
.vmx-aj-bt { display: flex; gap: 8px; margin-top: 8px; }
.vmx-aj-bt button { flex: 1; padding: 9px; border-radius: 6px; border: 1px solid #475569; background: #1f2937; color: #e5e7eb; font-weight: 700; font-size: 14px; cursor: pointer; }
.vmx-aj-bt button.ok { background: #16a34a; border-color: #16a34a; color: #fff; }
.vmx-menu { position: absolute; left: 8px; right: 8px; top: 40px; max-height: calc(100% - 48px); overflow: auto; background: #111827; border: 1px solid #475569; border-radius: 10px; padding: 10px; z-index: 5; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.vmx-menu-tit { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.vmx-menu-tit button { background: #334155; border: none; color: #fff; border-radius: 6px; width: 30px; height: 30px; cursor: pointer; }
.vmx-menu-op { display: block; width: 100%; text-align: left; background: #1f2937; border: 2px solid #334155; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; color: #e5e7eb; cursor: pointer; font: inherit; }
.vmx-menu-op.on { border-color: #1e88e5; background: #0f2a4a; }
.vmx-menu-op b { display: block; font-size: 15px; }
.vmx-menu-op small { font-size: 12px; color: #94a3b8; }
.vmx-menu-nota { font-size: 12px; color: #a7f3d0; line-height: 1.45; margin-top: 6px; }
.vmx-plim { display: flex; align-items: center; gap: 10px; background: #1f2937; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.vmx-plim span { flex: 1; }
.vmx-plim button { width: 34px; height: 34px; border-radius: 6px; border: none; background: #334155; color: #fff; font-size: 18px; font-weight: 800; cursor: pointer; }
.vmx-plim b { font-size: 20px; color: #ffd23f; min-width: 30px; text-align: center; }
.vmx-al-lista { list-style: none; padding: 0; margin: 8px 0 0; }
.vmx-al-lista li { border-radius: 6px; padding: 6px 9px; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; }
.vmx-al-lista li.n3 { background: #d32f2f; color: #fff; } .vmx-al-lista li.n2 { background: #f5c400; color: #111; } .vmx-al-lista li.n1 { background: #0e7fbf; color: #fff; }
/* Standby (configuração do paciente) */
.vmx-tela { padding: 12px; }
.vmx-sb-titulo { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.vmx-sb-rot { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; margin: 12px 0 6px; }
.vmx-sb-tipos { display: flex; gap: 8px; }
.vmx-sb-tipos button { flex: 1; background: #1f2937; border: 2px solid #334155; border-radius: 10px; color: #e5e7eb; padding: 10px 4px; font-size: 24px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vmx-sb-tipos button span { font-size: 13px; font-weight: 700; }
.vmx-sb-tipos button.on { border-color: #1e88e5; background: #0f2a4a; }
.vmx-sb-tipos button.off { opacity: .35; cursor: not-allowed; }
.vmx-sb-campos { display: flex; gap: 8px; margin-top: 10px; }
.vmx-sb-campos label { flex: 1; font-size: 12px; color: #94a3b8; display: flex; flex-direction: column; gap: 3px; }
.vmx-sb-campos input { font-size: 20px; font-weight: 700; padding: 8px 10px; border-radius: 8px; border: 1px solid #475569; background: #0d1422; color: #fff; width: 100%; box-sizing: border-box; }
.vmx-sb-motivos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.vmx-sb-motivos button { text-align: left; background: #1f2937; border: 2px solid #334155; border-radius: 8px; color: #e5e7eb; padding: 7px 9px; cursor: pointer; font: inherit; }
.vmx-sb-motivos button b { display: block; font-size: 13.5px; }
.vmx-sb-motivos button small { font-size: 11px; color: #94a3b8; }
.vmx-sb-motivos button.on { border-color: #1e88e5; background: #0f2a4a; }
.vmx-sb-modos { display: flex; gap: 6px; flex-wrap: wrap; }
.vmx-sb-modos button { flex: 1; min-width: 90px; background: #1f2937; border: 2px solid #334155; border-radius: 8px; color: #fff; padding: 8px 6px; font-weight: 800; font-size: 15px; cursor: pointer; }
.vmx-sb-modos button small { display: block; font-size: 10.5px; font-weight: 500; color: #94a3b8; }
.vmx-sb-modos button.on { border-color: #1e88e5; background: #1565c0; }
.vmx-sb-sug { font-size: 12.5px; color: #bbf7d0; background: #052e1b; border: 1px solid #166534; border-radius: 8px; padding: 8px 10px; margin-top: 8px; line-height: 1.45; }
.vmx-iniciar { width: 100%; margin-top: 12px; padding: 13px; border: none; border-radius: 10px; background: #16a34a; color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.vmx .vm-erro { color: #fca5a5; }
.vm-guia { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px 14px; margin-top: 10px; }
.vm-guia h4 { margin: 12px 0 6px; font-size: 15px; color: var(--text-main); }
.vm-dica { margin: 6px 4px 0; }
@media (max-width: 700px) {
    .vmx { border-width: 4px; }
    .vmx-meio { grid-template-columns: 1fr; }
    .vmx-curvas { height: 210px; border-right: none; border-bottom: 1px solid #1f2937; }
    .vmx-mon { grid-template-columns: repeat(3, 1fr); }
    .vmx-m { min-height: 44px; padding: 4px 6px; } .vmx-m b { font-size: 18px; }
    .vmx-k { flex-basis: 56px; } .vmx-k b { font-size: 17px; }
    .vmx-pac { display: none; }
}

/* Tela cheia do ventilador */
.vmx-cheia-bt { flex: none; background: #334155; border: 1px solid #475569; color: #e5e7eb; border-radius: 5px; padding: 4px 8px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.vmx-cheia-bt:hover { background: #475569; }
#vm-sim.vm-cheia { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 99999; background: #000; margin: 0; overflow: auto; display: flex; flex-direction: column; }
#vm-sim.vm-cheia .vmx { flex: 1; min-height: 100%; display: flex; flex-direction: column; border-radius: 0; border-width: 0; box-sizing: border-box; }
#vm-sim.vm-cheia .vmx-meio { flex: 1; min-height: 0; }
#vm-sim.vm-cheia .vmx-curvas { height: auto; min-height: 220px; }
#vm-sim.vm-cheia .vmx-mon { align-content: stretch; }
#vm-sim.vm-cheia .vmx-m b { font-size: 26px; }
#vm-sim.vm-cheia .vmx-tela { flex: 1; overflow: auto; }
#vm-sim.vm-cheia .vm-guia, #vm-sim.vm-cheia .vm-dica { display: none; }
body.vm-cheia-on { overflow: hidden; }
@media (max-width: 700px) {
    #vm-sim.vm-cheia .vmx-meio { display: flex; flex-direction: column; }
    #vm-sim.vm-cheia .vmx-curvas { flex: 1; }
    #vm-sim.vm-cheia .vmx-m b { font-size: 19px; }
    .vmx-cheia-bt { padding: 4px 6px; font-size: 11px; }
}
@media (max-height: 520px) { /* celular deitado em tela cheia */
    #vm-sim.vm-cheia .vmx-meio { display: grid; grid-template-columns: 1fr 300px; overflow: hidden; }
    #vm-sim.vm-cheia .vmx-curvas { min-height: 0; height: 100%; }
    #vm-sim.vm-cheia .vmx-mon { grid-template-columns: repeat(3, 1fr); overflow: auto; }
    #vm-sim.vm-cheia .vmx-m { min-height: 0; padding: 2px 6px; }
    #vm-sim.vm-cheia .vmx-m b { font-size: 17px; }
    #vm-sim.vm-cheia .vmx-m small { display: none; }
    #vm-sim.vm-cheia .vmx-top { min-height: 28px; padding: 3px 6px; }
    #vm-sim.vm-cheia .vmx-k { padding: 2px; } #vm-sim.vm-cheia .vmx-k b { font-size: 16px; } #vm-sim.vm-cheia .vmx-k small { display: none; }
    #vm-sim.vm-cheia .vmx-funcoes button { padding: 3px 6px; font-size: 11px; }
    #vm-sim.vm-cheia .vmx-ajuste { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; max-height: 75%; overflow: auto; }
}
