.bolha.resposta-formatada{white-space:normal}.resposta-formatada p{margin:0 0 .75em;white-space:pre-wrap}.resposta-formatada p:last-child{margin-bottom:0}.resposta-formatada h3{font-size:1em;font-weight:700;margin:1em 0 .45em}.resposta-formatada h3:first-child{margin-top:0}.resposta-formatada ul,.resposta-formatada ol{margin:.4em 0 .8em;padding-left:1.4em}.resposta-formatada li{margin:.3em 0}.resposta-formatada a{color:#2059b7;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}.resposta-formatada a:focus-visible,.resposta-formatada summary:focus-visible{outline:2px solid #376ef1;outline-offset:3px}.resposta-formatada code,.resposta-formatada pre{font-family:ui-monospace,Consolas,monospace;font-size:.9em}.resposta-formatada pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#e8eef7;padding:10px;border-radius:8px}.fontes-consultadas{border-top:1px solid #dbe3f0;margin-top:14px;padding-top:10px;font-size:.85em}.fontes-consultadas summary{cursor:pointer;color:#486183;min-height:32px}.fontes-consultadas li{margin:8px 0}

.resposta-formatada{min-width:0;max-width:100%;overflow-wrap:anywhere}.tabela-rolavel,.diagrama-rolavel{max-width:100%;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border:1px solid #d6e3f5;border-radius:12px;margin:.8em 0;background:#fff}.tabela-rolavel:focus-visible,.diagrama-rolavel:focus-visible{outline:2px solid #376ef1;outline-offset:2px}.tabela-rolavel table{border-collapse:collapse;width:100%;font-size:.9em}.tabela-rolavel th,.tabela-rolavel td{padding:10px 12px;min-width:110px;max-width:280px;border-bottom:1px solid #e4ecf7;text-align:left;vertical-align:top;overflow-wrap:anywhere}.tabela-rolavel th{background:#edf5ff;color:#28446d}.tabela-rolavel tr:last-child td{border-bottom:0}.diagrama-local{margin:1em 0;min-width:0}.diagrama-local figcaption{font-weight:650;color:#28446d}.diagrama-rolavel{max-height:420px}.diagrama-rolavel svg{display:block;max-width:none}.diagrama-local details{font-size:.85em;color:#486183}.diagrama-local summary{cursor:pointer;min-height:32px}

.conferencia-fontes{border:1px solid #ccddf0;border-radius:10px;padding:9px 12px;margin-top:14px;background:#f4f8ff;font-size:.82em;color:#385774}.conferencia-fontes summary{cursor:pointer;min-height:28px;font-weight:600}.conferencia-fontes p{margin-top:8px}.conferencia-fontes li{overflow-wrap:anywhere}.conferencia-atencao{background:#fff9ef;border-color:#ead7ae;color:#70552c}

/* F21: documento legível no app, com ações locais e superfície em relevo. */
.bolha.max.resposta-formatada{max-width:100%;width:100%;box-sizing:border-box;background:linear-gradient(145deg,#fff,#fafbfd);border:1px solid #dfe5ed;border-radius:20px;padding:14px 16px;box-shadow:0 2px 3px #21314b05,0 12px 28px -18px #23395744;color:#273143}
.resposta-formatada{font-family:Georgia,'Times New Roman',serif;font-size:17px;line-height:1.72;letter-spacing:.005em}
.resposta-cabecalho{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding-bottom:12px;margin-bottom:17px;border-bottom:1px solid #e5e9f0;font-family:system-ui,sans-serif}
.resposta-marca{margin-right:auto;font-size:10px;letter-spacing:.14em;font-weight:750;color:#778397}
.resposta-acao{font:600 12px system-ui,sans-serif;min-height:44px;padding:7px 11px;border:1px solid #dce4ef;border-radius:12px;background:#fff;color:#405470;cursor:pointer;box-shadow:0 2px 3px #23395706}
.resposta-acao:hover{background:#edf4ff;border-color:#adc9eb}.resposta-acao:focus-visible{outline:3px solid #91b9ef;outline-offset:2px}
.resposta-formatada h2,.resposta-formatada h3{font-family:system-ui,sans-serif;letter-spacing:-.025em;line-height:1.3;color:#172c48;margin:1.15em 0 .65em}
.resposta-formatada h2{font-size:1.35em;font-weight:750}.resposta-formatada h3{font-size:1.05em;font-weight:700}
.resposta-formatada p{margin-bottom:1em}.resposta-formatada strong{color:#172e50;font-weight:700}
.resposta-formatada blockquote{margin:1em 0;padding:14px 16px;border-left:3px solid #4b83ca;border-radius:0 12px 12px 0;background:#edf4fc;color:#27466c}
.resposta-formatada hr{border:0;border-top:1px solid #dde5ef;margin:22px 0}
.resposta-formatada .tabela-rolavel,.resposta-formatada .diagrama-rolavel,.documento-codigo{box-shadow:0 5px 16px -9px #243b5e44;border:1px solid #d9e2ef;border-radius:14px;background:#fff}
.resposta-formatada table{font-family:system-ui,sans-serif;font-size:13px;line-height:1.55}.tabela-rolavel th{background:#edf3fb;font-size:12px;font-weight:750}
.resposta-formatada .fontes-consultadas,.resposta-formatada .conferencia-fontes,.resposta-formatada .diagrama-local{font-family:system-ui,sans-serif;font-size:13px;line-height:1.55}
.documento-codigo{margin:18px 0;overflow:hidden}.codigo-barra{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px;border-bottom:1px solid #e2e7ef;color:#6c788b;font:12px system-ui,sans-serif}
.documento-codigo pre{margin:0!important;border-radius:0!important;background:#fbfcfe!important;padding:16px!important;line-height:1.65;font-size:13px}
.documento-ampliado{padding:0;width:min(920px,calc(100vw - 24px));max-width:920px;max-height:calc(100dvh - 24px);border:1px solid #dce4ef;border-radius:22px;background:#fff;color:#273143;box-shadow:0 30px 100px #14294755;overflow:auto}
.documento-ampliado::backdrop{background:#13243f66;backdrop-filter:blur(4px)}
.documento-ampliado>header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:#fffffff5;border-bottom:1px solid #e5eaf1;font:13px system-ui,sans-serif;z-index:1}
.documento-corpo{padding:12px clamp(16px,4vw,52px) 36px}.documento-corpo .resposta-marca{display:none}
@media(max-width:420px){.bolha.max.resposta-formatada{padding:12px 14px;border-radius:17px}.resposta-formatada{font-size:16px;line-height:1.72}.resposta-cabecalho{gap:4px}.resposta-acao{padding:6px 9px}.resposta-marca{font-size:9px}}
@media(prefers-reduced-motion:reduce){.bolha{animation:none}}

/* F22: árvore de cartões. A leitura acompanha o fluxo vertical do app. */
.resposta-formatada .arvore-app{margin:24px 0;border:1px solid #dce5f0;border-radius:20px;background:linear-gradient(160deg,#f8faff,#f4f7fc);padding:16px;box-shadow:0 9px 24px -16px #23395760;min-width:0;max-width:100%;font-family:system-ui,sans-serif;font-size:14px;line-height:1.5}
.arvore-cabecalho{padding:0 0 17px!important;color:#233854!important}.arvore-meta{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;justify-content:space-between;margin-bottom:9px}.arvore-selo{font-size:9px;letter-spacing:.12em;font-weight:750;color:#597493}.arvore-contagem{font-size:10px;font-weight:500;color:#748398}.arvore-titulo{display:block;font-size:16px;line-height:1.4;letter-spacing:-.02em;color:#203752}
.resposta-formatada .arvore-raizes,.resposta-formatada .arvore-ramos{list-style:none;margin:0;padding:0;min-width:0}.resposta-formatada .arvore-item{margin:0;min-width:0;position:relative;--ramo:#4079bd;--ramo-fundo:#edf4fd}
.arvore-item[data-ramo="1"]{--ramo:#7767ae;--ramo-fundo:#f2effb}.arvore-item[data-ramo="2"]{--ramo:#357d86;--ramo-fundo:#eaf6f5}
.arvore-cartao{display:flex;align-items:flex-start;gap:11px;padding:16px 14px;border:1px solid #dbe5f1;border-radius:15px;background:#fff;box-shadow:0 2px 3px #28476604,0 6px 13px -10px #28476645;position:relative;min-width:0}
.arvore-numero{display:grid;place-items:center;flex:0 0 29px;height:29px;border-radius:9px;background:var(--ramo-fundo);color:var(--ramo);font-size:11px;font-weight:750;font-variant-numeric:tabular-nums}.arvore-no-corpo{min-width:0;flex:1}.arvore-tipo{display:block;font-size:9px;font-weight:650;letter-spacing:.045em;color:#748398;margin:0 0 5px}.resposta-formatada .arvore-no-texto{font-size:14px;line-height:1.5;font-weight:620;margin:0;white-space:normal;overflow-wrap:anywhere;color:#223852;letter-spacing:0}
.arvore-conexao{display:flex;align-items:center;gap:9px;min-height:38px;padding:7px 0 7px 13px;box-sizing:border-box;color:var(--ramo);position:relative}.arvore-conexao:before{content:"";position:absolute;left:27px;top:0;bottom:0;border-left:1px solid #c5d5e8}.arvore-seta{display:grid;place-items:center;flex:0 0 29px;width:29px;height:22px;background:#f5f8fd;position:relative;font-size:16px}.arvore-condicao{font-size:11px;font-weight:600;line-height:1.45;color:#4b627f;overflow-wrap:anywhere;position:relative;background:#f5f8fd;padding:2px 0}
.resposta-formatada .arvore-ramificacao{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:0 16px;padding-left:13px;border-left:1px solid #c8d8eb;margin:0 0 0 14px}.arvore-ramificacao>.arvore-item{padding-bottom:17px}.arvore-ramificacao>.arvore-item:last-child{padding-bottom:0}.arvore-ramificacao .arvore-ramificacao{margin-left:0;padding-left:10px;display:block}
.arvore-lista{border-top:1px solid #dce5ef;margin-top:18px;padding-top:9px;color:#5b6e86}.arvore-lista>summary{display:flex;align-items:center;min-height:44px;font-size:11px;font-weight:600;cursor:pointer}.arvore-lista>summary:before{content:'+';font-size:18px;margin-right:10px;font-weight:400}.arvore-lista[open]>summary:before{content:'−'}.arvore-lista li{font-size:12px;line-height:1.6}
.arvore-referencia{display:block;width:100%;box-sizing:border-box;min-height:44px;border:1px dashed #b8cce5;background:#f6f9fe;color:#345a87;border-radius:12px;padding:12px 14px;text-align:left;font:600 12px/1.55 system-ui,sans-serif;overflow-wrap:anywhere;cursor:pointer}.arvore-cartao:focus,.arvore-referencia:focus-visible{outline:3px solid #8eb5e7;outline-offset:3px}
.arvore-caminho{font-size:10px;letter-spacing:.035em;font-weight:700;color:var(--ramo);padding:15px 0 0 12px}.documento-ampliado>header{background:#fff}
@media(max-width:600px){.resposta-formatada .arvore-app{padding:12px;border-radius:17px}.arvore-titulo{font-size:15px}.arvore-cartao{padding:13px 11px;gap:9px}.resposta-formatada .arvore-ramificacao{display:block;margin-left:4px;padding-left:10px}.resposta-formatada .arvore-ramificacao .arvore-ramificacao{padding-left:0;margin-left:0;border-left:0}.arvore-numero{flex-basis:25px;height:25px;font-size:10px}.resposta-formatada .arvore-no-texto{font-size:14px}.arvore-conexao{padding-left:9px}.arvore-conexao:before{left:21px}.arvore-seta{flex-basis:25px;width:25px}.arvore-contagem{font-size:9px}}

/* Padrão F24 escolhido pelo dono: fluxograma com blocos suaves e conexões explícitas. */
.resposta-formatada .fluxograma-app{margin:22px 0;padding:14px;border:1px solid #e0e5ec;border-radius:18px;background:#fff;box-shadow:0 8px 24px -16px #26344d50;min-width:0;font-family:system-ui,sans-serif}
.fluxo-cabecalho{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid #edf0f4}.fluxo-titulo{font-size:13px;line-height:1.5;color:#384353}.fluxo-acoes{display:flex;align-items:center;gap:5px}.fluxo-acoes button{font-size:11px}.fluxo-painel{padding:8px 0;background:#fff;min-width:0;max-width:100%}.fluxo-svg{display:block;width:100%;height:auto;background:#fff}.fluxo-descricao{border-top:1px solid #edf0f4;font:12px/1.65 system-ui,sans-serif;color:#58677b;padding-top:7px}.fluxo-descricao summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.fluxo-descricao summary:before{content:'+';margin-right:9px;font-size:18px}.fluxo-descricao[open] summary:before{content:'−'}
.fluxo-modal{width:calc(100vw - 20px);height:calc(100dvh - 20px);max-width:1400px;max-height:none;border:1px solid #dbe2ec;border-radius:18px;padding:0;overflow:hidden;background:#fff;box-shadow:0 24px 80px #23385344}.fluxo-modal::backdrop{background:#16243e77;backdrop-filter:blur(3px)}.fluxo-modal>header{min-height:64px;box-sizing:border-box;padding:9px 12px;display:flex;align-items:center;gap:6px;border-bottom:1px solid #e4e9f0;background:#fff;font:12px system-ui,sans-serif}.fluxo-modal>header>strong{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.4}.fluxo-modal>header button{padding:6px 9px;flex-shrink:0}.fluxo-zoom{height:calc(100% - 70px);overflow:auto;padding:12px;box-sizing:border-box;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;background:#fafbfc}.fluxo-zoom .fluxo-svg{max-width:none;margin:auto;border-radius:10px;box-shadow:0 1px 6px #23385312}.fluxo-zoom:focus-visible{outline:2px solid #8eb5e7;outline-offset:-3px}
@media(max-width:430px){.resposta-formatada .fluxograma-app{padding:10px}.fluxo-modal>header{flex-wrap:wrap}.fluxo-modal>header>strong{flex-basis:100%}.fluxo-zoom{height:calc(100% - 112px)}.fluxo-cabecalho{gap:6px}.fluxo-acoes .resposta-acao{font-size:10px}}
@media print{.resposta-cabecalho,.resposta-opcoes,.acoes-resposta-modal,.fluxo-acoes,.codigo-barra button,.resposta-acao{display:none!important}.fluxograma-app{break-inside:avoid;box-shadow:none!important;border-color:#ddd!important}.fluxo-svg{max-height:210mm}.fluxo-descricao{display:block!important}.fluxo-descricao>summary{display:none}.fluxo-descricao>ol,.fluxo-descricao>ul{display:block!important}.resposta-formatada pre{white-space:pre-wrap}.tabela-rolavel{overflow:visible!important}.tabela-rolavel table{table-layout:fixed}.tabela-rolavel th,.tabela-rolavel td{min-width:0;max-width:none;overflow-wrap:anywhere}}
