/* assets/css/noticias.css — 📰 Notícias (tema CLARO sempre). Usado em home.php e na página de compartilhamento. */
.news, .nw-page, .nw-modal {
  --nw-bg: #f9f8f6; --nw-card: #ffffff; --nw-line: #e4e2dd; --nw-ink: #1d1d1b; --nw-mut: #74726d; --nw-acc: #1a8cff; --nw-acc-soft: #eaf3ff;
  --nw-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.06); color-scheme: light;
}
.main.news-on > .thread, .main.news-on > .hero, .main.news-on > .composer, .main.news-on > .foot-note, .main.news-on > .topbar .private { display: none !important; }
.news[hidden] { display: none !important; }
.news { flex: 1; min-height: 0; overflow-y: auto; background: var(--nw-bg); color: var(--nw-ink); padding: 8px 20px 40px; }
.nw-in { max-width: 1180px; margin: 0 auto; }
.nw-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 16px; }
.nw-head h1 { font-size: 26px; margin: 0; letter-spacing: -.3px; }
.nw-head .grow { flex: 1; }
.nw-upd { color: var(--nw-mut); font-size: 13px; }
.nw-btn { border: 1px solid var(--nw-line); background: var(--nw-card); color: var(--nw-ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.nw-btn:hover { border-color: var(--nw-acc); color: var(--nw-acc); }
.nw-btn.primary { background: var(--nw-acc); border-color: var(--nw-acc); color: #fff; }
.nw-btn.primary:hover { filter: brightness(1.06); color: #fff; }
.nw-btn.danger { color: #c0362e; }
.nw-btn:disabled { opacity: .55; cursor: default; }
.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.nw-card { display: flex; flex-direction: column; background: var(--nw-card); border: 1px solid var(--nw-line); border-radius: 18px; overflow: hidden; cursor: pointer;
  text-align: left; padding: 0; color: inherit; font: inherit; box-shadow: var(--nw-shadow); transition: transform .15s, box-shadow .15s; position: relative; }
.nw-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 12px 28px rgba(0,0,0,.1); }
.nw-card:focus-visible { outline: 2px solid var(--nw-acc); outline-offset: 2px; }
.nw-card.mine { border-color: #bcd9ff; }
.nw-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #eef3fb, #f6efe6); display: block; overflow: hidden; position: relative; }
.nw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nw-thumb .nw-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: #b9c4d6; }
.nw-badge { position: absolute; top: 10px; left: 10px; background: var(--nw-acc); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; z-index: 1; }
.nw-badge.draft { background: #8d8b86; left: auto; right: 10px; top: auto; bottom: 10px; }
.nw-body-c { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nw-t { font-size: 17px; line-height: 1.3; font-weight: 650; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-s { font-size: 14px; color: var(--nw-mut); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--nw-line); padding: 10px 16px; font-size: 13px; color: var(--nw-mut); background: #fcfbf9; }
.nw-foot b { color: var(--nw-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.nw-foot .grow { flex: 1; }
.nw-fav { width: 20px; height: 20px; border-radius: 5px; flex: none; object-fit: contain; background: #fff; }
.nw-fav-y { display: inline-grid; place-items: center; background: var(--nw-acc); color: #fff; font-weight: 700; font-size: 12px; }
.nw-edit { position: absolute; top: 8px; right: 8px; z-index: 2; border: 0; background: rgba(255,255,255,.95); border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.nw-empty { text-align: center; color: var(--nw-mut); padding: 60px 10px; }
.nw-skel { height: 290px; border-radius: 18px; background: linear-gradient(90deg, #efede9 25%, #f7f5f1 50%, #efede9 75%); background-size: 200% 100%; animation: nwsk 1.2s infinite; }
@keyframes nwsk { to { background-position: -200% 0; } }

/* painel da notícia (dentro do site e na página de compartilhamento) */
.nw-panel-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; max-width: 1120px; margin: 0 auto; align-items: start; }
.nw-panel { background: var(--nw-card); border: 1px solid var(--nw-line); border-radius: 22px; padding: 30px 34px 34px; box-shadow: var(--nw-shadow); color: var(--nw-ink); min-width: 0; }
.nw-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--nw-mut); margin-bottom: 12px; }
.nw-meta b { color: var(--nw-ink); }
.nw-tag { background: var(--nw-acc-soft); color: #0d6fd6; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.nw-h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.5px; margin: 0 0 14px; }
.nw-lead { font-size: 19px; line-height: 1.5; color: #4a4843; margin: 0 0 18px; }
.nw-fig { margin: 0 0 18px; border-radius: 16px; overflow: hidden; background: #f0eee9; }
.nw-fig img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.nw-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 22px; padding: 12px 0; border-top: 1px solid var(--nw-line); border-bottom: 1px solid var(--nw-line); font-size: 14px; color: var(--nw-mut); }
.nw-sh { border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 600; color: #fff !important; cursor: pointer; text-decoration: none !important; }
.nw-sh.fb { background: #1877f2; } .nw-sh.wa { background: #1fa855; } .nw-sh.cp { background: #5f5d58; }
.nw-sh:hover { filter: brightness(1.08); }
.nw-body { font-size: 18px; line-height: 1.75; color: #2a2926; }
.nw-body p { margin: 0 0 1.1em; }
.nw-body h3 { font-size: 22px; margin: 1.5em 0 .5em; letter-spacing: -.2px; }
.nw-body ul { padding-left: 1.3em; margin: 0 0 1.1em; } .nw-body li { margin: .3em 0; }
.nw-body > p:first-child::first-letter { font-size: 1.15em; }
.nw-note { color: var(--nw-mut); font-size: 15px; }
.nw-go { display: inline-flex; align-items: center; gap: 8px; margin: 6px 8px 0 0; padding: 11px 18px; border-radius: 12px; background: var(--nw-acc-soft); color: #0d6fd6 !important; font-weight: 600; text-decoration: none !important; }
.nw-go.big { background: var(--nw-acc); color: #fff !important; padding: 14px 22px; font-size: 16px; }
.nw-go:hover { filter: brightness(.97); }
.nw-side { position: sticky; top: 14px; background: var(--nw-card); border: 1px solid var(--nw-line); border-radius: 22px; padding: 18px; box-shadow: var(--nw-shadow); }
.nw-side h4 { margin: 0 0 10px; font-size: 16px; color: var(--nw-ink); }
.nw-rec { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--nw-line); color: var(--nw-ink) !important; text-decoration: none !important; }
.nw-rec:first-of-type { border-top: 0; }
.nw-rec:hover .nw-rec-t { color: var(--nw-acc); }
.nw-rec-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.nw-rec-t { font-weight: 600; font-size: 15px; line-height: 1.3; }
.nw-rec-s { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--nw-mut); }
.nw-rec-s .nw-fav { width: 16px; height: 16px; }
.nw-more { display: block; margin-top: 8px; font-weight: 600; font-size: 14px; }
.nw-back-bar { max-width: 1120px; margin: 0 auto 14px; }

/* página de compartilhamento */
body.nw-page { margin: 0; background: var(--nw-bg); color: var(--nw-ink); font: 15px/1.55 ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, Arial, sans-serif; }
.nw-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-bottom: 1px solid var(--nw-line); background: #f3f2ef; }
.nw-brand { font-weight: 700; font-size: 18px; color: var(--nw-ink); text-decoration: none; }
.nw-back { font-size: 14px; color: var(--nw-acc); text-decoration: none; font-weight: 600; }
.nw-page-main { padding: 26px 18px 50px; }

/* editor do admin */
.nw-modal { position: fixed; inset: 0; z-index: 90; background: rgba(30,28,24,.42); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 12px; }
.nw-modal[hidden] { display: none !important; }
.nw-dlg { background: var(--nw-card); color: var(--nw-ink); border-radius: 22px; width: min(760px, 100%); padding: 24px 26px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.nw-dlg h2 { margin: 0 0 14px; font-size: 22px; }
.nw-dlg label.f { display: block; font-size: 13px; font-weight: 600; color: #4a4843; margin: 12px 0 5px; }
.nw-dlg input[type=text], .nw-dlg input[type=url], .nw-dlg input[type=password], .nw-dlg textarea, .nw-dlg select {
  width: 100%; border: 1px solid #d9d6cf; background: #fff; color: var(--nw-ink); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 15px; box-sizing: border-box; }
.nw-dlg textarea { min-height: 220px; line-height: 1.6; resize: vertical; }
.nw-dlg textarea.sm { min-height: 70px; }
.nw-dlg input:focus, .nw-dlg textarea:focus, .nw-dlg select:focus { outline: 2px solid var(--nw-acc); outline-offset: 0; border-color: transparent; }
.nw-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.nw-row > * { min-width: 0; } .nw-row .l { flex: 0 0 34%; } .nw-row .u { flex: 1; }
.nw-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.nw-actions .grow { flex: 1; }
.nw-hint { font-size: 12.5px; color: var(--nw-mut); margin: 4px 0 0; }
.nw-ai { background: #f4f9ff; border: 1px solid #cfe4ff; border-radius: 16px; padding: 12px 14px 14px; margin-top: 14px; }
.nw-ai b { font-size: 14px; }
.nw-imgprev { margin-top: 8px; max-height: 180px; border-radius: 12px; display: block; }
.nw-chk { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 12px; }
.nw-feed { display: grid; grid-template-columns: auto 1fr 2fr auto; gap: 8px; align-items: center; margin-bottom: 6px; }
.nw-feed .st { grid-column: 2 / 4; font-size: 12px; color: var(--nw-mut); margin-top: -4px; }
.nw-feed .st.bad { color: #c0362e; }
.nw-msg { font-size: 14px; margin-top: 10px; color: var(--nw-mut); min-height: 1.2em; } .nw-msg.err { color: #c0362e; }

/* painel aberto dentro do site */
.nw-view[hidden] { display: none !important; }
@media (max-width: 900px) {
  .nw-panel-wrap { grid-template-columns: 1fr; }
  .nw-side { position: static; }
  .nw-panel { padding: 22px 18px 24px; border-radius: 18px; }
  .news { padding: 6px 12px 30px; }
  .nw-feed { grid-template-columns: auto 1fr auto; } .nw-feed .u2 { grid-column: 1 / -1; }
  .nw-row .l { flex-basis: 40%; }
}
.nw-more { color: var(--nw-acc) !important; text-decoration: none !important; }
.nw-panel a:not(.nw-sh):not(.nw-go) { color: var(--nw-acc); }
.nw-thumb img { position: relative; z-index: 1; }

/* análise da Yhweo, botões de perguntar e lateral */
.nw-sh.ask { background: #6b4de6; }
.nw-ai-box { margin: 6px 0 20px; display: flex; flex-direction: column; gap: 14px; }
.nw-ai-blk { background: #faf9f7; border: 1px solid var(--nw-line); border-radius: 16px; padding: 16px 18px; }
.nw-ai-blk h3 { margin: 0 0 8px; font-size: 16px; color: var(--nw-ink); }
.nw-ai-blk p { margin: 0; font-size: 16.5px; line-height: 1.7; color: #2a2926; }
.nw-ai-blk ul { margin: 0; padding-left: 1.2em; font-size: 16px; line-height: 1.65; color: #2a2926; } .nw-ai-blk li { margin: .3em 0; }
.nw-ai-sum { background: var(--nw-acc-soft); border-color: #cfe4ff; }
.nw-ai-com { background: #f6f2ff; border-color: #ddd2fb; }
.nw-ai-com small { display: block; margin-top: 10px; color: var(--nw-mut); font-size: 12.5px; }
.nw-ai-load { display: flex; gap: 12px; align-items: center; background: var(--nw-acc-soft); border: 1px solid #cfe4ff; border-radius: 16px; padding: 14px 16px; }
.nw-spin { width: 22px; height: 22px; border: 3px solid #bcd9ff; border-top-color: var(--nw-acc); border-radius: 50%; animation: nwspin .8s linear infinite; flex: none; }
@keyframes nwspin { to { transform: rotate(360deg); } }
.nw-skel-line { height: 14px; border-radius: 8px; background: linear-gradient(90deg, #efede9 25%, #f7f5f1 50%, #efede9 75%); background-size: 200% 100%; animation: nwsk 1.2s infinite; }
.nw-skel-line.s { width: 60%; }
.nw-side { display: flex; flex-direction: column; gap: 14px; background: none; border: 0; box-shadow: none; padding: 0; }
.nw-side-blk { background: var(--nw-card); border: 1px solid var(--nw-line); border-radius: 22px; padding: 18px; box-shadow: var(--nw-shadow); }
.nw-side-blk h4 { margin: 0 0 10px; font-size: 16px; }
.nw-side-p { margin: 0 0 10px; font-size: 13.5px; color: var(--nw-mut); }
.nw-chips { display: flex; flex-direction: column; gap: 8px; }
.nw-chip { text-align: left; border: 1px solid #ddd2fb; background: #f6f2ff; color: #4b2fb8; border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 14px; line-height: 1.35; cursor: pointer; }
.nw-chip:hover { background: #ece4ff; }
.nw-srcbox { display: flex; gap: 10px; align-items: center; font-size: 15px; } .nw-srcbox small { color: var(--nw-mut); }
.nw-srcbox .nw-fav { width: 30px; height: 30px; }
.nw-fig img { aspect-ratio: 16 / 9; max-height: none; width: 100%; object-fit: cover; image-rendering: auto; }
/* compartilhar com imagem (alinhado; no celular vira uma folha que sobe de baixo) */
body.nw-lock { overflow: hidden; }
.nw-sh.more { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.ns-dlg { width: min(960px, 100%); padding: 22px 24px 24px; }
.ns-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.ns-head h2 { margin: 0; font-size: 22px; }
.ns-x { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--nw-line); background: #fff; color: var(--nw-ink); font-size: 16px; line-height: 1; cursor: pointer; }
.ns-x:hover { border-color: var(--nw-acc); color: var(--nw-acc); }
.ns-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.ns-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.ns-tab { border: 1px solid var(--nw-line); background: #fff; border-radius: 12px; padding: 8px 6px; font: inherit; font-size: 13px; line-height: 1.2; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; color: var(--nw-ink); min-height: 48px; }
.ns-tab small { color: var(--nw-mut); font-size: 11px; }
.ns-tab.on { border-color: var(--nw-acc); background: var(--nw-acc-soft); color: #0d6fd6; font-weight: 600; }
.ns-frame { position: relative; background: #efede9; border-radius: 16px; overflow: hidden; border: 1px solid var(--nw-line); margin: 0 auto; }
.ns-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ns-frame.f-story { aspect-ratio: 9 / 16; max-width: 100%; } .ns-frame.f-square { aspect-ratio: 1 / 1; } .ns-frame.f-wide { aspect-ratio: 1200 / 630; }
.ns-frame.loading img { opacity: 0; }
.ns-load { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 10px; color: var(--nw-mut); font-size: 14px; }
.ns-frame.loading .ns-load { display: flex; }
.ns-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ns-side .nw-hint { margin: 0; line-height: 1.45; }
.ns-big { width: 100%; padding: 14px 16px; font-size: 15.5px; border-radius: 14px; text-align: center; }
.ns-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ns-l { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; border-radius: 12px; color: #fff !important; font-weight: 600; font-size: 14px; text-decoration: none !important; }
.ns-l:hover { filter: brightness(1.08); }
.ns-l.wa { background: #1fa855; } .ns-l.fb { background: #1877f2; } .ns-l.x { background: #111; } .ns-l.tg { background: #229ed9; } .ns-l.in { background: #0a66c2; } .ns-l.ml { background: #5f5d58; }
.ns-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ns-row .nw-btn { min-height: 44px; border-radius: 12px; padding: 8px 6px; font-size: 13.5px; line-height: 1.2; text-align: center; }
.ns-msg { min-height: 0; margin: 0; }
.ns-msg:empty { display: none; }
/* painel da notícia: botões de compartilhar em grade alinhada */
.nw-share { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; align-items: center; gap: 8px; }
.nw-share > span { grid-column: 1 / -1; }
.nw-sh { text-align: center; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.nw-sh.ask, .nw-sh.more { grid-column: span 2; }
@media (max-width: 760px) {
  .nw-modal { align-items: flex-end; padding: 0; background: rgba(30,28,24,.5); }
  .ns-dlg, .nw-modal .nw-dlg { width: 100%; max-height: 94vh; max-height: 94dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; border-radius: 22px 22px 0 0; padding: 0 16px calc(18px + env(safe-area-inset-bottom)); }
  .ns-head { position: sticky; top: 0; z-index: 3; background: var(--nw-card); margin: 0 -16px 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--nw-line); }
  .ns-head h2 { font-size: 19px; }
  .ns-grid { grid-template-columns: 1fr; gap: 14px; }
  .ns-frame.f-story { width: min(100%, calc(34vh * 9 / 16)); }
  .ns-frame.f-square { width: min(100%, 34vh); }
  .ns-frame.f-wide { width: 100%; }
  .ns-links { grid-template-columns: repeat(3, 1fr); }
  .ns-row { grid-template-columns: 1fr 1fr; } .ns-row .nw-btn:last-child { grid-column: 1 / -1; }
  .nw-share { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .nw-sh.ask, .nw-sh.more, .nw-sh.cp { grid-column: 1 / -1; }
  .nw-sh { padding: 10px 8px; }
}
@media (max-width: 380px) { .ns-links { grid-template-columns: repeat(2, 1fr); } .ns-tab small { display: none; } }
/* celulares e telas pequenas: botões de compartilhar menores e mais discretos */
@media (max-width: 760px) {
  .nw-share { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; margin: 2px 0 16px; font-size: 13px; }
  .nw-share > span { flex: 0 0 100%; font-size: 12.5px; }
  .nw-sh, .nw-sh.ask, .nw-sh.more, .nw-sh.cp { flex: 0 0 auto; grid-column: auto; min-height: 32px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; border-radius: 999px; border: 1px solid transparent; }
  .nw-sh.fb { background: #eaf1fe; color: #1559c7 !important; border-color: #d3e2fc; }
  .nw-sh.wa { background: #e8f6ee; color: #14803f !important; border-color: #cfeadb; }
  .nw-sh.more { background: #f6efff; color: #7a3fc0 !important; border-color: #e5d6f7; }
  .nw-sh.cp { background: #f1f0ed; color: #4a4843 !important; border-color: #e2e0db; }
  .nw-sh.ask { background: #f1edff; color: #4b2fb8 !important; border-color: #ddd2fb; }
  .nw-go { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
  .nw-go.big { padding: 11px 16px; font-size: 14.5px; }
  /* janela de compartilhar */
  .ns-dlg { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .ns-head { padding: 10px 16px 8px; margin-bottom: 10px; } .ns-head h2 { font-size: 17px; }
  .ns-x { width: 32px; height: 32px; font-size: 14px; }
  .ns-grid { gap: 10px; }
  .ns-tabs { gap: 5px; margin-bottom: 8px; }
  .ns-tab { min-height: 36px; padding: 5px 4px; font-size: 12px; border-radius: 10px; }
  .ns-tab small { font-size: 10px; }
  .ns-frame.f-story { width: min(100%, calc(26vh * 9 / 16)); }
  .ns-frame.f-square { width: min(100%, 26vh); }
  .ns-frame { border-radius: 12px; }
  .ns-side { gap: 8px; }
  .ns-big { min-height: 40px; padding: 9px 12px; font-size: 14px; border-radius: 12px; }
  .ns-side .nw-hint { font-size: 11.5px; line-height: 1.4; }
  .ns-links { gap: 6px; }
  .ns-l { min-height: 34px; padding: 5px 6px; font-size: 12.5px; font-weight: 600; border-radius: 10px; border: 1px solid transparent; }
  .ns-l.wa { background: #e8f6ee; color: #14803f !important; border-color: #cfeadb; }
  .ns-l.fb { background: #eaf1fe; color: #1559c7 !important; border-color: #d3e2fc; }
  .ns-l.x { background: #efefed; color: #111 !important; border-color: #deddd9; }
  .ns-l.tg { background: #e6f4fb; color: #137aa8 !important; border-color: #cbe6f4; }
  .ns-l.in { background: #e7f0fa; color: #0a58a8 !important; border-color: #cfdff1; }
  .ns-l.ml { background: #f1f0ed; color: #4a4843 !important; border-color: #e2e0db; }
  .ns-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ns-row .nw-btn, .ns-row .nw-btn:last-child { grid-column: auto; min-height: 34px; padding: 5px 4px; font-size: 11.5px; border-radius: 10px; }
}
@media (max-width: 380px) { .ns-row .nw-btn { font-size: 11px; } .ns-l { font-size: 12px; } }

/* 🙈 ocultar / 🗑 excluir (admin) */
.nw-tools { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; max-width: 75%; }
.nw-tools .nw-edit { position: static; }
.nw-edit.danger { color: #c0362e; }
.nw-badge.hid { background: #b26a00; left: 10px; top: auto; bottom: 10px; }
.nw-card.is-hidden .nw-thumb, .nw-card.is-hidden .nw-body-c { opacity: .5; }

/* categorias no topo do grid */
.nw-cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 0 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.nw-cat { flex: 0 0 auto; border: 1px solid var(--nw-line); background: var(--nw-card); color: var(--nw-ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.nw-cat i { font-style: normal; font-size: 12px; opacity: .6; margin-left: 2px; }
.nw-cat:hover { border-color: var(--nw-acc); color: var(--nw-acc); }
.nw-cat.on { background: var(--nw-acc); border-color: var(--nw-acc); color: #fff; font-weight: 600; }
.nw-cat.on i { opacity: .85; }

.nw-ai-top { margin: 0 0 14px; border-color: var(--nw-acc); }

/* 💬 notícia escolhida para o título do Bate-papo (só o admin vê o selo) */
.nw-badge.chat { background: #5b3fc4; color: #fff; top: 42px; }

/* 💬 painel do admin: notícias e categorias no título do Bate-papo */
.nwc-cats { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 6px; }
.nwc-cat { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--nw-line, #ddd); background: #fff; color: inherit; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.nwc-cat small { font-size: 11.5px; color: var(--nw-mut, #888); background: rgba(0,0,0,.05); border-radius: 999px; padding: 0 6px; }
.nwc-cat:hover { border-color: #b9a6f2; }
.nwc-cat.on { background: #efe9ff; border-color: #8f74ea; color: #4b2f8f; font-weight: 600; }
.nwc-cat.on small { background: rgba(91,63,196,.12); color: #4b2f8f; }
.nwc-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; margin: 4px 0; padding-right: 2px; }
.nwc-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--nw-line, #e6e6e6); border-radius: 11px; background: #fff; }
.nwc-row.gone { background: #fff6f5; border-color: #f2cfcb; }
.nwc-row > img, .nwc-nofav { flex: none; width: 18px; height: 18px; border-radius: 4px; object-fit: contain; background: #f1f1f1; }
.nwc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nwc-txt b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nwc-txt small { font-size: 12px; color: var(--nw-mut, #888); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nwc-gone { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 999px; background: #fde3e0; color: #b23a2e; font-weight: 700; font-size: 11px; }
.nwc-row .nw-btn { flex: none; padding: 5px 9px; }

/* 👍👎 votos no rodapé do card (ao lado do favicon e do nome do portal) */
.nw-foot > b { flex: 0 1 auto; min-width: 0; max-width: 42%; }
.nw-votes { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; flex: none; }
.nw-vote { min-height: 24px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--nw-line); background: #fff; color: var(--nw-mut); border-radius: 999px; padding: 3px 9px 3px 7px; font: inherit; font-size: 12.5px; line-height: 1; cursor: pointer; transition: background .12s, color .12s, border-color .12s, transform .12s; }
.nw-vote .ic { width: 15px; height: 15px; display: inline-grid; }
.nw-vote svg { width: 15px; height: 15px; fill: currentColor; }
.nw-vote.down svg { transform: rotate(180deg); }
.nw-vote b { font-weight: 600; max-width: none; overflow: visible; text-overflow: clip; color: inherit; font-variant-numeric: tabular-nums; }
.nw-vote:hover { background: #f3f6fb; color: var(--nw-ink); }
.nw-vote:active { transform: scale(.94); }
.nw-vote:focus-visible { outline: 2px solid var(--nw-acc); outline-offset: 2px; }
.nw-vote.up.on { background: #e8f6ec; border-color: #9fd8b1; color: #1d7a3a; }
.nw-vote.down.on { background: #fdecec; border-color: #f1b3b3; color: #b3261e; }
@media (max-width: 360px) { .nw-foot > b { max-width: 30%; } .nw-foot { gap: 6px; padding-inline: 12px; } }

/* 📷 carrossel de fotos (notícias do admin com 2+ fotos): no card passa sozinho; dentro da notícia tem setas e bolinhas */
.nw-car { position: absolute; inset: 0; display: block; outline: none; }
.nw-fig .nw-car { position: relative; inset: auto; aspect-ratio: 16 / 9; }
.nw-car-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.nw-car-track::-webkit-scrollbar { display: none; }
.nw-car-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; scroll-snap-stop: always; display: block; user-select: none; }
.nw-car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 22px; line-height: 1; padding: 0 0 3px; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; display: grid; place-items: center; }
.nw-car-btn.prev { left: 8px; } .nw-car-btn.next { right: 8px; }
.nw-car-btn:hover { background: rgba(0,0,0,.7); }
.nw-car:hover .nw-car-btn, .nw-car:focus-within .nw-car-btn, .nw-fig .nw-car-btn { opacity: 1; }
@media (hover: none) { .nw-car-btn { opacity: .85; } }
.nw-car-dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 3; display: flex; justify-content: center; gap: 5px; pointer-events: none; flex-wrap: wrap; padding: 0 40px; }
.nw-car-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 2px rgba(0,0,0,.5); transition: background .15s, transform .15s; pointer-events: auto; cursor: pointer; }
.nw-car-dots i.on { background: #fff; transform: scale(1.25); }
.nw-car-n { position: absolute; top: 10px; right: 10px; z-index: 3; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
/* editor: lista de fotos */
.nw-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.nw-ph1 { position: relative; width: 112px; border: 1px solid var(--nw-line); border-radius: 12px; overflow: hidden; background: #fff; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.nw-ph1 img { grid-column: 1 / -1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.nw-ph1 b { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 999px; }
.nw-ph1 button { border: 0; border-top: 1px solid var(--nw-line); background: #fafafa; padding: 6px 0; cursor: pointer; font-size: 12px; }
.nw-ph1 button:hover:not(:disabled) { background: var(--nw-acc-soft); }
.nw-ph1 button:disabled { opacity: .35; cursor: default; }
.nw-ph1 button.rm { color: #b3261e; }

/* 📤 compartilhar: botões grandes (Status do WhatsApp / Stories do Instagram) e moldura de celular na prévia */
.ns-main { display: grid; gap: 10px; }
.ns-go { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; border-radius: 16px; padding: 13px 16px; font: inherit; text-align: left; color: #fff; cursor: pointer; box-shadow: 0 6px 18px rgba(20,30,50,.14); transition: transform .12s, filter .12s; }
.ns-go:hover { filter: brightness(1.06); } .ns-go:active { transform: scale(.985); }
.ns-go:focus-visible { outline: 3px solid var(--nw-acc); outline-offset: 2px; }
.ns-go .ns-ic { flex: none; width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 23px; }
.ns-go b { display: block; font-size: 16.5px; line-height: 1.2; }
.ns-go small { display: block; margin-top: 2px; font-size: 12.5px; opacity: .92; line-height: 1.25; }
.ns-go.wa { background: linear-gradient(135deg, #25d366, #128c4a); }
.ns-go.ig { background: linear-gradient(135deg, #f58529 0%, #dd2a7b 48%, #8134af 78%, #515bd4 100%); }
.ns-go.more { background: #2b2a27; }
.ns-how { background: #f4f9ff; border: 1px solid #d6e8fb; border-radius: 12px; padding: 10px 12px; color: #33557a; }
.ns-frame.f-story { border: 6px solid #1d1d1b; border-radius: 30px; box-shadow: 0 10px 30px rgba(20,30,50,.22); background: #1d1d1b; }
.ns-frame.f-story img { border-radius: 22px; }
@media (max-width: 760px), (max-height: 520px) { .ns-go { padding: 10px 12px; gap: 11px; border-radius: 14px; } .ns-go .ns-ic { width: 38px; height: 38px; font-size: 20px; } .ns-go b { font-size: 15px; } .ns-go small { font-size: 11.5px; } .ns-frame.f-story { border-width: 5px; border-radius: 24px; } }

/* 🎯 temas do admin */
.nwc-tadd { display: flex; gap: 8px; margin: 4px 0 4px; }
.nwc-tadd input { flex: 1; min-width: 0; }
.nwc-tema { border: 1px solid var(--nw-line, #e6e6e6); border-radius: 11px; background: #fff; padding: 8px 10px; margin: 6px 0; }
.nwc-th { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.nwc-th b { font-size: 14px; }
.nwc-th small { flex: 1; min-width: 80px; color: var(--nw-mut, #888); font-size: 12px; }
.nwc-th .nw-btn { padding: 4px 9px; }
.nwc-ti { margin-top: 6px; max-height: 150px; overflow-y: auto; font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; }
.nwc-ti small { color: var(--nw-mut, #888); }
.nwc-ti em { color: #5b3fc4; font-style: normal; }
.nw-cat.tema { border-style: dashed; }

/* 🔎 buscar notícias (admin) */
.nb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 10px 0; max-height: 52vh; overflow-y: auto; padding: 2px; }
.nb-card { position: relative; border: 2px solid var(--nw-line, #e6e6e6); border-radius: 12px; background: #fff; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.nb-card:hover { border-color: #b9c6ff; } .nb-card.on { border-color: #2f6bff; box-shadow: 0 0 0 3px rgba(47,107,255,.18); }
.nb-ph { position: relative; width: 100%; height: 100px; background: #eef1f6; } .nb-noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; }
.nb-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; } .nb-ph.ok img { opacity: 1; } .nb-ph.ok .nb-noimg { display: none; }
.nb-t { padding: 8px 10px 4px; font-size: 13px; font-weight: 650; line-height: 1.3; } .nb-m { display: flex; justify-content: space-between; gap: 8px; padding: 0 10px 9px; font-size: 11.5px; color: var(--nw-mut, #888); }
.nb-ja { position: absolute; left: 6px; top: 6px; background: #e6f8f0; color: #0b7a55; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.nb-ck { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.9); border: 2px solid #c8d0e0; color: transparent; display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.nb-card.on .nb-ck { background: #2f6bff; border-color: #2f6bff; color: #fff; }

.nb-fix { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; font-size: 13px; cursor: pointer; }
