:root {
  --bg: #F3F5F4;
  --card: #FFFFFF;
  --line: #E4E9E6;
  --line-2: #EEF2F0;
  --text: #17231E;
  --muted: #6B7A73;
  --faint: #9AA7A1;
  --green: #2F6B55;
  --green-2: #3D8468;
  --green-soft: #E8F2EC;
  --green-softer: #F2F8F4;
  --side: #10201A;
  --side-2: #1A3128;
  --side-text: #C8D6CF;
  --orange: #E0955A;
  --orange-soft: #FCEFE4;
  --blue: #7D8FC0;
  --blue-soft: #ECEFF8;
  --lilac-soft: #EFEAF4;
  --sky-soft: #E6F0F6;
  --red: #C2483D;
  --red-soft: #FBEAE8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 26, .04), 0 4px 16px rgba(16, 32, 26, .04);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; flex: none; vertical-align: middle; }
a { color: var(--green); text-decoration: none; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 15px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------- ativação ---------------- */
#ativacao { position: fixed; inset: 0; z-index: 45; background: var(--bg, #F4F6F5); display: grid; place-items: center; padding: 16px; overflow: auto; }
#ativacao .caixa { width: min(460px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: 0 10px 40px rgba(0,0,0,.06); }
#ativacao img { max-width: 220px; max-height: 64px; display: block; margin-bottom: 18px; }
#ativacao h1 { font-size: 22px; margin: 0 0 6px; }
#ativacao p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.5; }
#ativacao label { display: block; font-size: 12.5px; font-weight: 600; margin: 14px 0 6px; }
#ativacao .codigo { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: var(--green-soft); border-radius: 10px; padding: 10px 10px 10px 14px; }
#ativacao .codigo b { font-family: ui-monospace, Consolas, monospace; font-size: 17px; letter-spacing: .06em; color: var(--green); }
#ativacao input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; box-sizing: border-box; font-size: 14px; }
#ativacao .passo { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 4px; }
#ativacao .passo span { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
#ativacao .passo p { margin: 2px 0 0; }
#ativacao .ok-lic { background: var(--green-soft); color: var(--green); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 10px; }
#ativacao .codigo-peq { margin-top: 16px; font-size: 12px; color: var(--muted); }
#ativacao .codigo-peq b { font-family: ui-monospace, Consolas, monospace; color: var(--text); }
#ativacao textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; resize: vertical; box-sizing: border-box; }
#ativacao .erro-lic { color: var(--red); font-size: 12.5px; min-height: 18px; margin: 6px 0 8px; }
#ativacao .aviso-lic { background: #FDECEA; color: var(--red); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 8px; }
.chave-gerada { margin-top: 14px; background: var(--green-soft); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; justify-items: start; }
.chave-gerada code { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; word-break: break-all; color: var(--text); }

/* ---------------- splash ---------------- */
#splash {
  position: fixed; inset: 0; background: #0E0E0E; display: grid; place-items: center; z-index: 100;
  transition: opacity .5s ease;
}
#splash img { width: min(460px, 60vw); animation: surgir 1s ease both; }
#splash .versao { position: absolute; bottom: 28px; color: #6d6d6d; font-size: 12px; letter-spacing: .1em; }
#splash.sair { opacity: 0; pointer-events: none; }
@keyframes surgir { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------------- layout ---------------- */
#app { display: grid; grid-template-columns: 248px 1fr; height: 100vh; }
aside {
  background: var(--side); color: var(--side-text); display: flex; flex-direction: column;
  padding: 22px 14px 14px;
}
aside .marca { display: flex; align-items: center; gap: 10px; padding: 2px 8px 26px; }
aside .marca #logo-menu { height: auto; max-height: 44px; max-width: 166px; min-width: 0; }
aside .secao { font-size: 11px; letter-spacing: .12em; color: #6F877C; margin: 18px 10px 8px; }
aside nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--side-text); font-size: 14.5px; margin-bottom: 2px;
}
aside nav a:hover { background: rgba(255,255,255,.04); }
aside nav a.ativo { background: var(--side-2); color: #fff; box-shadow: inset 3px 0 0 #7FC2A2; }
aside nav a svg { width: 19px; height: 19px; opacity: .9; }
aside nav .contador { margin-left: auto; font-size: 11px; background: rgba(255,255,255,.08); padding: 1px 8px; border-radius: 99px; }
aside .rodape {
  margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px;
  border-top: 1px solid rgba(255,255,255,.07);
}
aside .rodape b { color: #fff; font-weight: 600; display: block; font-size: 13.5px; }
aside .rodape span { font-size: 12px; color: #7F978C; }

main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.busca {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 11px; margin: 0 2px 4px;
  border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.05); position: relative; cursor: text;
}
.busca:focus-within { border-color: #7FC2A2; background: rgba(255,255,255,.08); }
.busca input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; color: #fff; font-size: 13.5px; }
.busca input::placeholder { color: #7F978C; }
.busca svg { width: 17px; flex: none; color: #8FA79C; }
.busca .resultados {
  position: absolute; top: 44px; left: 0; width: 300px; background: #fff; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.18); z-index: 20; max-height: 360px; overflow: auto;
}
.busca .resultados div { padding: 9px 12px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.busca .resultados div:hover, .busca .resultados div.sel { background: var(--green-softer); }

/* menu recolhível */
#app { transition: grid-template-columns .2s ease; }
aside { min-width: 0; }
aside .marca { position: relative; min-height: 46px; }
aside .marca #icone-menu { display: none; height: 40px; width: 40px; border-radius: 10px; }
aside .marca img.em-caixa, #splash img.em-caixa, .previa img.em-caixa { background: #fff; border-radius: 10px; padding: 6px 10px; }
#splash img.em-caixa { padding: 18px 26px; border-radius: 18px; }
#recolher { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(255,255,255,.06); color: #8FA79C; cursor: pointer; display: grid; place-items: center; flex: none; }
#recolher:hover { background: rgba(255,255,255,.12); color: #fff; }
#recolher svg { width: 16px; transition: transform .2s; }
aside nav a span.txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recolhido #app { grid-template-columns: 72px 1fr; }
.recolhido aside { padding-left: 10px; padding-right: 10px; }
.recolhido aside .marca { flex-direction: column; padding: 0 0 18px; gap: 12px; }
.recolhido aside .marca #logo-menu { display: none; }
.recolhido aside .marca #icone-menu { display: block; }
.recolhido #recolher { margin: 0; }
.recolhido #recolher svg { transform: rotate(180deg); }
.recolhido aside .secao { font-size: 0; height: 1px; background: rgba(255,255,255,.07); margin: 14px 6px; }
.recolhido aside nav a { justify-content: center; padding: 10px 0; }
.recolhido aside nav a span.txt, .recolhido aside nav .contador { display: none; }
.recolhido .busca { justify-content: center; padding: 0; margin: 0 0 4px; cursor: pointer; }
.recolhido .busca input { position: absolute; opacity: 0; width: 0; pointer-events: none; }
.recolhido aside .rodape { justify-content: center; padding-left: 0; padding-right: 0; }
.recolhido aside .rodape > div:last-child { display: none; }

#conteudo { flex: 1; overflow: auto; }
.pagina { padding: 30px 36px 60px; max-width: 1320px; margin: 0 auto; }
.cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.cabecalho p { margin: 6px 0 0; color: var(--muted); }
.sobretitulo { font-size: 11.5px; letter-spacing: .14em; color: var(--muted); font-weight: 600; margin-bottom: 8px; }

/* ---------------- componentes ---------------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.card + .card { margin-top: 16px; }
.card h3 + p { margin: 4px 0 0; }
.card-titulo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-21 { grid-template-columns: 1.6fr 1fr; }
.g-plano { grid-template-columns: 1fr 340px; align-items: start; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px;
  padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: .15s;
}
.btn:hover { border-color: #CFD8D3; background: #FAFBFA; }
.btn svg { width: 17px; height: 17px; }
.btn.prim { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(47,107,85,.25); }
.btn.prim:hover { background: #295F4B; }
.btn.suave { background: var(--green-soft); border-color: #CFE5D8; color: var(--green); }
.btn.perigo { color: var(--red); }
.btn.peq { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn.icone { width: 40px; padding: 0; }
.btn.peq.icone { width: 32px; }
.btn.bloco { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; color: var(--green); font-weight: 600; cursor: pointer; padding: 0; display: inline-flex; gap: 6px; align-items: center; }
.link svg { width: 15px; height: 15px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 3px 10px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-weight: 600; }
.pill.cinza { background: #EEF0EF; color: var(--muted); }
.pill.laranja { background: var(--orange-soft); color: #B8692C; }
.pill.vermelho { background: var(--red-soft); color: var(--red); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.sem::before { display: none; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 700; font-size: 13px; color: #A2584A; background: #F6DED6;
}
.avatar.g { width: 76px; height: 76px; font-size: 22px; }
.avatar.c1 { background: #DCEBF5; color: #3E6E92; }
.avatar.c2 { background: #E6E0F1; color: #6A5A92; }
.avatar.c3 { background: #DDEFE5; color: #3B7A5A; }
.avatar.c4 { background: #F9E8D2; color: #9A6626; }

/* formulários */
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
.form.f3 { grid-template-columns: repeat(3, 1fr); }
.form.f4 { grid-template-columns: repeat(4, 1fr); }
.form .inteiro { grid-column: 1 / -1; }
.campo label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.campo label .req { color: var(--red); }
.entrada, .campo input, .campo select, .campo textarea {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px;
  background: #fff; outline: none; transition: border .15s, box-shadow .15s;
}
.campo textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.entrada:focus, .campo input:focus, .campo select:focus, .campo textarea:focus {
  border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(61,132,104,.12);
}
.campo .unidade { position: relative; }
.campo .unidade input { padding-right: 44px; }
.campo .unidade span { position: absolute; right: 12px; top: 11px; color: var(--faint); font-size: 12.5px; }
.campo.destaque input { border-color: #9CCDB4; background: var(--green-softer); }
.campo .dica { font-size: 11.5px; color: var(--faint); margin-top: 5px; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--green); }

/* tabelas */
table.tabela { width: 100%; border-collapse: collapse; }
.tabela th { text-align: left; font-size: 11px; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); text-transform: uppercase; }
.tabela td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tr.clic { cursor: pointer; }
.tabela tr.clic:hover td { background: var(--green-softer); }
.tabela input.entrada { height: 34px; }

/* estatísticas */
.stat { display: flex; gap: 16px; align-items: flex-start; position: relative; min-height: 104px; }
.stat .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat .ic svg { width: 22px; height: 22px; }
.stat .rot { font-size: 12.5px; color: var(--muted); }
.stat .val { font-size: 28px; font-weight: 700; margin: 4px 0 2px; letter-spacing: -.02em; }
.stat .val small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat .det { font-size: 12px; color: var(--muted); }
.stat .det.bom { color: var(--green-2); }
.stat .det.ruim { color: var(--red); }
.stat.destaque { background: var(--green); color: #fff; border-color: var(--green); }
.stat.destaque .rot, .stat.destaque .det { color: #CFE5D8; }
.ic.verde { background: var(--green-soft); color: var(--green); }
.ic.laranja { background: var(--orange-soft); color: var(--orange); }
.ic.lilas { background: var(--lilac-soft); color: #7A68A6; }
.ic.azul { background: var(--sky-soft); color: #4F84A8; }
.ic.claro { background: rgba(255,255,255,.12); color: #fff; }

/* paciente */
.paciente-topo { background: #fff; border-bottom: 1px solid var(--line); padding: 22px 36px 0; }
.paciente-topo .voltar { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; margin-bottom: 14px; cursor: pointer; }
.paciente-topo .voltar svg { width: 15px; }
.paciente-topo .linha { display: flex; align-items: center; gap: 20px; max-width: 1320px; margin: 0 auto; }
.paciente-topo h1 { font-size: 30px; display: flex; align-items: center; gap: 12px; }
.paciente-topo .meta { display: flex; gap: 20px; color: var(--muted); font-size: 13px; margin-top: 8px; }
.paciente-topo .meta span { display: inline-flex; align-items: center; gap: 6px; }
.paciente-topo .meta svg { width: 15px; }
.abas { display: flex; gap: 6px; margin: 20px auto 0; max-width: 1320px; overflow-x: auto; }
.abas a { padding: 12px 12px; color: var(--muted); font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; white-space: nowrap; }
.abas a:hover { color: var(--text); }
.abas a.ativo { color: var(--green); border-bottom-color: var(--green); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.chip.ativo { background: var(--green); border-color: var(--green); color: #fff; }

.resultado { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.resultado:last-child { border-bottom: 0; }
.resultado b { font-size: 15px; }
.grande { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }

/* barras de macro */
.macro { margin-bottom: 14px; }
.macro .topo-m { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; }
.macro .barra { height: 8px; background: #EEF1EF; border-radius: 99px; overflow: hidden; position: relative; }
.macro .barra i { display: block; height: 100%; border-radius: 99px; }
.macro .barra .alvo { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--text); opacity: .35; }
.dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; }
.p { background: #4E9F7A; } .c { background: var(--orange); } .l { background: var(--blue); }

/* plano alimentar */
.resumo-plano { display: grid; grid-template-columns: 1fr 1fr 1.25fr 1.25fr 1.25fr auto; align-items: center; padding: 16px 22px; }
.resumo-plano > div { padding: 0 18px; border-left: 1px solid var(--line); }
.resumo-plano > div:first-child { padding-left: 0; border-left: 0; }
.resumo-plano .rot { font-size: 12px; color: var(--muted); }
.resumo-plano .v { font-size: 22px; font-weight: 700; }
.resumo-plano .v small { font-size: 12px; color: var(--muted); font-weight: 500; }
.resumo-plano .mac { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.resumo-plano .mac b { font-size: 15px; }
.resumo-plano input.meta { width: 100px; font-size: 20px; font-weight: 700; height: 36px; border: 1px dashed transparent; border-radius: 8px; padding: 0 6px; margin-left: -7px; background: transparent; }
.resumo-plano input.meta:hover, .resumo-plano input.meta:focus { border-color: #BFD8CB; outline: 0; background: #fff; }

.refeicao { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; }
.refeicao .cab { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; }
.refeicao .n { width: 34px; height: 34px; border-radius: 9px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 700; flex: none; }
.refeicao .nome { font-weight: 600; font-size: 15px; border: 1px solid transparent; border-radius: 7px; padding: 2px 6px; margin-left: -7px; background: transparent; width: 260px; }
.refeicao .nome:hover, .refeicao .nome:focus { border-color: var(--line); outline: 0; background: #fff; }
.refeicao .hora { width: 74px; border: 1px solid transparent; border-radius: 7px; padding: 2px 4px; background: transparent; color: var(--muted); font-size: 12.5px; }
.refeicao .hora:hover, .refeicao .hora:focus { border-color: var(--line); outline: 0; }
.refeicao .descr { font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; }
.refeicao .kcal { font-weight: 700; font-size: 14px; white-space: nowrap; }
.refeicao .kcal small { color: var(--muted); font-weight: 500; }
.refeicao .corpo { padding: 0 18px 18px; }
.opcoes-abas { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.opcoes-abas button { border: 0; background: none; padding: 9px 12px; font-size: 12px; letter-spacing: .06em; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; text-transform: uppercase; }
.opcoes-abas button.ativo { color: var(--green); border-bottom-color: var(--green); }
.opcoes-abas button small { font-weight: 500; letter-spacing: 0; margin-left: 4px; text-transform: none; }
.itens { background: #FAFBFA; border-radius: 10px; padding: 4px 12px; }
.item { display: grid; grid-template-columns: 74px 150px 1fr 90px 34px 34px 34px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.item:last-of-type { border-bottom: 0; }
.item:has(+ .item.sub), .item:has(+ .add-alimento.sub) { border-bottom: 0; }
.item.sub { padding-top: 2px; }
.item.sub .al b { display: inline; }
.item.sub .al span { display: block; }
.item .al em.ou { font-style: normal; font-weight: 700; color: var(--green); margin-right: 6px; font-size: 12.5px; }
.add-alimento.sub { margin: 0 0 8px 84px; }
.item input.qtd { width: 74px; height: 34px; text-align: right; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: #fff; }
.item select { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; background: #fff; width: 150px; }
.item .al b { font-weight: 600; display: block; }
.item .al span { font-size: 12px; color: var(--muted); }
.item .kc { text-align: right; font-size: 12.5px; color: var(--muted); }
.item .cad { width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: none; display: grid; place-items: center; cursor: pointer; color: var(--faint); }
.item .cad:hover { border-color: var(--line); background: #fff; color: var(--text); }
.item .cad.on { color: var(--green); background: var(--green-soft); }
.item .cad svg { width: 16px; height: 16px; }
.add-alimento { position: relative; padding: 10px 0 4px; }
.add-alimento input { width: 100%; height: 38px; border: 1px dashed #C9D5CF; border-radius: 9px; padding: 0 12px 0 36px; background: #fff; }
.add-alimento input:focus { border-style: solid; border-color: var(--green-2); outline: 0; }
.add-alimento svg { position: absolute; left: 11px; top: 21px; width: 16px; color: var(--faint); }
.sugestoes { position: absolute; left: 0; right: 0; top: 50px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.08); max-height: 280px; overflow: auto; z-index: 15; }
.sugestoes div { padding: 9px 12px; display: flex; justify-content: space-between; cursor: pointer; font-size: 13px; }
.sugestoes div:hover, .sugestoes div.sel { background: var(--green-softer); }
.sugestoes span { color: var(--muted); font-size: 12px; }
.equivalentes { margin-top: 12px; border: 1px dashed #A9D2BC; background: var(--green-softer); border-radius: 10px; padding: 11px 14px; display: flex; gap: 12px; align-items: center; font-size: 12.5px; }
.equivalentes svg { width: 18px; color: var(--green); flex: none; }
.equivalentes b { color: var(--green); display: block; }
.menu-ref { position: relative; }
.pop { position: absolute; right: 0; top: 40px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.1); min-width: 230px; z-index: 30; padding: 6px; }
.pop button, .pop label { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 10px; background: none; border: 0; border-radius: 7px; cursor: pointer; text-align: left; font-size: 13px; }
.pop button:hover, .pop label:hover { background: var(--green-softer); }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }
.pop svg { width: 16px; color: var(--muted); }
.lateral { position: sticky; top: 0; }
.lateral .card + .card { margin-top: 14px; }
.verif { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.verif:last-child { border-bottom: 0; }
.verif .ok { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green-2); color: #fff; flex: none; }
.verif .ok.aviso { background: var(--orange); }
.verif .ok svg { width: 14px; }
.verif b { font-size: 13px; display: block; }
.verif span { font-size: 11.5px; color: var(--muted); }
.segmento { display: inline-flex; background: #EEF1EF; border-radius: 9px; padding: 3px; }
.segmento button { border: 0; background: none; padding: 5px 12px; border-radius: 7px; font-weight: 600; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.segmento button.ativo { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.vazio { text-align: center; padding: 50px 20px; color: var(--muted); }
.vazio > svg { width: 42px; height: 42px; color: #B7C6BE; margin-bottom: 10px; }
.vazio .btn { margin-top: 6px; }
.vazio h3 { color: var(--text); margin-bottom: 6px; }

/* anexos / notas */
.anexo { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
.anexo:last-child { border-bottom: 0; }
.anexo .tipo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-size: 10.5px; font-weight: 800; flex: none; }
.anexo .tipo.outro { background: var(--sky-soft); color: #4F84A8; }
.anexo b { display: block; font-weight: 600; word-break: break-all; }
.lista-cons { display: grid; }
.item-cons { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line-2); }
.item-cons:first-child { border-top: 0; padding-top: 2px; }
.item-cons .data { width: 92px; flex: none; display: grid; gap: 2px; }
.item-cons .acoes { display: flex; gap: 6px; align-items: center; flex: none; }
.item-cons .sel-sit { height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; background: #fff; font-size: 12.5px; }
.destaque-ret { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; padding: 14px 18px; }
.destaque-ret > svg { width: 20px; color: var(--green); flex: none; }
.nota { border-left: 3px solid var(--green-2); padding: 4px 0 4px 16px; margin-bottom: 18px; }
.nota .quando { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 10px; align-items: center; }
.nota p { margin: 0; white-space: pre-wrap; line-height: 1.5; }

/* gráfico */
.grafico svg { width: 100%; height: 220px; display: block; }
.grafico .eixo { font-size: 11px; fill: var(--faint); }

/* modal / toast */
.fundo-modal { position: fixed; inset: 0; background: rgba(12, 22, 18, .42); display: grid; place-items: center; z-index: 50; animation: fade .15s; }
.modal { background: #fff; border-radius: 16px; width: min(640px, 92vw); max-height: 88vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal.largo { width: min(900px, 94vw); }
.modal .mc { padding: 22px 24px 8px; display: flex; justify-content: space-between; align-items: center; }
.modal .mb { padding: 10px 24px 20px; }
.modal .mr { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: #FAFBFA; border-radius: 0 0 16px 16px; }
#toasts { position: fixed; right: 24px; bottom: 92px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.toast { background: var(--side); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: 420px; animation: fade .2s; font-size: 13.5px; }
.toast.erro { background: var(--red); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1250px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g-plano { grid-template-columns: 1fr; }
  .lateral { position: static; }
  .resumo-plano { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
  .resumo-plano > div:nth-child(4) { border-left: 0; padding-left: 0; }
}

/* ajustes */
.grid > .card + .card { margin-top: 0; }
.voltar svg { width: 15px; height: 15px; }
.resumo-plano input.meta { width: 84px; }

/* Distribuição automática: refeições e horários */
.ref-auto { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 0 8px 0 12px; height: 42px; }
.ref-auto .check { flex: 1; min-width: 0; font-size: 13.5px; }
.ref-auto input.hora { width: 64px; height: 28px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: 12.5px; text-align: center; background: #fff; }
.modal .mr { position: sticky; bottom: 0; z-index: 1; }
.resumo-plano { align-items: start; }
.resumo-plano input.meta { width: auto; field-sizing: content; min-width: 56px; height: 30px; font-size: 22px; margin-right: 2px; vertical-align: baseline; }
.riscos { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 12px; border-bottom: 1px solid var(--line-2); }
.sub-res { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 2px; font-weight: 600; }
.resultado b { text-align: right; }

/* Cabeçalho do paciente e seletor de avaliação em janelas estreitas */
.paciente-topo h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paciente-topo h1 .pill, .paciente-topo .meta span, .paciente-topo .btn { white-space: nowrap; }
.paciente-topo .meta { flex-wrap: wrap; row-gap: 4px; }
.acoes-av { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 1300px) {
  .abas { gap: 0; }
  .abas a { padding: 12px 9px; font-size: 13px; }
  .paciente-topo h1 { font-size: 26px; }
}

/* Consultas e retornos / Agenda */
.acoes-linha { white-space: nowrap; }
.acoes-linha .btn { margin-left: 4px; }
.btn.icone { position: relative; }
.ponto-ok { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); border: 1.5px solid #fff; }
.btn.mini { width: 24px; height: 24px; padding: 0; border-radius: 6px; background: rgba(255,255,255,.7); }
.btn.mini svg { width: 13px; }
.semana { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 8px; overflow-x: auto; }
.semana .dia { background: #F7F9F8; border: 1px solid var(--line-2); border-radius: 11px; min-height: 300px; display: flex; flex-direction: column; }
.semana .dia.hoje { border-color: var(--green-2); background: var(--green-softer); }
.semana .cab { display: flex; align-items: baseline; gap: 6px; padding: 9px 11px; border-bottom: 1px solid var(--line-2); color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.semana .cab b { font-size: 18px; color: var(--text); }
.semana .dia.hoje .cab b { color: var(--green); }
.semana .itens { padding: 8px; display: flex; flex-direction: column; gap: 7px; }
.semana .livre { color: var(--faint); font-size: 12px; text-align: center; padding: 14px 0; }
.comp { border-radius: 9px; padding: 7px 9px; cursor: pointer; font-size: 12.5px; border-left: 3px solid; transition: transform .1s; }
.comp:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.comp.consulta { background: var(--green-soft); border-color: var(--green); }
.comp.retorno { background: var(--orange-soft); border-color: var(--orange); }
.comp.feito { opacity: .55; }
.comp .nome { font-weight: 600; margin: 3px 0 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp .small { color: var(--muted); }
.leg { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin: 0 4px 0 8px; vertical-align: -1px; }
.leg.consulta { background: var(--green); }
.leg.retorno { background: var(--orange); }
.passos-google { margin: 0; padding-left: 20px; line-height: 1.6; font-size: 13px; }
.passos-google li { margin-bottom: 6px; }

/* logo do sistema (Configurações) */
.previas-logo { display: grid; grid-template-columns: 1fr 1fr 160px; gap: 12px; }
.previa { position: relative; border-radius: 12px; border: 1px solid var(--line); height: 120px; display: grid; place-items: center; padding: 26px 18px 14px; }
.previa span { position: absolute; top: 8px; left: 12px; font-size: 11px; color: var(--muted); font-weight: 600; }
.previa.escura { background: var(--side); border-color: var(--side); }
.previa.escura span { color: #8FA79C; }
.previa img { max-width: 100%; max-height: 64px; }
.previa.icone img { max-height: 70px; border-radius: 14px; }

.tipo-at { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 99px; }
.tipo-at::before { content: ''; width: 8px; height: 8px; border-radius: 3px; }
.tipo-at.consulta { background: var(--green-soft); color: var(--green); }
.tipo-at.consulta::before { background: var(--green); }
.tipo-at.retorno { background: var(--orange-soft); color: #B8692C; }
.tipo-at.retorno::before { background: var(--orange); }

/* lembretes (botão flutuante) */
#lemb-fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: #fff; box-shadow: 0 6px 20px rgba(16,32,26,.28); display: grid; place-items: center; transition: transform .15s; }
#lemb-fab:hover { transform: translateY(-2px); background: var(--green-2); }
#lemb-fab svg { width: 24px; }
#lemb-badge { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--red);
  color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
#lemb-painel { position: fixed; right: 24px; bottom: 90px; z-index: 41; width: min(420px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 120px));
  background: #fff; border-radius: 16px; box-shadow: 0 16px 50px rgba(16,32,26,.25); display: flex; flex-direction: column; overflow: hidden; }
.lemb-cab { display: flex; align-items: center; gap: 6px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--line); }
.lemb-cab > div { flex: 1; display: flex; flex-direction: column; }
.lemb-cab b { font-size: 15px; }
.lemb-corpo { overflow: auto; padding: 4px 0; }
.lemb-grupo { padding: 8px 0; }
.lemb-titulo { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 4px 18px 6px; }
.lemb-titulo svg { width: 14px; }
.lemb-item { display: flex; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line-2); }
.lemb-item.marcado { opacity: .7; }
.lemb-acoes { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.lemb-acoes .wpp { background: #E8F7EE; border-color: #CBEBD8; color: #167A43; }
.lemb-acoes svg { width: 15px; }
.lemb-rodape { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12.5px; text-align: center; }
.msg-wpp { background: #E7F8DC; border-radius: 10px 10px 10px 2px; padding: 12px 14px; font-size: 14px; line-height: 1.5; white-space: normal; }
.cfg-lemb { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.cfg-lemb textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font: inherit; font-size: 13px; resize: vertical; }
.cfg-lemb .campo, .modal .row > .campo { margin: 0; width: 120px; }
.vars-lemb code { background: var(--green-soft); color: var(--green); border-radius: 6px; padding: 1px 6px; font-size: 12px; cursor: help; }
@media (max-width: 600px) { #lemb-fab { right: 16px; bottom: 16px; } #lemb-painel { right: 16px; bottom: 80px; } }
@media (max-width: 700px) {
  .pagina { padding: 20px 14px 90px; }
  .cabecalho { flex-wrap: wrap; align-items: flex-start; }
  .cabecalho h1 { font-size: 24px; }
  .card .tabela { display: block; overflow-x: auto; }
  /* cabeçalho do paciente: nome em cima, botões quebram para a linha de baixo */
  .paciente-topo { padding: 16px 14px 0; }
  .paciente-topo .linha { flex-wrap: wrap; gap: 12px; }
  .paciente-topo .linha > div[style*="flex:1"] { flex: 1 1 calc(100% - 90px) !important; }
  .paciente-topo .avatar.g { width: 56px; height: 56px; font-size: 18px; }
  .paciente-topo h1 { font-size: 22px; flex-wrap: wrap; white-space: normal; }
}

.sel-sit[data-v=faltou] { color: var(--red); }
.sel-sit[data-v=cancelado] { color: var(--muted); text-decoration: line-through; }
.sel-sit[data-v=realizado] { color: var(--muted); }
.comp.faltou { border-left-color: var(--red) !important; }

/* ---------------- financeiro ---------------- */
.pill.azul { background: var(--sky-soft); color: #3F6F91; }
.pill svg { width: 13px; height: 13px; }
.pills-at { gap: 6px; }
.pills-at:empty { display: none; }
td .pills-at:not(:empty) { margin-bottom: 4px; }
.ic.vermelho { background: var(--red-soft); color: var(--red); }
.tabela-rola { overflow-x: auto; }
.tabela tr.inativo td { opacity: .6; }
.bloco-pag { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #FAFBFA; }
.bloco-pag > .row svg { width: 18px; height: 18px; color: var(--green); }
.barra-sessoes { display: flex; height: 8px; background: #EEF1EF; border-radius: 99px; overflow: hidden; }
.barra-sessoes span { background: var(--green); }
.barra-sessoes span.ag { background: #A9D3BE; }
.comp .sessao { margin-top: 3px; font-weight: 600; opacity: .85; }
.comp .sessao.ultima { color: var(--red); opacity: 1; }
aside { overflow-y: auto; scrollbar-width: none; }
.grupo-menu .grupo-cab { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--side-text); font-size: 14.5px; margin-bottom: 2px; cursor: pointer; }
.grupo-menu .grupo-cab:hover { background: rgba(255,255,255,.04); }
.grupo-menu .grupo-cab > svg { width: 19px; height: 19px; opacity: .9; }
.grupo-menu .seta { margin-left: auto; display: flex; transition: transform .2s; }
.grupo-menu .seta svg { width: 15px; height: 15px; opacity: .7; }
.grupo-menu.aberto .seta { transform: rotate(180deg); }
.grupo-menu.tem-ativo .grupo-cab { color: #fff; }
.grupo-menu .sub { display: none; padding-left: 14px; }
.grupo-menu.aberto .sub { display: block; }
.grupo-menu .sub a { font-size: 13.5px; padding: 8px 12px; }
.grupo-menu .sub a svg { width: 16px; height: 16px; }
.grupo-menu .sub-tit { display: none; }
.recolhido .grupo-menu .grupo-cab { justify-content: center; padding: 10px 0; }
.recolhido .grupo-menu .grupo-cab .txt, .recolhido .grupo-menu .seta { display: none; }
.recolhido .grupo-menu.tem-ativo .grupo-cab { background: var(--side-2); box-shadow: inset 3px 0 0 #7FC2A2; }
.recolhido .grupo-menu .sub, .recolhido .grupo-menu.aberto .sub { display: none; }
.recolhido .grupo-menu.voando .sub { display: block; position: fixed; z-index: 40; background: var(--side); padding: 8px; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.3); min-width: 230px; }
.recolhido .grupo-menu.voando .sub a { justify-content: flex-start; padding: 8px 12px; }
.recolhido .grupo-menu.voando .sub a span.txt { display: inline; }
.recolhido .grupo-menu.voando .sub-tit { display: block; font-size: 11px; letter-spacing: .12em; color: #6F877C; padding: 4px 12px 8px; text-transform: uppercase; }
@media (max-width: 700px) { #grid-serv { grid-template-columns: 1fr !important; } }
.tabela td.num { white-space: nowrap; }
@media (max-width: 700px) {
  .g4, .g3 { grid-template-columns: 1fr; }
  .grid { min-width: 0; }
  .stat .val { font-size: 22px; }
}
.graf-leg { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.graf-leg i, .graf-dica i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.graf-area { display: flex; gap: 8px; height: 220px; }
.graf-eixo { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); text-align: right; padding-bottom: 22px; margin-top: -6px; min-width: 52px; }
.graf-plot { flex: 1; position: relative; display: flex; gap: 2px; min-width: 0; }
.graf-linha { position: absolute; left: 0; right: 0; border-top: 1px solid #EEF1EF; }
.graf-col { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; padding-bottom: 22px; }
.graf-barras { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; position: relative; z-index: 1; }
.graf-barra { width: min(14px, 30%); border-radius: 4px 4px 0 0; min-height: 0; }
.graf-x { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); }
.graf-col:hover .graf-barras { background: rgba(47,107,85,.05); border-radius: 6px; }
.graf-dica { display: none; position: absolute; bottom: calc(100% - 30px); left: 50%; transform: translateX(-50%); background: #1D2A24; color: #fff; font-size: 12px; padding: 8px 10px; border-radius: 8px; white-space: nowrap; z-index: 5; pointer-events: none; }
.graf-col:hover .graf-dica { display: block; }
.graf-col:first-child .graf-dica, .graf-col:nth-child(2) .graf-dica { left: 0; transform: none; }
.graf-col:last-child .graf-dica, .graf-col:nth-last-child(2) .graf-dica { left: auto; right: 0; transform: none; }
.graf-tab { margin-top: 10px; font-size: 12.5px; }
.graf-tab summary { cursor: pointer; color: var(--muted); }
.aviso-fin { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; color: inherit; }
.aviso-fin:last-child { border-bottom: 0; }
.aviso-fin > svg { width: 18px; height: 18px; color: var(--orange); flex: none; margin-top: 2px; }
.linha-val { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.linha-val:last-child { border-bottom: 0; }
.tabela td.entra { color: #2E8B64; }
.tabela td.sai { color: #B8692C; }
.tabela tr.futuro td { background: #FAFBFA; }
@media (max-width: 900px) { #grid-visao { grid-template-columns: 1fr !important; } }
.stat .val { white-space: nowrap; font-size: clamp(20px, 1.85vw, 28px); }
.stat > div:last-child { min-width: 0; }
.g-dash { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 1050px) { .g-dash { grid-template-columns: 1fr; } }
.lista-prox { display: flex; flex-direction: column; }
.prox { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); color: inherit; cursor: pointer; }
.prox:last-child { border-bottom: 0; }
.prox .quando { width: 74px; flex: none; display: flex; flex-direction: column; font-size: 12.5px; }
.prox .quando span { color: var(--muted); font-size: 12px; }
.prox:hover b { color: var(--green); }
.oculto { letter-spacing: .04em; color: var(--muted); }

/* ---------------- anamnese ---------------- */
.modelo-ana h3 { margin: 0; }
.perg { margin-top: 12px; padding: 14px 16px; }
.perg.secao { background: var(--green-soft); border-color: transparent; }
.perg .form { padding: 0; gap: 10px; }
.perg .campo { margin: 0; }
.perg input.tit-secao { font-weight: 700; font-size: 15px; }
.num-perg { width: 28px; height: 28px; border-radius: 8px; background: #EEF1EF; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; flex: none; margin-top: 6px; }
.num-perg svg { width: 15px; height: 15px; }
.acoes-perg { display: flex; flex-direction: column; gap: 4px; }
.add-perg { margin: 16px 0 40px; gap: 6px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; }
.form-ana, .respostas-ana { display: flex; flex-direction: column; gap: 14px; }
.campo-q .tit-q { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13.5px; }
.campo-q input[type=text], .campo-q input[type=date], .campo-q textarea, .campo-q select { width: 100%; }
.ops-q { display: flex; flex-direction: column; gap: 6px; }
.escala-q { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.escala-q label { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; cursor: pointer; }
.sec-q { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--green); }
.sec-q:first-child { border-top: 0; padding-top: 0; }
.resp-q > div:last-child { margin-top: 2px; }
.item-ana { padding: 14px 18px; margin-bottom: 10px; }
.item-ana svg { width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 700px) { .acoes-perg { flex-direction: row; flex-wrap: wrap; } .perg > .row { flex-wrap: wrap; } }
.campo-q input[type=text], .campo-q input[type=date], .campo-q input[type=number], .campo-q textarea, .campo-q select { border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font: inherit; background: #fff; }
.campo-q input[type=text], .campo-q input[type=date], .campo-q input[type=number], .campo-q select { height: 40px; }
.campo-q textarea { min-height: 70px; resize: vertical; }
.campo-q input:focus, .campo-q textarea:focus, .campo-q select:focus { outline: none; border-color: var(--green); }
@media (max-width: 520px) { .modal .mr { flex-wrap: wrap; } .modal .mr .btn { flex: 1 1 auto; justify-content: center; } }
.mud-ana { display: flex; flex-direction: column; gap: 6px; }
.mud-q { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.mud-q input { margin-top: 2px; }
.mud-q b { margin-right: 6px; }
.mud-q .muted { margin-right: 2px; }

/* espera de operação demorada (ex.: publicar no Google) */
.carregando { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 34px; text-align: center; max-width: 360px; }
.carregando .giro { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--borda, #dfe7e2); border-top-color: var(--verde, #2e7d5b); animation: giro .8s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
