/* NAONDE — lote 4: vídeos das publicações normais (prompt 12), assuntos do momento (prompt 15), verificação (prompt 16) */

/* ---------- Composer: anexos (até 4), nome, tamanho, progresso e erro ---------- */
#cpPrevIn .cp-anexo { position: relative; background: #000; }
#cpPrevIn .cp-anexo-info { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: #f0f2f5; color: #444; font-size: 12.5px; }
html.nd-escuro #cpPrevIn .cp-anexo-info { background: #2c2c2e; color: #d1d1d6; }
#cpPrevIn .cp-anexo-info span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
#cpPrevIn .cp-anexo-info small { display: inline; padding: 0; color: #65676b; font-size: 12px; }
#cpPrevIn .cp-anexo-info b { font-weight: 600; color: #0a84ff; white-space: nowrap; }
#cpPrevIn .cp-anexo.erro .cp-anexo-info b { color: #d70015; }
#cpPrevIn .cp-prog { position: absolute; left: 0; right: 0; bottom: 33px; height: 4px; background: rgba(255, 255, 255, .25); }
#cpPrevIn .cp-prog[hidden] { display: none; }
#cpPrevIn .cp-prog i { display: block; height: 100%; width: 0; background: #0a84ff; transition: width .2s linear; }
#cpPrevIn .cp-tira:disabled { opacity: .4; cursor: default; }
#cpPrevIn .cp-mais { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 40px; border: 0; border-top: 1px solid rgba(0, 0, 0, .06); background: #f7f8fa; color: #0a84ff; font: 600 14px var(--nd-fonte, system-ui); cursor: pointer; }
html.nd-escuro #cpPrevIn .cp-mais { background: #1c1c1e; border-top-color: rgba(255, 255, 255, .08); }
#cpPrevIn .cp-mais[hidden] { display: none; }
#cpPrevIn.varios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: #f0f2f5; }
#cpPrevIn.varios .cp-mais { grid-column: 1 / -1; }
#cpPrevIn.varios img, #cpPrevIn.varios video { height: 180px; max-height: 180px; object-fit: contain; }
#composer.cp-enviando #postInput { opacity: .75; }

