/* Navegação v4 (nav.js): a barra de abas, a tela Criar e a aba Conta.
   Carregada antes da pele; valores de tokens.css.

   Quatro abas — Criar, Vídeos, Grupos, Conta — embaixo no celular e numa
   coluna à esquerda no computador. Dentro de um modo (Cortes, Carrossel,
   Modelos, Copiar) o topo mostra voltar + o nome, e no celular a barra sai
   para a ação principal (Gerar) ficar sozinha embaixo. */

.nv-fora { display: none !important; }

.nv-barra svg, .nv-volta svg, .nv-cartao svg, .nv-lista svg, .nv-heroi-cta svg {
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex: none;
}

/* ---------------------------------------------------------------- topo */

.st-top { border-bottom: 0; height: 60px; }
.nv-volta {
  width: 40px; height: 40px; flex: none; padding: 0;
  display: grid; place-items: center;
  background: var(--e2); border: 0; border-radius: 50%;
  color: var(--ink); cursor: pointer;
}
.nv-volta[hidden], .st-marca[hidden], .nv-titulo[hidden] { display: none; }
.nv-volta:hover { background: var(--e3); }
.nv-volta svg { width: 20px; height: 20px; }
.nv-titulo {
  font: 600 15px/1.2 var(--font-ui); color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.nv-avatar {
  width: 36px; height: 36px; flex: none; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font: 700 12px/1 var(--font-ui); letter-spacing: .02em;
}
.nv-avatar:empty:not(.com-foto) { visibility: hidden; }
#studioRoot:not([data-tela="modo"]) .st-novo-btn { display: none; }

/* ------------------------------------------------- o que cada tela mostra */

#studioRoot:not([data-tela="modo"]) .st-main > section:not(.nv-inicio):not(.nv-pagina),
#studioRoot:not([data-tela="modo"]) .st-acao { display: none !important; }
.nv-inicio[hidden], .nv-pagina[hidden], .nv-texto[hidden], .nv-recentes[hidden],
.nv-lista li[hidden], .nv-selo[hidden] { display: none !important; }

/* ------------------------------------------------------------ barra de abas */

.nv-barra {
  position: fixed; z-index: 30;
  left: 14px; right: 14px; bottom: calc(14px + var(--seg-baixo));
  display: flex; align-items: center; gap: 2px; padding: 6px;
  background: var(--bg-alto); border-radius: var(--r-2xl);
}
.nv-barra button {
  flex: 1; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: none; border: 0; border-radius: var(--r-xl);
  color: var(--ink-dim); cursor: pointer;
  font: 600 13.5px/1 var(--font-ui);
  transition: background var(--t-base) var(--t-ease), color var(--t-base) var(--t-ease);
}
.nv-barra[hidden] { display: none !important; }
.nv-barra svg { width: 23px; height: 23px; }
.nv-barra button span { display: none; }
.nv-barra button:hover { color: var(--ink); }
.nv-barra button.on { flex: 1.9; background: var(--accent); color: var(--accent-ink); }
.nv-barra button.on span { display: inline; }

@media (max-width: 767px) {
  body[data-nv="modo"] .nv-barra { display: none; }
  #studioRoot:not([data-tela="modo"]) .st-main { padding-bottom: 110px; }
}

@media (min-width: 768px) {
  #studioRoot { padding-left: 88px; }
  .nv-barra {
    left: 0; top: 0; bottom: 0; right: auto; width: 88px;
    flex-direction: column; justify-content: flex-start; gap: 6px;
    padding: 76px 10px 16px;
    background: none; border-radius: 0; border-right: 1px solid var(--line-soft);
  }
  .nv-barra button {
    flex: none; width: 100%; height: 60px; flex-direction: column; gap: 5px;
    font-size: 11px; border-radius: var(--r-xl);
  }
  .nv-barra button span { display: inline; }
  .nv-barra button.on { flex: none; }
}

/* --------------------------------------------------------------- tela Criar */

.st-main > section.nv-inicio, .st-main > section.nv-pagina { max-width: 620px; }

.nv-ola {
  margin: 4px 0 18px;
  font: var(--t-display-l); letter-spacing: var(--t-display-l-tr); color: var(--ink);
}
.nv-ola em { font-style: normal; color: var(--accent-texto); }

.nv-heroi {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: flex-start; width: 100%; min-height: 200px;
  padding: 20px; overflow: hidden; text-align: left; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: var(--r-2xl);
  transition: background var(--t-fast) var(--t-ease);
}
.nv-heroi:hover { background: var(--accent-hover); }
/* afundar ao tocar e inclinar com o mouse: animacao.js (uma transição de
   transform aqui brigava com o GSAP e o movimento saía aos trancos) */
@media (prefers-reduced-motion: reduce) { .nv-heroi:active { transform: scale(.985); } }
.nv-heroi-txt b {
  display: block; font: 800 condensed 36px/.95 var(--font-display);
}
.nv-heroi-txt small {
  display: block; margin-top: 10px; font: 400 14px/1.3 var(--font-ui); color: #E4D8FF;
}
.nv-heroi-cta {
  position: absolute; left: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--acao); color: var(--acao-ink);
  font: 600 14px/1 var(--font-ui);
}
.nv-heroi-cta svg { width: 17px; height: 17px; stroke-width: 2.2; }

