:root {
  --fundo: #F5F3EE;
  --fundo-2: #ECE9E1;
  --cartao: #FFFFFF;
  --tinta: #1B1A17;
  --tinta-2: #5E5A52;
  --tinta-3: #8A857A;
  --borda: #E4E0D6;
  --borda-2: #D9D4C8;
  --verde: #1D5C4D;
  --verde-escuro: #123F35;
  --verde-claro: #E3EEEA;
  --ambar: #7A4700;
  --ambar-claro: #FBEFD9;
  --azul: #1F4E79;
  --azul-claro: #E3ECF5;
  --vermelho: #8E2A1E;
  --vermelho-claro: #F8E3DF;
  --menu: #1B1A17;
  --raio: 12px;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body, #app { margin: 0; height: 100%; }
body { font-family: var(--sans); color: var(--tinta); background: var(--fundo); -webkit-font-smoothing: antialiased; }
a { color: var(--verde); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #5BBF95; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.carregando { padding: 40px; color: var(--tinta-2); }

/* ---------- botoes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font-size: 14px; font-weight: 600; background: var(--verde); color: #fff; white-space: nowrap; }
.btn:hover { background: var(--verde-escuro); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-sec { background: #fff; color: var(--tinta); border-color: var(--borda-2); }
.btn-sec:hover { background: var(--fundo); }
.btn-perigo { background: #fff; color: var(--vermelho); border-color: #E6BDB6; }
.btn-perigo:hover { background: var(--vermelho-claro); }
.btn-peq { height: 34px; padding: 0 12px; font-size: 13px; }
.link { background: none; border: 0; padding: 0; color: var(--verde); font-weight: 600; text-decoration: underline; }

/* ---------- login ---------- */
.login { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-caixa { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.logo { width: 56px; height: 56px; border-radius: 14px; background: var(--verde); color: #F5F3EE; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 32px; font-weight: 600; }
.logo-peq { width: 36px; height: 36px; border-radius: 10px; font-size: 22px; flex-shrink: 0; }
.login h1 { font-family: var(--serif); font-size: 32px; font-weight: 600; margin: 6px 0 0; }
.login p { margin: 0; color: var(--tinta-2); line-height: 1.5; }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.campo input, .campo textarea, .campo select { height: 46px; border: 1px solid var(--borda-2); border-radius: 10px; padding: 0 14px; background: #fff; font-weight: 400; font-size: 15px; }
.campo textarea { height: auto; min-height: 84px; padding: 10px 14px; resize: vertical; }
.erro { color: var(--vermelho); background: var(--vermelho-claro); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.ok { color: var(--verde-escuro); background: var(--verde-claro); border-radius: 10px; padding: 10px 12px; font-size: 14px; }

/* ---------- estrutura ---------- */
.shell { display: flex; height: 100%; }
.menu { width: 240px; flex-shrink: 0; background: var(--menu); color: #F5F3EE; display: flex; flex-direction: column; padding: 24px 14px; gap: 24px; }
.marca { display: flex; align-items: center; gap: 10px; padding: 0 6px; min-width: 0; }
.marca-txt { display: flex; flex-direction: column; min-width: 0; }
.marca-nome { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.marca-esc { font-size: 12px; color: #C9C4B8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu select { width: 100%; height: 38px; border-radius: 9px; border: 1px solid #3A3934; background: #2A2925; color: #F5F3EE; padding: 0 10px; font-size: 13px; }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu nav a, .menu nav span { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border-radius: 9px; font-size: 14px; text-decoration: none; color: #E8E4DA; }
.menu nav a.ativo { background: var(--verde); color: #fff; font-weight: 600; }
.menu nav span { color: #8F8A7F; cursor: default; }
.menu nav small { font-size: 11px; color: #8F8A7F; }
.menu-rodape { margin-top: auto; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: #C9C4B8; padding: 0 6px; }
.menu-rodape button { background: none; border: 1px solid #3A3934; color: #E8E4DA; border-radius: 9px; height: 36px; }
.conteudo { flex-grow: 1; min-width: 0; overflow: auto; }

.pagina { padding: 26px 30px; display: flex; flex-direction: column; gap: 20px; min-height: 100%; }
.cabecalho { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cabecalho-txt { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 220px; }
.cabecalho h1 { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 600; }
.cabecalho p { margin: 0; color: var(--tinta-2); font-size: 14px; }
.busca { width: 280px; max-width: 100%; height: 42px; border: 1px solid var(--borda-2); border-radius: 10px; padding: 0 14px; background: #fff; font-size: 14px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tinta-2); }

/* ---------- indicadores ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--cartao); border: 1px solid var(--borda); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.kpi span { font-size: 13px; color: var(--tinta-2); font-weight: 500; }
.kpi strong { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; }
.kpi small { font-size: 12px; color: var(--verde); font-weight: 600; }
.kpi.alerta { border-color: #EBCF9E; background: #FFFBF3; }
.kpi.alerta small { color: var(--ambar); }

/* ---------- funil ---------- */
.funil { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(172px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; flex-grow: 1; align-items: start; }
.coluna { background: var(--fundo-2); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 9px; min-height: 120px; }
.coluna-topo { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 4px; font-size: 13px; font-weight: 700; }
.coluna-topo span { font-size: 12px; font-weight: 600; color: var(--tinta-2); background: #fff; border-radius: 999px; padding: 2px 9px; }
.vazio { font-size: 12px; color: var(--tinta-3); padding: 6px 4px; }
.card { background: var(--cartao); border: 1px solid var(--borda); border-radius: 10px; padding: 11px 12px; display: flex; flex-direction: column; gap: 7px; text-decoration: none; color: var(--tinta); }
.card:hover { border-color: var(--verde); }
.card-topo { display: flex; justify-content: space-between; gap: 6px; }
.card-nome { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.card-hora { font-size: 11px; color: var(--tinta-2); white-space: nowrap; }
.card-trecho { font-size: 12px; color: var(--tinta-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-resp { font-size: 11px; color: var(--tinta-3); }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 3px 7px; background: var(--verde-claro); color: var(--verde); }
.chip-ambar { background: var(--ambar-claro); color: var(--ambar); }
.chip-azul { background: var(--azul-claro); color: var(--azul); }
.chip-verm { background: var(--vermelho-claro); color: var(--vermelho); }
.chip-cinza { background: var(--fundo-2); color: var(--tinta-2); }

/* ---------- conversa ---------- */
.conv { display: flex; height: 100%; min-height: 0; }
.conv-chat { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-topo { background: #fff; border-bottom: 1px solid var(--borda); padding: 14px 22px; display: flex; flex-direction: column; gap: 10px; }
.conv-linha { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.voltar { text-decoration: none; font-weight: 600; font-size: 14px; }
.conv-nome { display: flex; flex-direction: column; flex-grow: 1; min-width: 180px; }
.conv-nome strong { font-size: 17px; }
.conv-nome span { font-size: 13px; color: var(--tinta-2); }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.acoes select { height: 34px; border: 1px solid var(--borda-2); border-radius: 9px; padding: 0 8px; background: #fff; font-size: 13px; }
.aviso-ia { font-size: 13px; background: var(--azul-claro); color: var(--azul); border-radius: 10px; padding: 9px 12px; }
.mensagens { flex-grow: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; background: var(--fundo); }
.dia { align-self: center; font-size: 12px; color: var(--tinta-2); background: var(--fundo-2); border-radius: 999px; padding: 3px 10px; margin: 6px 0; }
.msg { max-width: min(560px, 82%); border-radius: 12px; padding: 8px 12px 6px; display: flex; flex-direction: column; gap: 3px; }
.msg-cliente { align-self: flex-start; background: #fff; border: 1px solid var(--borda); }
.msg-assistente { align-self: flex-end; background: var(--verde-claro); }
.msg-humano { align-self: flex-end; background: var(--azul-claro); }
.msg-sistema { align-self: flex-end; background: #EFEDE7; }
.msg-autor { font-size: 11px; font-weight: 700; color: var(--tinta-2); }
.msg-assistente .msg-autor { color: var(--verde); }
.msg-humano .msg-autor { color: var(--azul); }
.msg-texto { font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-hora { font-size: 10px; color: var(--tinta-3); align-self: flex-end; }
.conv-rodape { background: #fff; border-top: 1px solid var(--borda); padding: 12px 22px; font-size: 13px; color: var(--tinta-2); }

.lateral { width: 390px; flex-shrink: 0; background: #fff; border-left: 1px solid var(--borda); overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 22px; }
.bloco { display: flex; flex-direction: column; gap: 9px; }
.bloco h2 { margin: 0; font-size: 12px; font-weight: 700; color: var(--tinta-2); letter-spacing: .05em; text-transform: uppercase; }
.bloco p { margin: 0; font-size: 14px; line-height: 1.5; }
.bloco ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.caixa-horario { background: var(--ambar-claro); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.caixa-horario strong { font-size: 15px; }
.caixa-ok { background: var(--verde-claro); }
.dados { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.dados dt { color: var(--tinta-2); }
.dados dd { margin: 0; overflow-wrap: anywhere; }
.tese { border: 1px solid var(--borda); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.45; }
.tese-titulo { font-weight: 700; font-size: 14px; }
.tese a { overflow-wrap: anywhere; }
.nota { font-size: 12px; color: var(--tinta-2); background: var(--fundo); border-radius: 10px; padding: 10px 12px; line-height: 1.45; }
.abas { display: none; }

/* ---------- modal e toast ---------- */
.modal-fundo { position: fixed; inset: 0; background: rgba(27, 26, 23, .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 20; }
.modal { background: #fff; border-radius: 14px; padding: 20px; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.modal h2 { margin: 0; font-family: var(--serif); font-size: 22px; }
.modal-botoes { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal-botoes .btn { white-space: nowrap; }
.modal-botoes .btn-perigo { margin-right: auto; }
@media (max-width: 480px) {
  .modal-botoes .btn-perigo { flex: 1 1 100%; margin-right: 0; order: 3; }
  .modal-botoes .btn:not(.btn-perigo) { flex: 1 1 0; }
}
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--tinta); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 14px; max-width: calc(100% - 32px); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 30; }
#toast.mostrar { opacity: 1; }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .menu { width: 100%; flex-direction: row; align-items: center; padding: 10px 16px; gap: 10px; padding-top: max(10px, env(safe-area-inset-top)); }
  .menu nav, .menu-rodape span { display: none; }
  .menu select { width: auto; max-width: 150px; }
  .menu-rodape { margin: 0 0 0 auto; flex-direction: row; padding: 0; }
  .menu-rodape button { height: 32px; padding: 0 10px; }
  .marca-esc { max-width: 120px; }
  .pagina { padding: 18px 16px; gap: 16px; }
  .cabecalho h1 { font-size: 26px; }
  .busca { width: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi strong { font-size: 28px; }
  .funil { grid-auto-columns: 82%; scroll-snap-type: x mandatory; }
  .coluna { scroll-snap-align: start; }
  .conv { flex-direction: column; }
  .abas { display: flex; gap: 6px; }
  .abas button { flex: 1; height: 36px; border-radius: 999px; border: 1px solid var(--borda-2); background: #fff; font-size: 13px; font-weight: 600; }
  .abas button[aria-selected="true"] { background: var(--tinta); color: #fff; border-color: var(--tinta); }
  .conv[data-aba="caso"] .conv-chat .mensagens, .conv[data-aba="caso"] .conv-rodape { display: none; }
  .conv[data-aba="conversa"] .lateral { display: none; }
  .conv-topo { padding: 12px 16px; }
  .mensagens { padding: 14px 16px; min-height: 55vh; }
  .lateral { width: 100%; border-left: 0; padding: 16px; }
  .msg { max-width: 88%; }
}

/* ---------- etapa C: agenda, numeros, configuracoes ---------- */
.select-peq { height: 34px; border: 1px solid var(--borda-2); border-radius: 9px; padding: 0 8px; background: #fff; font-size: 13px; }
.periodo { font-size: 14px; color: var(--tinta-2); font-weight: 600; margin-top: -8px; }
.agenda { display: flex; flex-direction: column; gap: 14px; }
.dia-agenda { background: var(--cartao); border: 1px solid var(--borda); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.dia-agenda.hoje { border-color: var(--verde); box-shadow: inset 4px 0 0 var(--verde); }
.dia-agenda h2 { margin: 0; font-size: 14px; font-weight: 700; }
.dia-agenda h2::first-letter { text-transform: uppercase; }
.consulta { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid var(--borda); }
.consulta:first-of-type { border-top: 0; padding-top: 0; }
.consulta-hora { font-family: var(--serif); font-size: 22px; font-weight: 600; min-width: 64px; display: flex; flex-direction: column; line-height: 1.1; }
.consulta-hora small { font-family: var(--sans); font-size: 12px; color: var(--tinta-3); font-weight: 500; }
.consulta-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.consulta-nome { font-weight: 700; font-size: 15px; text-decoration: none; color: var(--tinta); }
.consulta-nome:hover { color: var(--verde); text-decoration: underline; }
.busca-mes { width: 180px; }
.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.painel-bloco { background: var(--cartao); border: 1px solid var(--borda); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.painel-bloco h2 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.painel-bloco h3 { margin: 0; font-size: 15px; font-weight: 700; }
.nota-peq { margin: -4px 0 0; font-size: 13px; color: var(--tinta-2); line-height: 1.45; }
.funil-barras { display: flex; flex-direction: column; gap: 10px; }
.funil-linha { display: grid; grid-template-columns: 150px 1fr 64px; gap: 10px; align-items: center; font-size: 13px; }
.funil-rot { color: var(--tinta-2); }
.funil-trilho { height: 14px; background: var(--fundo-2); border-radius: 4px; overflow: hidden; }
.funil-barra { display: block; height: 100%; background: var(--verde); border-radius: 0 4px 4px 0; }
.funil-val { font-weight: 700; text-align: right; display: flex; flex-direction: column; line-height: 1.1; }
.funil-val small { font-weight: 500; color: var(--tinta-3); font-size: 11px; }
.medidor { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.medidor-topo { display: flex; justify-content: space-between; gap: 8px; }
.medidor-trilho { height: 10px; background: var(--fundo-2); border-radius: 999px; overflow: hidden; }
.medidor-trilho span { display: block; height: 100%; background: var(--verde); border-radius: 999px; }
.medidor.atencao .medidor-trilho span { background: #B7791F; }
.medidor.critico .medidor-trilho span { background: var(--vermelho); }
.medidor small { color: var(--tinta-2); }
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; font-size: 12px; color: var(--tinta-2); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--borda); }
.tabela td { padding: 10px; border-bottom: 1px solid var(--borda); vertical-align: top; }
.tabela tr.inativo td { color: var(--tinta-3); }
.tabela-rolagem { overflow-x: auto; }
.form { gap: 14px; }
.grade-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.campo select { height: 46px; border: 1px solid var(--borda-2); border-radius: 10px; padding: 0 12px; background: #fff; font-size: 15px; font-weight: 400; }
.campo input:disabled, .campo textarea:disabled, .campo select:disabled { background: var(--fundo); color: var(--tinta-2); }
.form-rodape { display: flex; justify-content: flex-end; }
.grupo { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.grupo legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.horarios { display: flex; flex-direction: column; gap: 8px; }
.horario-linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.horario-linha .chk { width: 110px; color: var(--tinta); font-size: 14px; }
.horario-linha input[type=time] { height: 38px; border: 1px solid var(--borda-2); border-radius: 9px; padding: 0 8px; background: #fff; }
.servicos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.servico { border: 1px solid var(--borda); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.servico .grade-campos { grid-template-columns: 1fr; }
.bloco-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.codigo { font-size: 12px; background: var(--fundo); border-radius: 6px; padding: 3px 6px; overflow-wrap: anywhere; }
.modal-largo { max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto; }
.chk input { width: 18px; height: 18px; accent-color: var(--verde); }
@media (max-width: 1100px) { .servicos { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .grade-2, .grade-campos { grid-template-columns: 1fr; }
  .funil-linha { grid-template-columns: 110px 1fr 52px; }
  .menu nav { display: flex; flex-direction: row; gap: 2px; overflow-x: auto; order: 5; width: 100%; }
  .menu { flex-wrap: wrap; }
  .menu nav a { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
  .consulta-hora { font-size: 18px; min-width: 52px; }
  .horario-linha { gap: 6px; flex-wrap: nowrap; }
  .horario-linha .chk { width: 92px; flex-shrink: 0; }
  .horario-linha input[type=time] { width: 96px; padding: 0 4px; font-size: 13px; }
}

/* ---------- etapa D: app e notificacoes ---------- */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--verde-claro); color: var(--verde-escuro); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.passos { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.modal .bloco h2 { font-family: var(--sans); font-size: 13px; }
@media (max-width: 900px) { .rotulo-app { display: none; } }
@media (display-mode: standalone) { .menu { padding-top: max(10px, env(safe-area-inset-top)); } }

/* ---------- etapa E: responder pelo painel ---------- */
.compositor { background: #fff; border-top: 1px solid var(--borda); padding: 10px 16px 12px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.compositor-linha { display: flex; gap: 8px; align-items: flex-end; }
.compositor-linha .nota-peq { margin: 0; align-self: center; }
.compositor textarea { flex: 1; min-height: 44px; max-height: 180px; resize: none; border: 1px solid var(--borda-2); border-radius: 12px; padding: 10px 12px; font-size: 15px; line-height: 1.4; background: #fff; }
.compositor .btn { height: 44px; }
.prontas { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 6px); max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--borda); border-radius: 12px; box-shadow: 0 12px 30px rgba(27,26,23,.18); padding: 6px; display: flex; flex-direction: column; gap: 2px; z-index: 5; }
.pronta { text-align: left; background: none; border: 0; border-radius: 9px; padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; }
.pronta:hover, .pronta:focus-visible { background: var(--fundo); }
.pronta strong { font-size: 13px; }
.pronta span { font-size: 13px; color: var(--tinta-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pronta-editar { padding: 8px 10px; font-size: 13px; }
.msg-erro { outline: 2px solid #E6BDB6; }
.msg-falha { font-size: 12px; color: var(--vermelho); }
.lista-prontas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lista-prontas li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--borda); }
.lista-prontas li:first-child { border-top: 0; }
.lista-prontas li div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.lista-prontas li span { color: var(--tinta-2); font-size: 13px; white-space: pre-wrap; }
@media (max-width: 900px) {
  .conv[data-aba="caso"] .compositor { display: none; }
  .compositor { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* ---------- etapa F: processos ---------- */
.oferta-mon { max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.oferta-mon h2 { margin: 0; }
.beneficios { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.7; color: var(--tinta-2); }
.preco-mon { margin: 0; font-size: 15px; }
.preco-mon strong { font-size: 22px; color: var(--verde); }
.oferta-mon .btn { align-self: flex-start; text-decoration: none; display: inline-flex; align-items: center; }
.banner-ambar { background: var(--ambar-claro); color: var(--ambar); justify-content: flex-start; margin-bottom: 12px; }
.processos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.processo { text-align: left; font: inherit; cursor: pointer; background: var(--cartao); border: 1px solid var(--borda); border-radius: 10px; padding: 12px 13px; display: flex; flex-direction: column; gap: 6px; color: var(--tinta); }
.processo:hover, .processo:focus-visible { border-color: var(--verde); }
.aprovar-mov { background: var(--ambar-claro); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.aprovar-mov .nota-peq { margin: 0; }
.aprovar-mov textarea { width: 100%; border: 1px solid var(--borda-2); border-radius: 9px; padding: 9px 10px; font: inherit; font-size: 14px; background: #fff; resize: vertical; }
.titulo-linha { font-size: 14px; margin: 16px 0 6px; }
.linha-tempo { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; }
.linha-tempo li { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--borda); font-size: 14px; }
.linha-tempo li:first-child { border-top: 0; }
.linha-tempo li > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.linha-tempo li .nota-peq { margin: 0; }
.linha-tempo li.vazio { display: block; }
.lt-data { font-size: 12px; color: var(--tinta-3); padding-top: 2px; }
@media (max-width: 900px) { .processos { grid-template-columns: 1fr; } }

/* Etapa H - agenda dos advogados */
.slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.slot { border: 1px solid var(--borda-2); background: #fff; color: var(--tinta); border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; min-height: 36px; }
.slot:hover { border-color: var(--verde, #1D5C4D); }
.slot.ativo { background: var(--verde, #1D5C4D); border-color: var(--verde, #1D5C4D); color: #fff; }
.rotulo-peq { font-size: 12px; font-weight: 600; color: var(--tinta-2); text-transform: uppercase; letter-spacing: .03em; }
details.ajuda summary { cursor: pointer; font-size: 14px; color: var(--tinta); }
details.ajuda ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
a.chip { text-decoration: none; }

[hidden] { display: none !important; }

/* Etapa I - casos e WhatsApp */
.card-caso { cursor: default; }
.link-card { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.link-card:hover .card-nome { text-decoration: underline; }
.sel-fase { height: 34px; border: 1px solid var(--borda-2); border-radius: 9px; background: #fff; font-size: 13px; padding: 0 6px; width: 100%; }
.qr-caixa { display: flex; align-items: center; justify-content: center; min-height: 264px; background: #fff; border: 1px solid var(--borda); border-radius: 12px; }
.qr-caixa img { width: 264px; height: 264px; max-width: 100%; image-rendering: pixelated; }
.passos-qr { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

/* Etapa J - recebimentos */
.opcoes-receb { display: grid; gap: 10px; }
.opcao-receb { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; border: 1px solid var(--borda); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-size: 15px; }
.opcao-receb:has(input:checked) { border-color: var(--verde); background: var(--verde-claro); }
.opcao-receb input { margin-top: 4px; }
.opcao-receb small { color: var(--tinta-2); font-size: 13px; }
.sub-receb { display: grid; gap: 10px; }

.contratar-mon { display: grid; gap: 8px; justify-items: start; margin-top: 12px; }
.selo-contratar { margin-left: 8px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; background: #E9A93B; color: #2A1A00; cursor: pointer; white-space: nowrap; }
.selo-contratar:hover { background: #F2BC5C; }
.selo-contratar:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