/* ---------- Feed: aviso de anexo que não chegou ao servidor ---------- */
.n23-falha { display: flex; align-items: flex-start; gap: 8px; margin: 8px 12px; padding: 10px 12px; border-radius: 12px; background: #fff4e5; color: #7a4100; font-size: 13.5px; line-height: 1.35; }
html.nd-escuro .n23-falha { background: #3a2a12; color: #ffd8a8; }
.n23-falha > i { font-size: 18px; flex: none; margin-top: 1px; }
.n23-falha span { flex: 1; }
.n23-falha button { flex: none; height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: #0a84ff; color: #fff; font: 600 13px var(--nd-fonte, system-ui); cursor: pointer; }
.n23-falha button:disabled { opacity: .6; }

/* ---------- Vários anexos no mesmo post: todos, na ordem; vídeo sempre inteiro (contain) ---------- */
.n23r-anexos { display: grid; gap: 4px; margin-top: 10px; border-radius: 14px; overflow: hidden; }
.n23r-anexos.n2, .n23r-anexos.n3, .n23r-anexos.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.n23r-anexos.n3 > .n23r-anexo:first-child { grid-column: 1 / -1; }
.n23r-anexos .n23r-anexo.video { grid-column: 1 / -1; }
.n23r-anexos .n23r-anexo { min-width: 0; background: #000; }
html body .n23r-anexos .n23r-midia, html body .n23r-anexos .ndp { margin-top: 0 !important; border-radius: 0 !important; }
html body .n23r-anexos img.n23r-midia { height: 100%; max-height: 360px; aspect-ratio: 1; object-fit: cover !important; }
.nxp-anexos { display: grid; gap: 4px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nxp-anexos > .nxp-midia:has(video) { grid-column: 1 / -1; }
.n32v-midia.varias { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; align-items: stretch; justify-content: flex-start; }

/* ---------- Player dos posts: espaço reservado, erro e miniatura ----------
   (o aviso de erro fica preso ao player: ".ndp > .ndp-erro". Solto, ele pegava o aviso de erro do NAONDE Pay e cobria a tela de pagamento) */
.ndp:not(.ndp-ajustado) > video { aspect-ratio: 16 / 9; }
.ndp > .ndp-erro { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; text-align: center; background: #111; color: #f5f5f7; }
.ndp > .ndp-erro[hidden] { display: none; }
.ndp > .ndp-erro b { font-size: 15px; } .ndp > .ndp-erro span { font-size: 13px; color: #c7c7cc; max-width: 340px; line-height: 1.35; }
.ndp > .ndp-erro button { margin-top: 4px; height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: #fff; color: #000; font: 600 14px var(--nd-fonte, system-ui); cursor: pointer; }
.ndp.erro .ndp-ctl, .ndp.erro .ndp-grande, .ndp.erro .ndp-gr { display: none; }
.ndp > .ndp-erro.prep { background: rgba(17, 17, 17, .92); }
.ndp > .ndp-erro.prep button { display: none; }
.ndp > .ndp-erro.prep b::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: ndpGira .8s linear infinite; }
@keyframes ndpGira { to { transform: rotate(360deg); } }

/* ---------- Assuntos do momento: ⋯ de cada assunto, menu e confirmação de denúncia ---------- */
.ndam-row { position: relative; }
.ndam-row > .nd-alta-it, .ndam-row > .n25-tr { padding-right: 44px !important; width: 100%; }
.ndam-bt { position: absolute; top: 6px; right: 4px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #65676b; cursor: pointer; transition: background .15s, color .15s; -webkit-tap-highlight-color: transparent; }
.ndam-bt svg { width: 19px; height: 19px; fill: currentColor; }
@media (hover: hover) { .ndam-bt:hover { background: rgba(10, 132, 255, .1); color: #0a84ff; } }
.ndam-bt[aria-expanded="true"] { background: rgba(10, 132, 255, .12); color: #0a84ff; }
.ndam-bt:focus-visible { outline: 2px solid #0a84ff; outline-offset: 1px; }
html.nd-escuro .ndam-bt { color: #a1a1aa; }
.ndam-menu { position: fixed; z-index: 2147483000; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid rgba(15, 20, 25, .08); box-shadow: 0 12px 32px -10px rgba(15, 20, 25, .28), 0 2px 6px rgba(15, 20, 25, .06); font-family: var(--nd-fonte, system-ui, sans-serif); animation: ndamEntra .14s ease-out; }
@keyframes ndamEntra { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .ndam-menu { animation: none; } }
html.nd-escuro .ndam-menu { background: #1c1c1e; border-color: rgba(255, 255, 255, .1); }
.ndam-tit { margin: 4px 10px 6px; color: #65676b; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ndam-menu hr { margin: 4px 6px; border: 0; border-top: 1px solid rgba(15, 20, 25, .08); }
html.nd-escuro .ndam-menu hr { border-top-color: rgba(255, 255, 255, .1); }
.ndam-menu [role=menuitem] { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: #0f1419; font: 500 14px/1.3 var(--nd-fonte, system-ui); text-align: left; cursor: pointer; }
html.nd-escuro .ndam-menu [role=menuitem] { color: #f5f5f7; }
.ndam-menu [role=menuitem] svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.ndam-menu [role=menuitem]:hover, .ndam-menu [role=menuitem]:focus-visible { background: #f2f3f5; outline: none; }
html.nd-escuro .ndam-menu [role=menuitem]:hover, html.nd-escuro .ndam-menu [role=menuitem]:focus-visible { background: #2c2c2e; }
.ndam-menu [data-op="spam"], .ndam-menu [data-op="abusivo"], .ndam-menu [data-op="prejudicial"] { color: #c4161c; }
html.nd-escuro .ndam-menu [data-op="spam"], html.nd-escuro .ndam-menu [data-op="abusivo"], html.nd-escuro .ndam-menu [data-op="prejudicial"] { color: #ff6b6b; }
.ndam-fundo { position: fixed; inset: 0; z-index: 2147483100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .45); }
.ndam-dlg { width: min(420px, 100%); padding: 20px; border-radius: 18px; background: #fff; color: #0f1419; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5); font-family: var(--nd-fonte, system-ui); }
html.nd-escuro .ndam-dlg { background: #1c1c1e; color: #f5f5f7; }
.ndam-dlg h2 { margin: 0 0 8px; font-size: 18px; } .ndam-dlg p { margin: 0 0 12px; color: #4b5260; line-height: 1.45; font-size: 14px; }
html.nd-escuro .ndam-dlg p { color: #c7c7cc; }
.ndam-mot { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #65676b; }
.ndam-mot textarea { min-height: 72px; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(15, 20, 25, .15); background: #f7f8fa; color: inherit; font: 14px var(--nd-fonte, system-ui); resize: vertical; }
html.nd-escuro .ndam-mot textarea { background: #2c2c2e; border-color: rgba(255, 255, 255, .12); }
.ndam-erro { color: #c4161c !important; font-weight: 600; margin: 8px 0 0 !important; }
.ndam-bts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.ndam-bts button { height: 40px; padding: 0 16px; border: 0; border-radius: 11px; background: #eef0f3; color: #0f1419; font: 600 14px var(--nd-fonte, system-ui); cursor: pointer; }
.ndam-bts .pri { background: #c4161c; color: #fff; } .ndam-bts button:disabled { opacity: .6; }
html.nd-escuro .ndam-bts button:not(.pri) { background: #2c2c2e; color: #f5f5f7; }
.ndam-toast { position: fixed; left: 50%; bottom: 92px; z-index: 2147483200; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; max-width: min(92vw, 440px); padding: 10px 16px; border-radius: 12px; background: #1d1d1f; color: #fff; font: 600 14px/1.35 var(--nd-fonte, system-ui); transition: opacity .2s, transform .2s; }
.ndam-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 600px) { .ndam-menu [role=menuitem] { min-height: 46px; } .ndam-bts button { flex: 1; } }

/* ---------- Perfil: selo "Verificado · NAONDE Premium" ao lado do nome, no alto à direita (compacto) ---------- */
.nxp-info h1 .nd-selo-g, .nd59 .nxp-info h1 .nd-selo-g {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: top;
  margin: 1px 0 0 10px; padding: 3px 10px 3px 5px; border-radius: 999px; animation: none;
  font-size: 0; line-height: 1; white-space: nowrap; position: relative; top: -1px;
}
.nxp-info h1 .nd-selo-g > .nd-selo-ic { width: 20px; height: 20px; flex: none; color: #0a84ff; }
.nd-selo-g[data-tipo="supremo"] > .nd-selo-ic { color: #5e5ce6; }
.nxp-info h1 .nd-selo-g > span { display: flex; flex-direction: column; gap: 1px; line-height: 1.05; }
.nxp-info h1 .nd-selo-g b { font-size: 12px; font-weight: 700; letter-spacing: 0; }
.nxp-info h1 .nd-selo-g small { font-size: 10px; font-weight: 600; }
.nxp-info h1 [data-nd-selo-eu]:empty { display: none; }
@media (max-width: 420px) { .nxp-info h1 .nd-selo-g { margin-left: 8px; padding-right: 8px; } .nxp-info h1 .nd-selo-g small { font-size: 9.5px; } }

/* ---------- Janela das Atividades: ícone ao lado do nome, os dois centralizados juntos ---------- */
#ndAppStage .nda-bar .nda-nome { display: flex; align-items: center; justify-content: center; gap: 7px; }
#ndAppStage .nda-bar .nda-nome > .nda-ic { position: static; left: auto; transform: none; flex: none; }
#ndAppStage .nda-bar .nda-nome-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Botão Atividades no computador: o ícone do GNOME (pílula #171717, cápsula branca, círculo cinza) ----------
   Sem brilho, sem sombra e sem texto; fora da pílula é transparente. O celular continua com o botão flutuante. */
.n30-bt-gnome { display: none; }
@media (min-width: 900px) {
  html:not(.nd-celular) body #activities-button:not(.nd-at),
  html:not(.nd-celular) body #activities-button.on:not(.nd-at),
  html:not(.nd-celular) body #activities-button[data-tema]:not(.nd-at),
  html.nd-escuro:not(.nd-celular) body #activities-button:not(.nd-at),
  html.nd-escuro:not(.nd-celular) body #activities-button.on:not(.nd-at) {
    top: 12px !important; width: 64px !important; height: 32px !important; min-width: 0 !important; padding: 0 !important; gap: 0 !important;
    background: transparent !important; border: 0 !important; border-radius: 16px !important; box-shadow: none !important; filter: none !important;
    transform: none !important; animation: none !important; overflow: visible;
  }
  html:not(.nd-celular) body #activities-button:not(.nd-at) .n30-bt-gnome { display: block; width: 64px; height: 32px; flex: none; }
  html:not(.nd-celular) body #activities-button:not(.nd-at) :is(.n30-bt-barra, .n30-bt-ponto) { display: none !important; }
  html:not(.nd-celular) body #activities-button:not(.nd-at) .g-pilula { transition: fill .12s ease; }
  html:not(.nd-celular) body #activities-button:not(.nd-at):hover .g-pilula,
  html:not(.nd-celular) body #activities-button.on:not(.nd-at) .g-pilula { fill: #262626; }
  html:not(.nd-celular) body #activities-button:not(.nd-at):active .g-pilula { fill: #0f0f0f; }
  html:not(.nd-celular) body #activities-button:not(.nd-at):focus-visible { outline: 2px solid #0a84ff !important; outline-offset: 2px !important; }
  html:not(.nd-celular) body #activities-button:not(.nd-at).nd-roda-pronto { box-shadow: none !important; }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) { html:not(.nd-celular) body #activities-button:not(.nd-at) .g-pilula { transition: none; } }