/* o leque de clipes: os três prontos mais novos, ou blocos de cor */
.nv-leque { position: absolute; right: 16px; top: 50%; width: 156px; height: 150px; margin-top: -75px; }
.nv-leque i {
  position: absolute; width: 70px; aspect-ratio: 9 / 16;
  border: 2.5px solid var(--accent); border-radius: var(--r-md);
  background: #2A1466 center / cover no-repeat;
}
.nv-leque i:nth-child(1) { left: 0; top: 18px; rotate: -10deg; background-color: #4A2FA8; }
.nv-leque i:nth-child(2) { right: 0; top: 22px; rotate: 9deg; background-color: #1F0F52; }
.nv-leque i:nth-child(3) { left: 41px; top: 6px; width: 76px; z-index: 1; background-color: #35208A; }

.nv-tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.nv-cartao {
  height: 104px; padding: 14px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  background: var(--bg-panel); color: var(--ink);
  border: 0; border-radius: var(--r-xl);
  transition: background var(--t-fast) var(--t-ease);
}
.nv-cartao:hover { background: var(--bg-alto); }
@media (prefers-reduced-motion: reduce) { .nv-cartao:active { transform: scale(.97); } }
.nv-cartao svg { width: 24px; height: 24px; color: var(--accent-texto); }
.nv-cartao b { font: 800 condensed 19px/1 var(--font-display); }

.nv-recentes { margin-top: 24px; }
.nv-recentes-cab {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; font: 400 13px/1 var(--font-ui); color: var(--ink-soft);
}
.nv-link {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--accent-texto); font: 500 13px/1 var(--font-ui);
}
.nv-fita { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.nv-fita::-webkit-scrollbar { display: none; }
.nv-fita button {
  flex: none; width: 64px; aspect-ratio: 9 / 16; padding: 0; cursor: pointer;
  border: 0; border-radius: var(--r-md);
  background: var(--bg-panel) center / cover no-repeat;
}

@media (min-width: 768px) {
  .nv-ola { font: var(--t-display-xl); letter-spacing: var(--t-display-xl-tr); margin-bottom: 24px; }
  .nv-heroi { min-height: 240px; padding: 28px; }
  .nv-heroi-txt b { font-size: 48px; }
  .nv-heroi-cta { left: 28px; bottom: 28px; }
  .nv-leque { right: 36px; scale: 1.25; }
  .nv-cartao { height: 120px; padding: 18px; }
  .nv-cartao b { font-size: 22px; }
  .nv-fita button { width: 78px; }
}

/* ----------------------------------------------------- Grupos e Conta */

.nv-h1 { margin: 4px 0 18px; font: var(--t-display-m); letter-spacing: var(--t-display-m-tr); color: var(--ink); }

.nv-embreve { padding: 24px; background: var(--bg-panel); border-radius: var(--r-2xl); }
.nv-embreve b { font: 800 condensed 24px/1.05 var(--font-display); color: var(--ink); }
.nv-embreve p { margin: 8px 0 0; font: var(--t-body); color: var(--ink-soft); }

.nv-perfil { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.nv-foto {
  width: 72px; height: 72px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font: 800 condensed 28px/1 var(--font-display);
}
.nv-nome { display: block; font: 600 18px/1.2 var(--font-ui); color: var(--ink); }
.nv-papel { display: block; margin-top: 3px; font: 400 13px/1.3 var(--font-ui); color: var(--ink-soft); }

.nv-lista { list-style: none; margin: 0; padding: 0; }
.nv-lista li { border-bottom: 1px solid var(--line); }
.nv-lista li:last-child { border-bottom: 0; }
.nv-lista li > button, .nv-lista li > a, .nv-lista li.nv-linha {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px;
  padding: 10px 4px; background: none; border: 0; cursor: pointer;
  color: var(--ink); font: 400 15px/1.3 var(--font-ui); text-align: left; text-decoration: none;
}
.nv-lista li.nv-linha { cursor: default; }
.nv-lista li > button:hover b, .nv-lista li > a:hover b { color: var(--accent-texto); }
.nv-lista svg { width: 22px; height: 22px; color: var(--ink-soft); }
.nv-lista svg.nv-seta { width: 18px; height: 18px; color: var(--ink-dim); }
.nv-lista li span:first-of-type { flex: 1; min-width: 0; }
.nv-lista b { display: block; font-weight: 500; }
.nv-lista small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-soft); }
.nv-valor { font-size: 12.5px; color: var(--ink-soft); }
.nv-espaco-barra { height: 4px; margin-top: 8px; border-radius: var(--r-pill); background: var(--e2); overflow: hidden; }
.nv-espaco-barra i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent-texto); }
.nv-selo {
  padding: 4px 10px; border: 1px solid var(--warn); border-radius: var(--r-pill);
  color: var(--warn); font: 500 12px/1 var(--font-ui); white-space: nowrap;
}
.nv-lista .nv-sair, .nv-lista .nv-sair svg { color: var(--err); }

