/* NAONDE — Atividades: arrastar, reordenar e guardar apps nas abas (nd-ativ-abas-apps.js) */
/* botão flutuante enquanto arrasta: redondo, sem o nome, com sombra, por cima de tudo */
.ndaa-fant { position: fixed; left: 0; top: 0; z-index: 2147483000; pointer-events: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; will-change: transform; contain: layout paint;
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, .45), 0 4px 10px rgba(0, 0, 0, .18); }
.ndaa-fant .n30-app-ic { width: 64px !important; height: 64px !important; min-width: 0 !important; margin: 0 !important; border-radius: 50% !important;
  display: grid !important; place-items: center; overflow: hidden; font-size: 30px; box-shadow: none !important; }
.ndaa-fant .n30-app-ic i { font-size: 30px !important; }
.ndaa-fant .n30-app-ic img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 50%; }
/* no lugar do app fica o espaço vazio */
#activities-overlay .n30-app.ndaa-origem { visibility: hidden; }
html.ndaa-arrastando, html.ndaa-arrastando * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; -webkit-touch-callout: none !important; }
html.ndaa-arrastando #activities-overlay { touch-action: none; }
#activities-overlay .n30-app { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* cartão da aba como alvo: realce azul e rótulo */
#activities-overlay :is(.n30-j[data-aba], .n30-j-novo).ndaa-alvo { position: relative; outline: 3px solid #0a84ff; outline-offset: 3px; border-radius: 14px;
  box-shadow: 0 0 0 8px rgba(10, 132, 255, .16) !important; }
#activities-overlay :is(.n30-j[data-aba], .n30-j-novo).ndaa-alvo::after { content: attr(data-ndaa-txt); position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  z-index: 5; pointer-events: none; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis;
  background: #0a84ff; color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(10, 132, 255, .6); }
/* mini-ícones dos apps guardados: linha própria embaixo do nome, sem cobrir nada */
#activities-overlay .n30-j.ndaa-tem { height: auto !important; }
.ndaa-pilha { position: static; display: flex; align-items: center; gap: 6px; margin: 4px 2px 0; min-height: 26px; pointer-events: none; }
.ndaa-mini { display: inline-flex; align-items: center; pointer-events: auto; }
.ndaa-m { position: relative; width: 22px; height: 22px; margin-left: -5px; flex: 0 0 auto; }
.ndaa-m:first-child { margin-left: 0; }
.ndaa-m .n30-app-ic { width: 22px !important; height: 22px !important; min-width: 0 !important; border-radius: 50% !important; display: grid !important; place-items: center;
  box-shadow: 0 0 0 2px var(--at-bg, #fff1ad); margin: 0 !important; overflow: hidden; }
.ndaa-m .n30-app-ic i { font-size: 12px !important; }
.ndaa-m .n30-app-ic img { width: 100% !important; height: 100% !important; object-fit: cover; }
.ndaa-x { position: absolute; top: -7px; right: -7px; width: 16px; height: 16px; border-radius: 50%; border: 0; padding: 0; background: #1d1d1f; color: #fff; font-size: 12px; line-height: 16px; cursor: pointer; display: none; }
.ndaa-m:hover .ndaa-x, .ndaa-m:focus-within .ndaa-x { display: block; }
.ndaa-mais { margin-left: 4px; font-size: 11.5px; font-weight: 800; opacity: .7; }
.ndaa-pilha small { font-size: 11.5px; font-weight: 700; opacity: .8; white-space: nowrap; }
.ndaa-novo { background: #0a84ff; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 999px; margin-left: 2px; }
/* dentro da aba: os apps guardados como botões flutuantes redondos, arrastáveis */
#ndaaBolhas { position: fixed; inset: 0; z-index: 1250; pointer-events: none; }
#ndaaBolhas[hidden] { display: none !important; }
.ndaa-b { position: absolute; left: 0; top: 0; width: 52px; height: 52px; border: 0; padding: 0; border-radius: 50%; background: transparent; cursor: pointer;
  pointer-events: auto; touch-action: none; display: grid; place-items: center; will-change: transform; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .18); -webkit-touch-callout: none; user-select: none; }
.ndaa-b .n30-app-ic { width: 52px !important; height: 52px !important; min-width: 0 !important; margin: 0 !important; border-radius: 50% !important; overflow: hidden;
  display: grid !important; place-items: center; font-size: 24px; box-shadow: none !important; }
.ndaa-b .n30-app-ic i { font-size: 24px !important; }
.ndaa-b .n30-app-ic img { width: 100% !important; height: 100% !important; object-fit: cover; }
.ndaa-b.on { box-shadow: 0 0 0 3px #0a84ff, 0 10px 24px -10px rgba(0, 0, 0, .5); }
.ndaa-b.movendo { box-shadow: 0 18px 36px -12px rgba(0, 0, 0, .5); }
.ndaa-b:focus-visible { outline: 2px solid #0a84ff; outline-offset: 3px; }
.ndaa-menu { position: fixed; z-index: 2147482500; padding: 4px; border-radius: 14px; background: #1d1d1f; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); }
.ndaa-menu button { display: block; border: 0; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.ndaa-menu button:active, .ndaa-menu button:hover { background: rgba(255, 255, 255, .12); }

/* celular: a grade rola até o fim (espaço para a barra de baixo) e os avisos ficam embaixo, acima da barra */
@media (max-width: 760px) {
  #activities-overlay .n30-apps { padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important; }
  #activities-overlay .n30-aviso { position: fixed !important; top: auto !important; bottom: calc(92px + env(safe-area-inset-bottom)) !important; left: 50% !important;
    z-index: 2147482000; max-width: calc(100vw - 32px); text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .ndaa-fant, .ndaa-b { transition: none !important; } }
