*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#f4f6f8;font-family:-apple-system,"Segoe UI",Roboto,system-ui,sans-serif;color:#1d2330;-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer}
.tela{height:100%;display:flex;flex-direction:column}
.tela[hidden]{display:none}
.centro{padding:48px 24px;text-align:center;max-width:460px;margin:0 auto}
.centro h2{font-size:21px;margin:16px 0 6px}.centro p{font-size:15px;color:#3a4150;line-height:1.45}
.passos{text-align:left;background:#fff;border:1px solid #e3e6eb;border-radius:12px;padding:12px 16px;font-size:14.5px;line-height:1.7;margin:14px 0}
.grande{width:100%;background:#1f7a4c;color:#fff;border:0;border-radius:12px;padding:14px;font-weight:700;font-size:16px;margin-top:6px}
.link{background:none;border:0;color:#1f7a4c;padding:14px;font-size:15px}
.topo{display:flex;align-items:center;gap:10px;padding:calc(env(safe-area-inset-top) + 8px) 12px 10px;background:#fff;border-bottom:1px solid #e3e6eb}
.titulo{flex:1;min-width:0}.titulo b{display:block;font-size:16px}
.titulo small{font-size:12.5px;color:#3a4150;display:flex;align-items:center;gap:6px}
.bola{width:9px;height:9px;border-radius:50%;background:#d69e2e;display:inline-block}
.bola.ok{background:#1f9d55}.bola.nao{background:#c53030}
#menu{background:none;border:0;font-size:22px;padding:4px 10px;color:#3a4150}
.atalhos{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px 12px;background:#fff;border-bottom:1px solid #e3e6eb}
.atalhos button{background:#eef6f1;color:#17603b;border:1px solid #cfe5d8;border-radius:10px;padding:10px 6px;font-size:14px;font-weight:600}
.atalhos button:active{background:#d6ebde}
main{flex:1;overflow-y:auto;padding:12px 10px;display:flex;flex-direction:column;gap:8px;font-size:14.5px;line-height:1.42}
.m{max-width:86%;padding:9px 12px;border-radius:14px;box-shadow:0 1px 1px rgba(0,0,0,.06);white-space:pre-wrap;overflow-wrap:anywhere}
.eu{align-self:flex-end;background:#1f7a4c;color:#fff;border-bottom-right-radius:4px}
.ele{align-self:flex-start;background:#fff;border-bottom-left-radius:4px}
.aviso{align-self:center;color:#6a7280;font-size:12.5px;text-align:center}
.bts{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px;white-space:normal}
.bts button{flex:1 1 auto;padding:9px 10px;border-radius:9px;font-weight:700;font-size:14px;border:1px solid #d0d7de;background:#fff;color:#1d2330}
.bts button:first-child{background:#1f7a4c;color:#fff;border-color:#1f7a4c}
.bts button:disabled{opacity:.45}
.pdf{display:flex;align-items:center;gap:10px;margin-top:8px;padding:9px;border:1px solid #e3e6eb;border-radius:10px;background:#f8fafb;color:inherit;text-decoration:none;white-space:normal}
.pdf i{width:32px;height:38px;background:#c53030;border-radius:4px;color:#fff;font-style:normal;font-size:10.5px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none}
.digitando{align-self:flex-start;color:#6a7280;font-size:13px;padding:2px 6px}
#entrada{display:flex;gap:8px;align-items:center;padding:9px 10px calc(env(safe-area-inset-bottom) + 10px);background:#fff;border-top:1px solid #e3e6eb}
#campo{flex:1;background:#f1f3f5;border:0;border-radius:22px;padding:12px 16px;font-size:16px;outline:none}
#mic,#enviar{width:46px;height:46px;border-radius:50%;background:#1f7a4c;border:0;color:#fff;font-size:18px;display:flex;align-items:center;justify-content:center;flex:none}
#mic[hidden],#enviar[hidden]{display:none}
#mic.rec{background:#c53030}#mic.rec svg{display:none}#mic.rec:after{content:"";width:14px;height:14px;background:#fff;border-radius:2px}
#gravando{position:fixed;left:0;right:0;bottom:calc(env(safe-area-inset-bottom) + 70px);text-align:center;font-size:13.5px;color:#c53030}
.ponto{display:inline-block;width:9px;height:9px;border-radius:50%;background:#c53030;animation:p 1s infinite}
@keyframes p{50%{opacity:.2}}
dialog{border:0;border-radius:14px;padding:16px;width:min(340px,90vw)}
dialog button{display:block;width:100%;margin:8px 0;padding:12px;border-radius:10px;border:1px solid #d0d7de;background:#fff;font-size:15px}
dialog .perigo{color:#9b1c1c}
dialog .link{border:0}