/* ------------------------------------------- Cortes: texto por cima */

.nv-texto {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: var(--bg-panel); border-radius: var(--r-xl);
}
.nv-texto .seg { width: 240px; max-width: 62%; }

/* ---------------------------------------- Vídeos: o diálogo vira página */

dialog.modal.ac.nv-pag {
  position: fixed; inset: 0; z-index: 20;
  width: auto; height: auto; max-width: none; max-height: none;
  margin: 0; border: 0; border-radius: 0;
  background: var(--bg);
}
dialog.modal.ac.nv-pag #acFechar, dialog.modal.ac.nv-pag .st-folha-grip { display: none; }
@media (max-width: 767px) {
  dialog.modal.ac.nv-pag { padding-bottom: calc(76px + var(--seg-baixo)); }
}
@media (min-width: 768px) {
  dialog.modal.ac.nv-pag { left: 88px; }
}
dialog.modal.ac.nv-pag .ac-cab { border-bottom: 0; }
dialog.modal.ac.nv-pag .ac-cab h2 { font: var(--t-display-m); letter-spacing: var(--t-display-m-tr); }
dialog.modal.ac:not(.nv-pag) [data-idioma] { display: none; }
@media (min-width: 768px) {
  dialog.modal.ac.nv-pag .ac-cab, dialog.modal.ac.nv-pag .ac-corpo { padding-left: max(var(--s6), calc(50% - 540px)); padding-right: max(var(--s6), calc(50% - 540px)); }
}

/* --------------------------------------- folha Adicionar vídeo (adicionar.js) */

/* a barra de link continua à vista logo abaixo do Adicionar vídeo (no vazio
   e em "Seus vídeos"); a folha também tem a aba Link, para quem abrir por lá */

.tz { display: flex; flex-direction: column; gap: 14px; }
.tz-seg { width: 100%; }
.tz-dica { margin: 0; }
.tz-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tz-item {
  position: relative; aspect-ratio: 9 / 16; padding: 0; cursor: pointer;
  border: 0; border-radius: var(--r-md);
  background: var(--bg-alto) center / cover no-repeat;
  outline: 0 solid var(--acao); outline-offset: -3px;
  transition: outline-width var(--t-fast) var(--t-ease);
}
.tz-item.on { outline-width: 3px; }
.tz-marca {
  position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .8); background: rgba(0, 0, 0, .35);
}
.tz-item.on .tz-marca {
  border-color: var(--acao);
  background: var(--acao) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0A10' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tz-pe { position: sticky; bottom: calc(-1 * var(--s5)); margin: 4px calc(-1 * var(--s5)) calc(-1 * var(--s5));
         padding: 12px var(--s5) var(--s5); background: var(--bg-panel); }
