
.nd51-voltar, .nd51-expl { display: none !important; }
@media (max-width: 768px) {
  header.navbar { touch-action: manipulation; max-width: 100vw; box-sizing: border-box; }
  header.navbar .nav-right { min-width: 0; gap: 4px !important; }
  header.navbar #btnPerfil.perfil-pill { margin-right: 4px; }
}
@media (max-width: 430px) { header.navbar #logo img { width: 112px !important; height: auto !important; } header.navbar .nav-right { margin-left: 2px !important; } }
@media (max-width: 380px) { header.navbar #logo img { width: 92px !important; } header.navbar .nav-right .icon-btn { width: 32px !important; height: 32px !important; } header.navbar { gap: 4px !important; padding: 0 8px !important; } }
@media (max-width: 768px) {
  
  .n24-piano-cel, .n24-piano-card, .n24-piano-dir, #n25PianoDoca, .nb33-piano, #n24Piano, [data-n24hx="piano"], [data-mg="piano"], [data-k="piano"], [data-app="piano"] { display: none !important; }
  
  header.navbar .nav-center a.aba-videos .nd51-rot { font-size: 11px; text-align: center; white-space: nowrap; }
  
  #activities-overlay .n30-fundo { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #f5f5f7; }
  html.nd-escuro #activities-overlay .n30-fundo { background: #1c1c1e; }
  #activities-overlay .n30-janelas { max-height: 46vh; padding: 6px 16px 10px; }
  #activities-overlay .n30-jgrade.n30-leve { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; width: 100%; align-content: start; }
  #activities-overlay .n30-leve .n30-j { width: 100% !important; min-width: 0; transform: none !important; transition: none !important; content-visibility: auto; contain-intrinsic-size: auto 150px; }
  #activities-overlay .n30-leve .n30-j-tela { width: 100% !important; height: 108px !important; border-radius: 16px; box-shadow: 0 0 0 1px var(--at-ln) !important; transition: none !important; }
  #activities-overlay .n30-leve .n30-j.on .n30-j-tela { box-shadow: 0 0 0 2px var(--at-az) !important; }
  #activities-overlay .n30-leve .n30-j-tit > span:first-of-type, #activities-overlay .n30-leve .n30-j-est { display: none; }
  #activities-overlay .n30-leve .n30-j-tit { justify-content: flex-end; }
  #activities-overlay .n30-leve .n30-j-tit > i:first-child { display: none; }
  #activities-overlay .n30-busca { margin-left: 64px; } #activities-overlay .n30-busca kbd { display: none; }
  #activities-overlay .n30-leve .n30-j-menu { opacity: 1; }
  #activities-overlay .n30-leve .n30-j-novo { width: 100% !important; }
  #activities-overlay .n30-leve .n30-j-novo-tela { width: 100% !important; height: 108px !important; border-radius: 16px; }
  .n30-lv { position: absolute; inset: 0; display: grid; align-content: center; justify-items: start; gap: 4px; padding: 12px 14px; text-align: left; }
  .n30-lv-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--at-hv); color: var(--at-tx); font-size: 20px; }
  .n30-lv b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--at-tx); }
  .n30-lv small { font-size: 12px; color: var(--at-mu); }
  #activities-overlay .n30-app, #activities-overlay .n30-app-ic { transition: none !important; }
  #activities-overlay.organizando .n30-app { animation: none !important; }
  #n30JMenu, #ndFabMenu { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #fff; }
  html.nd-escuro #n30JMenu, html.nd-escuro #ndFabMenu { background: #2c2c2e; }
  
  .amf { grid-template-rows: auto minmax(0, 1fr) !important; align-content: start !important; max-width: 100vw; overflow-x: hidden; }
  .amf-lado { gap: 8px; padding: 8px 16px !important; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .amf-lado::-webkit-scrollbar { display: none; }
  .amf-lado .amf-item { flex: none !important; white-space: nowrap; scroll-snap-align: start; }
  .amf-conteudo { min-width: 0; padding: 12px 0 calc(16px + env(safe-area-inset-bottom)) !important; }
  .amf-conteudo .amf-sec { margin-left: 16px !important; margin-right: 16px !important; min-width: 0; }
  .amf-conteudo .amf-sec.amf-reais { padding: 16px !important; }
  .n24-busca-pessoas { width: 100% !important; max-width: 560px; margin: 12px auto !important; height: 44px; box-sizing: border-box; border-radius: 22px !important; background: #f5f5f7 !important; }
  .n24-busca-pessoas input { width: 100% !important; min-width: 0 !important; font-size: 16px; }
  html.nd-escuro .n24-busca-pessoas { background: #2c2c2e !important; }
  .n24-pess { min-width: 0; max-width: 100%; }
  .n24-pess > * { min-width: 0; max-width: 100%; box-sizing: border-box; content-visibility: auto; contain-intrinsic-size: auto 64px; }
  .amf-hr { margin-left: 16px !important; margin-right: 16px !important; }
  
  .hub.nd51-cel, .hub.nd51-cel:has(.hb-membros.fechado), .hub.nd51-cel.sem-membros, .hub.nd51-cel.hub-home-view { grid-template-columns: 64px minmax(0, 1fr) !important; max-width: 100vw; overflow: hidden; }
  .hub.nd51-cel .hb-trilho { width: 64px; padding-bottom: env(safe-area-inset-bottom); overflow-y: auto; }
  .hub.nd51-cel .hb-canais { position: static !important; left: auto !important; top: auto !important; bottom: auto !important; width: auto !important; min-width: 0; transform: none !important; box-shadow: none !important; transition: none !important; grid-column: 2; z-index: auto !important; }
  .hub.nd51-cel .hb-canais .hb-ch, .hub.nd51-cel .hb-canais .dm-nav { min-height: 44px; }
  .hub.nd51-cel .hb-main, .hub.nd51-cel .hb-membros { display: none !important; }
  .hub.nd51-cel #hbAbrirCanais, .hub.nd51-cel #hbFecharCanais { display: none !important; }
  .hub.nd51-cel .nd51-expl { display: block !important; }
  .hub.nd51-cel.nd51-conteudo { grid-template-columns: minmax(0, 1fr) !important; }
  .hub.nd51-cel.nd51-conteudo .hb-trilho, .hub.nd51-cel.nd51-conteudo .hb-canais { display: none !important; }
  .hub.nd51-cel.nd51-conteudo .hb-main { display: flex !important; grid-column: 1 !important; min-width: 0; margin: 0 !important; border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; animation: nd51Entra 140ms cubic-bezier(.22, 1, .36, 1); }
  .hub.nd51-cel .nd51-voltar { display: inline-grid !important; place-items: center; width: 40px; height: 40px; flex: none; margin-right: 4px; border: 0; border-radius: 12px; background: none; color: inherit; font-size: 22px; cursor: pointer; }
  .hub.nd51-cel .nd51-voltar:active { background: rgba(127, 127, 127, .16); }
  .hub.nd51-cel .hb-topo, .hub.nd51-cel .am-topo { min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap !important; }
  .hub.nd51-cel .am-topo::-webkit-scrollbar, .hub.nd51-cel .hb-topo::-webkit-scrollbar { display: none; }
  .hub.nd51-cel .am-abas { position: static !important; flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto; white-space: nowrap; gap: 6px; scrollbar-width: none; }
  .hub.nd51-cel .am-abas > * { flex: none; }
  .hub.nd51-cel .am-corpo { grid-template-columns: minmax(0, 1fr) !important; }
  .hub.nd51-cel .am-corpo > :not(.am-lista) { display: none !important; }
  .hub.nd51-cel.nd51-membros.nd51-conteudo .hb-membros { display: block !important; position: fixed !important; left: 0; right: 0; bottom: 0; top: auto !important; width: auto !important; min-height: 34vh; max-height: 70vh; overflow-y: auto; z-index: 1300; background: var(--oc-card, #fff) !important;
    border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); animation: nd51Sobe 160ms cubic-bezier(.22, 1, .36, 1); }
  #hbSvPop { max-width: calc(100vw - 32px); }
  
  .nd51-folha-fundo { position: fixed; inset: 0; z-index: 100070; display: grid; place-items: end stretch; background: rgba(0, 0, 0, .28); opacity: 0; transition: opacity 140ms ease; }
  .nd51-folha-fundo.on { opacity: 1; }
  .nd51-folha { padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; color: #1d1d1f; transform: translateY(12px); transition: transform 160ms cubic-bezier(.22, 1, .36, 1);
    font-family: var(--nd-fonte); }
  .nd51-folha-fundo.on .nd51-folha { transform: none; }
  .nd51-pega { display: block; width: 36px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: #d2d2d7; }
  .nd51-folha h2 { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
  .nd51-folha p { margin: 0 0 18px; font-size: 15px; line-height: 1.4; color: #6e6e73; }
  .nd51-bt { width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: #007aff; color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
  html.nd-escuro .nd51-folha { background: #1c1c1e; color: #f5f5f7; }
}
@keyframes nd51Entra { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes nd51Sobe { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hub.nd51-cel .hb-main, .hub.nd51-cel .hb-membros { animation: none !important; } .nd51-folha-fundo, .nd51-folha { transition: none; } }
@media (max-width: 340px) { header.navbar #logo img { width: 74px !important; } #activities-button { width: 46px !important; } header.navbar .nav-right .icon-btn { width: 30px !important; height: 30px !important; } }
