/* ---------- Pesquisa social (prompt 22) ---------- */
html.ndb-social #exSugBusca { display: none !important; }
html.ndb-sem-busca body.conta header .search-wrap { display: none !important; }
.ndb { position: fixed; z-index: 2600; display: flex; flex-direction: column; max-height: min(72vh, 640px); background: #fff; color: #0f1419; border: 1px solid rgba(15, 20, 25, .08);
  border-radius: 16px; box-shadow: 0 18px 48px -12px rgba(15, 20, 25, .28), 0 2px 8px rgba(15, 20, 25, .06); font-family: var(--nd-fonte, system-ui, sans-serif); overflow: hidden; }
.ndb[hidden] { display: none; }
.ndb-topo { display: none; }
.ndb.movel { inset: 0; max-height: none; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.ndb.movel .ndb-topo { display: flex; align-items: center; gap: 6px; padding: 10px 12px 6px; }
.ndb-voltar { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.ndb svg, .ndb-tela svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ndb-campo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 21px; background: #f0f2f5; color: #65676b; }
.ndb-campo input { flex: 1; min-width: 0; border: 0; background: none; font: 16px var(--nd-fonte, system-ui); color: #0f1419; outline: none; }
.ndb-campo input::-webkit-search-cancel-button { display: none; }
.ndb-limpar { border: 0; background: none; color: #65676b; padding: 4px; cursor: pointer; display: grid; }
.ndb-cats { display: flex; gap: 6px; padding: 12px 12px 10px; border-bottom: 1px solid rgba(15, 20, 25, .07); overflow-x: auto; scrollbar-width: none; flex: none; }
.ndb-cats::-webkit-scrollbar { display: none; }
.ndb-cats button { flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: 17px; background: #f0f2f5; color: #0f1419; font: 600 14px var(--nd-fonte, system-ui); white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
.ndb-cats button.on { background: #0f1419; color: #fff; }
.ndb-lista { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.ndb-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.ndb-it:hover, .ndb-it.sel, .ndb-it:focus-visible { background: #f2f3f5; outline: none; }
.ndb-av { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #4a7b8c center / cover no-repeat; color: #fff; display: grid; place-items: center; font: 700 18px var(--nd-fonte, system-ui); }
.ndb-av.quadrado { border-radius: 12px; } .ndb-av.ic { background: #e8f1ff; color: #0a62c9; } .ndb-av.grande { width: 84px; height: 84px; font-size: 32px; } .ndb-av.grande.quadrado { border-radius: 20px; }
.ndb-av.grande svg { width: 38px; height: 38px; }
.ndb-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ndb-tx b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ndb-tx small { font-size: 13px; color: #65676b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.ndb-tx small svg { width: 13px; height: 13px; flex: none; }
.ndb-tx .ndb-desc { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; white-space: normal; }
.ndb-selo { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; border-radius: 50%; background: #0a84ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%; }
.ndb-pos { flex: none; width: 28px; text-align: center; font: 700 15px var(--nd-fonte, system-ui); color: #65676b; }
.ndb-cresc { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 10px; background: #e7f8ee; color: #1a7f45; font: 700 12px var(--nd-fonte, system-ui); }
.ndb-cresc svg { width: 14px; height: 14px; }
.ndb-msg { padding: 28px 16px; text-align: center; color: #65676b; font-size: 14px; line-height: 1.45; }
.ndb-msg.erro { color: #b42318; } .ndb-msg button, .ndb-rod button { margin-top: 10px; height: 36px; padding: 0 16px; border: 0; border-radius: 18px; background: #eef0f3; color: #0f1419; font: 600 14px var(--nd-fonte, system-ui); cursor: pointer; }
.ndb-rod { text-align: center; padding: 6px 0 10px; }
.ndb-criar { display: block; margin: 4px 4px 8px; padding: 9px 12px; border: 1px dashed rgba(10, 132, 255, .5); border-radius: 12px; background: rgba(10, 132, 255, .05); color: #0a62c9; font: 600 14px var(--nd-fonte, system-ui); cursor: pointer; width: calc(100% - 8px); text-align: left; }
.ndb-carr { display: flex; justify-content: center; gap: 6px; padding: 28px 0; } .ndb-carr.pequeno { padding: 8px 0; } .ndb-carr.grande { padding: 80px 0; }
.ndb-carr span { width: 8px; height: 8px; border-radius: 50%; background: #9aa0a6; animation: ndbPisca 1s infinite ease-in-out; } .ndb-carr span:nth-child(2) { animation-delay: .15s; } .ndb-carr span:nth-child(3) { animation-delay: .3s; }
@keyframes ndbPisca { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ndb-carr span { animation: none; opacity: .6; } }
html.nd-escuro .ndb, html.nd-escuro .ndb-tela-cx { background: #1c1c1e; color: #f5f5f7; border-color: rgba(255, 255, 255, .1); }
html.nd-escuro .ndb-campo, html.nd-escuro .ndb-cats button:not(.on) { background: #2c2c2e; color: #f5f5f7; } html.nd-escuro .ndb-campo input { color: #f5f5f7; }
html.nd-escuro .ndb-cats button.on { background: #f5f5f7; color: #000; } html.nd-escuro .ndb-it:hover, html.nd-escuro .ndb-it.sel { background: #2c2c2e; }
html.nd-escuro .ndb-tx small, html.nd-escuro .ndb-msg, html.nd-escuro .ndb-sub { color: #a1a1aa; }
/* tela cheia de página, grupo e assunto */
.ndb-tela { position: fixed; inset: 0; z-index: 2650; overflow-y: auto; background: rgba(0, 0, 0, .35); overscroll-behavior: contain; }
.ndb-tela[hidden] { display: none; }
html.ndb-tela-on { overflow: hidden; }
.ndb-tela-cx { min-height: 100%; max-width: 760px; margin: 0 auto; background: #fff; color: #0f1419; font-family: var(--nd-fonte, system-ui); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.ndb-tela-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; height: 56px; padding: 0 8px; padding-top: env(safe-area-inset-top); background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); }
html.nd-escuro .ndb-tela-bar { background: rgba(28, 28, 30, .9); }
.ndb-tela-bar button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: inherit; display: grid; place-items: center; cursor: pointer; }
.ndb-capa { height: 160px; background: linear-gradient(135deg, #0a84ff, #5e5ce6); } .ndb-capa.grupo { background: linear-gradient(135deg, #34c759, #0a84ff); }
.ndb-cab { display: flex; align-items: flex-end; gap: 16px; padding: 0 20px; margin-top: -42px; flex-wrap: wrap; }
.ndb-cab.assunto { margin-top: 12px; align-items: center; }
.ndb-cab > .ndb-av { border: 4px solid #fff; } html.nd-escuro .ndb-cab > .ndb-av { border-color: #1c1c1e; }
.ndb-cab > div { flex: 1; min-width: 200px; padding-top: 48px; } .ndb-cab.assunto > div { padding-top: 0; }
.ndb-cab h1 { margin: 0; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.ndb-sub { margin: 4px 0 0; color: #65676b; font-size: 14px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .ndb-sub svg { width: 14px; height: 14px; }
.ndb-bt { height: 38px; padding: 0 18px; border: 0; border-radius: 19px; background: #0a84ff; color: #fff; font: 700 14px var(--nd-fonte, system-ui); cursor: pointer; }
.ndb-bt.sec { background: #eef0f3; color: #0f1419; } .ndb-bt:disabled { opacity: .6; cursor: default; }
html.nd-escuro .ndb-bt.sec { background: #2c2c2e; color: #f5f5f7; }
.ndb-etq { padding: 6px 12px; border-radius: 14px; background: #eef0f3; font: 600 13px var(--nd-fonte, system-ui); color: #4b5260; }
.ndb-cartao { margin: 16px 20px 0; padding: 16px; border-radius: 16px; background: #f7f8fa; } html.nd-escuro .ndb-cartao { background: #2c2c2e; }
.ndb-cartao h2 { margin: 0 0 8px; font-size: 16px; } .ndb-cartao p { margin: 0; line-height: 1.5; font-size: 15px; white-space: pre-line; }
.ndb-cartao.privado { display: flex; gap: 12px; align-items: flex-start; color: #4b5260; } .ndb-cartao.privado svg { flex: none; width: 22px; height: 22px; }
.ndb-vazio { color: #65676b; font-size: 14px; }
.ndb-membros { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ndb-membro { display: flex; align-items: center; gap: 8px; padding: 6px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; font: 600 14px var(--nd-fonte, system-ui); cursor: pointer; }
.ndb-membro .ndb-av { width: 36px; height: 36px; font-size: 14px; } .ndb-membro small { display: block; font-weight: 500; color: #65676b; font-size: 12px; }
.ndb-pedido { display: flex; align-items: center; gap: 10px; padding: 6px 0; } .ndb-pedido > span { flex: 1; font-weight: 600; } .ndb-pedido small { display: block; color: #65676b; font-weight: 500; }
.ndb-posts { padding: 12px 0 0; } .ndb-posts > .ndb-vazio { padding: 24px 20px; } .ndb-post { margin: 12px 20px; padding: 14px; border-radius: 14px; background: #f7f8fa; }
.ndb-form { padding: 8px 20px 0; display: flex; flex-direction: column; gap: 12px; } .ndb-form h1 { margin: 0 0 4px; font-size: 22px; }
.ndb-form label { display: flex; flex-direction: column; gap: 6px; font: 600 14px var(--nd-fonte, system-ui); }
.ndb-form input:not([type=radio]):not([type=checkbox]), .ndb-form textarea { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(15, 20, 25, .15); font: 16px var(--nd-fonte, system-ui); background: #fff; color: inherit; }
.ndb-form textarea { height: auto; padding: 10px 12px; resize: vertical; }
.ndb-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; } .ndb-form legend { font: 600 14px var(--nd-fonte, system-ui); margin-bottom: 6px; }
.ndb-form .ndb-op { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.ndb-erro { color: #b42318; font-weight: 600; margin: 0; min-height: 1em; } .ndb-acoes { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 720px) { .ndb-tela { background: none; } .ndb-capa { height: 120px; } .ndb-cab { padding: 0 16px; } .ndb-cartao { margin: 14px 12px 0; } .ndb-cab > div { min-width: 0; padding-top: 46px; } }
/* celular: as quatro categorias quebram linha em vez de sair da tela (nenhum nome cortado) */
.ndb.movel .ndb-cats { flex-wrap: wrap; overflow: visible; }
.ndb-cats button.on { background: #0a84ff !important; color: #fff !important; }