.tz-ir { width: 100%; height: 48px; font-size: 15px; }
.tz-vazio { padding: 28px 8px; text-align: center; }
.tz-vazio b { font: 800 condensed 22px/1.1 var(--font-display); color: var(--ink); }
.tz-vazio p { margin: 8px 0 0; color: var(--ink-soft); font: var(--t-body); }
.tz-link { display: flex; flex-direction: column; gap: 10px; }
.tz-link-linha { display: flex; gap: 8px; }
.tz-link-linha .st-campo { flex: 1; min-width: 0; height: 44px; }
.tz-link .st-hf-dica { margin: 0; }
@media (min-width: 768px) { .tz-grade { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ------------------------------- Modelos: prévia ao vivo (modelo-previa.js) */

/* em Modelos, quem traz vídeo é a linha "Vídeos para cortar" */
.st-vazio.compacto { display: none !important; }

.mp-fontes { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.mp-fontes .st-hf-rot { flex: none; }
.mp-fontes .st-hf-dica { flex: 1; margin: 0; min-width: 0; }
.mp-fontes-lista { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mp-fontes-lista:empty { display: none; }
.mp-fonte-mini {
  flex: none; width: 34px; height: 46px; border-radius: var(--r-sm);
  background: var(--bg-alto) center / cover no-repeat;
}
.mp-fonte-mini.fora { opacity: .35; }
.mp-fontes-mais {
  flex: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border: 0; border-radius: 50%; background: var(--acao); color: var(--acao-ink);
  font: 600 22px/1 var(--font-ui);
}
.mp-fontes-mais:hover { background: var(--acao-hover); }

.mp-previa { display: flex; justify-content: center; }
.mp-tela {
  position: relative; height: clamp(240px, 40vh, 400px); aspect-ratio: 9 / 16;
  border-radius: var(--r-xl); overflow: hidden; background: var(--bg-sunken) center / cover no-repeat;
}
.mp-tela video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-tela video[hidden], .mp-pv-vazio[hidden] { display: none; }
.mp-tela video.espelhado { transform: scaleX(-1); }
.mp-pv-vazio {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 18px;
  text-align: center; color: var(--ink-dim); font: 400 13px/1.4 var(--font-ui);
}
.mp-pv-selo {
  position: absolute; left: 8px; top: 8px; padding: 4px 9px; border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .6); color: #fff; font: 500 11px/1.2 var(--font-ui);
}
.mp-pv-play {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff;
  transition: opacity var(--t-base) var(--t-ease), transform var(--t-fast) var(--t-ease);
}
.mp-pv-play svg { width: 24px; height: 24px; fill: currentColor; }
.mp-pv-play .i-pausa, .mp-pv-play.tocando .i-play { display: none; }
.mp-pv-play.tocando .i-pausa { display: block; }
.mp-pv-play.tocando { opacity: 0; }
.mp-tela:hover .mp-pv-play.tocando, .mp-pv-play.tocando:focus-visible { opacity: 1; }

.mp-barra { position: relative; }
.mp-cursor {
  position: absolute; top: -4px; bottom: -4px; left: 0; width: 3px; margin-left: -1.5px;
  border-radius: 2px; background: var(--ink); pointer-events: none;
}
.mp-cartao.tocando .mp-q { outline: 2px solid var(--acao); outline-offset: 2px; }

/* o topo nunca quebra em duas linhas: o nome encolhe com reticências */
/* o app instalado no iPhone desenha embaixo do relógio (barra de status
   translúcida): o topo reserva essa faixa. No navegador ela vale 0. */
.st-top { flex-wrap: nowrap !important; height: calc(60px + var(--seg-topo)) !important;
          padding-top: var(--seg-topo); padding-bottom: 0; }
.nv-titulo { flex: 1; }
.st-top-dir { flex: none; }

/* ------------------------------------------------------- foto de perfil */
.nv-avatar.com-foto, .nv-foto.com-foto { background: var(--bg-alto) center / cover no-repeat; }
.nv-foto-caixa { position: relative; flex: none; cursor: pointer; }
.nv-foto-cam {
  position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--bg-alto); border: 2px solid var(--bg); color: var(--ink);
}
.nv-foto-cam svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8;
                   stroke-linecap: round; stroke-linejoin: round; }
.nv-foto-tirar { display: block; margin-top: 4px; }
.nv-foto-tirar[hidden] { display: none; }

/* --------------------------------------------------------- Grupos (grupos.js) */

.gr-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.gr-topo .nv-h1 { margin: 4px 0 0; }
[id^="gr"][hidden] { display: none !important; }

.gr-av {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font: 700 12px/1 var(--font-ui); letter-spacing: .02em;
  background: var(--bg-alto) center / cover no-repeat;
}
.gr-pilha { display: inline-flex; align-items: center; flex: none; }
.gr-pilha .gr-av + .gr-av { margin-left: -9px; }
.gr-pilha .gr-av { border: 2px solid var(--bg); box-sizing: content-box; }

.gr-convite {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-bottom: 18px;
  background: var(--accent-wash); border: 1px solid var(--accent); border-radius: var(--r-xl);
}
.gr-convite p { margin: 0; font: 400 15px/1.4 var(--font-ui); color: var(--ink); }
.gr-convite-acoes { display: flex; gap: 8px; margin-top: 10px; }
.gr-convite-acoes .st-btn { height: 38px; }

.gr-lista-tit { margin: 0 0 8px; }
.gr-lista { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gr-linha {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; cursor: pointer;
  background: var(--bg-panel); border: 0; border-radius: var(--r-xl);
  color: var(--ink); text-align: left; font: 400 15px/1.3 var(--font-ui);
  transition: background var(--t-fast) var(--t-ease);
}
.gr-linha:hover { background: var(--bg-alto); }
.gr-linha .gr-pilha .gr-av { border-color: var(--bg-panel); }
.gr-linha-txt { flex: 1; min-width: 0; }
.gr-linha-txt b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-linha-txt small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-soft); }
.gr-novos {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--acao); color: var(--acao-ink);
  font: 700 12px/1 var(--font-ui);
}
.gr-tenho { display: block; margin: 6px auto 0; padding: 10px; }
.nv-embreve .st-btn { margin-top: 14px; }

.gr-volta { padding: 6px 0; font-size: 14px; }
.gr-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 22px; }
.gr-cab .st-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.gr-pessoas-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 4px 6px 4px 0; cursor: pointer;
  background: none; border: 0; color: var(--ink-soft);
}
.gr-quando { font: 400 12.5px/1.2 var(--font-ui); color: var(--ink-soft); }

.gr-timeline { display: flex; flex-direction: column; gap: 26px; }
.gr-bloco { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.gr-bloco-cab { display: flex; align-items: center; gap: 10px; width: 100%; }
.gr-bloco-cab b { font: 600 15px/1.2 var(--font-ui); color: var(--ink); }
.gr-salvar { margin-left: auto; height: 32px; padding: 0 12px; }
.gr-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.gr-video {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-panel) center / cover no-repeat;
}
.gr-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.gr-tocar {
  position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff;
}
.gr-tocar[hidden] { display: none; }
.gr-tocar svg { width: 18px; height: 18px; fill: currentColor; }
.gr-x {
  position: absolute; right: 5px; top: 5px; width: 26px; height: 26px; padding: 0; cursor: pointer; z-index: 1;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font: 400 17px/1 var(--font-ui);
}

.gr-pessoas { display: flex; flex-direction: column; gap: 10px; }
.gr-pessoa { display: flex; align-items: center; gap: 10px; }
.gr-pessoa b { flex: 1; min-width: 0; font: 500 15px/1.2 var(--font-ui); color: var(--ink); }
.gr-pessoas-pe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.st-perigo { color: var(--err); }

/* bolinha de novidade na aba Grupos */
.nv-barra button { position: relative; }
.nv-ponto {
  position: absolute; top: 8px; left: calc(50% + 8px); width: 9px; height: 9px;
  border-radius: 50%; background: var(--acao); border: 2px solid var(--bg-alto);
}
.nv-ponto[hidden] { display: none; }

/* Vídeos › Selecionar: o botão Ao grupo acompanha os outros da barra */
.ac-sel-grupo { height: 38px; padding: 0 16px; font-size: 13.5px; }
.ac-sel-grupo svg { fill: none; }
@media (max-width: 767px) { .ac-sel-grupo { flex: 1 1 40%; justify-content: center; height: 42px; } }

/* a página Vídeos não entra nem sai deslizando como folha */
dialog.modal.ac.nv-pag { transform: none !important; opacity: 1 !important; }

/* ------------------------------- sino e notificações (notificacoes.js) */

.nv-sino {
  position: relative; width: 40px; height: 40px; flex: none; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--e2); border: 0; border-radius: 50%; color: var(--ink);
}
.nv-sino:hover { background: var(--e3); }
.nv-sino svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
               stroke-linecap: round; stroke-linejoin: round; }
.nv-sino-n {
  position: absolute; right: -3px; top: -3px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; box-sizing: border-box;
  border-radius: var(--r-pill); background: var(--acao); color: var(--acao-ink);
  border: 2px solid var(--bg); font: 700 10.5px/1 var(--font-ui); font-style: normal;
}
.nv-sino-n[hidden] { display: none; }

.nt-lista { list-style: none; margin: 0; padding: 0; }
.nt-item { border-bottom: 1px solid var(--line); }
.nt-item:last-child { border-bottom: 0; }
.nt-item, .nt-ir { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.nt-item:has(.nt-ir) { padding: 0; }
.nt-ir { width: 100%; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink); }
.nt-ir:hover .nt-frase { color: var(--accent-texto); }
.nt-meio { flex: 1; min-width: 0; }
.nt-frase { margin: 0 0 3px; font: 400 14.5px/1.4 var(--font-ui); color: var(--ink-body); }
.nt-frase b { font-weight: 600; color: var(--ink); }
.nt-item.nova .gr-av { box-shadow: 0 0 0 2px var(--bg-panel), 0 0 0 4px var(--acao); }
.nt-estado { display: block; margin-top: 6px; font: 400 12.5px/1.2 var(--font-ui); color: var(--ink-dim); }
.nt .gr-convite-acoes .st-btn { height: 36px; }

/* vários convites, um cartão para cada */
.gr-convites { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.gr-convites .gr-convite { margin-bottom: 0; }
.gr-convite-txt { flex: 1; min-width: 0; }

/* folha Convidar para o grupo */
.gr-chamar { display: flex; flex-direction: column; gap: 12px; }
.gr-chamar-form { display: flex; flex-direction: column; gap: 10px; }
.gr-chamar .st-hf-dica { margin: 0; }
.gr-chamar-retorno { margin: 0; padding: 10px 12px; border-radius: var(--r-lg);
                     background: var(--accent-wash); color: var(--ink); font: 400 13.5px/1.4 var(--font-ui); }
.gr-chamar-retorno.erro { background: rgba(224, 102, 76, .16); }
.gr-chamar-retorno[hidden] { display: none; }
.gr-chamar-ou { display: flex; align-items: center; gap: 12px; color: var(--ink-dim);
                font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.gr-chamar-ou::before, .gr-chamar-ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gr-chamar-link { width: 100%; height: 46px; }

/* ------------------------------------------- iPhone, app instalado (instalar.js)
   --ios-falta fica em 0: o iOS 26 não desenha a sobra abaixo de uma janela
   curta, e o que descia para lá aparecia cortado (style.css corrige a
   janela; instalar.js tira a folga do indicador quando ela ainda vem curta). */
#studioRoot { bottom: calc(-1 * var(--ios-falta)); }
dialog.modal.ac.nv-pag { bottom: calc(-1 * var(--ios-falta)); }

@media (max-width: 767px) {
  /* barra de abas no lugar padrão do iOS: logo acima do indicador */
  .nv-barra { bottom: calc(max(10px, var(--seg-baixo) - 4px) - var(--ios-falta)); }
  .modal.st-folha, dialog.modal.ac:not(.nv-pag) { margin-bottom: calc(-1 * var(--ios-falta)); }
  /* Vídeos como página: o título abaixo do relógio, a lista acima da barra */
  dialog.modal.ac.nv-pag .ac-cab { padding-top: calc(20px + var(--seg-topo)); }
  /* a lista vai até a borda e passa por trás da barra de abas (como nos
     apps do iPhone); só a rolagem ganha folga no fim para o último vídeo
     não ficar escondido atrás da barra */
  dialog.modal.ac.nv-pag { padding-bottom: 0; }
  /* Selecionar: as ações ficam logo acima da barra de abas */
  dialog.modal.ac.nv-pag .ac-sel-barra {
    position: fixed; z-index: 21; left: 12px; right: 12px;
    bottom: calc(66px + max(10px, var(--seg-baixo) - 4px) - var(--ios-falta));
    padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-xl);
    background: var(--bg-alto);
  }
  dialog.modal.ac.nv-pag:has(.ac-sel-barra:not([hidden])) .ac-corpo {
    padding-bottom: calc(250px + max(10px, var(--seg-baixo) - 4px));
  }
  dialog.modal.ac.nv-pag .ac-corpo { padding-bottom: calc(96px + max(10px, var(--seg-baixo) - 4px)); }
}
