/* Novera Push — controle secundário integrado às ações da obra */
.nvr-story-notify-row{flex:0 0 100%;width:100%;display:flex;align-items:center;margin-top:2px}
.nvr-story-notify{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:38px;padding:0 13px;border:1px solid color-mix(in srgb,var(--nv-line,#334155) 94%,transparent);
  border-radius:8px;background:color-mix(in srgb,var(--nv-panel-2,#132235) 92%,transparent);
  color:var(--nv-text,#e8edf5);font:inherit;font-size:11.75px;font-weight:750;line-height:1;
  cursor:pointer;box-shadow:none;transition:transform .16s ease,border-color .16s ease,background .16s ease,color .16s ease;
}
.nvr-story-notify:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--nv-accent,#2f7dff) 34%,var(--nv-line,#334155));background:color-mix(in srgb,var(--nv-panel-2,#132235) 88%,var(--nv-accent,#2f7dff) 12%);color:#fff}
.nvr-story-notify.is-active{border-color:color-mix(in srgb,var(--nv-accent,#2f7dff) 72%,var(--nv-line,#334155));background:color-mix(in srgb,var(--nv-accent,#2f7dff) 12%,var(--nv-panel-2,#132235));color:color-mix(in srgb,var(--nv-accent,#2f7dff) 72%,white 28%)}
.nvr-story-notify:focus-visible{outline:2px solid color-mix(in srgb,var(--nv-accent,#2f7dff) 62%,white 38%);outline-offset:2px}
.nvr-story-notify:disabled{opacity:.65;cursor:wait;transform:none}
.nvr-story-notify__icon{font-size:13px;line-height:1}
.nvr-push-toast{position:fixed;left:50%;bottom:24px;z-index:100000;transform:translate(-50%,18px);opacity:0;pointer-events:none;max-width:min(92vw,520px);padding:11px 15px;border:1px solid #2c405c;border-radius:10px;background:#0e1b2a;color:#fff;box-shadow:0 18px 50px rgba(0,0,0,.32);font-size:13px;font-weight:700;transition:.2s ease}
.nvr-push-toast.is-visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:620px){
  .nvr-story-notify-row{margin-top:1px;justify-content:center}
  .nvr-story-notify{width:100%;min-height:42px;padding:0 14px;font-size:11.75px}
  .nvr-push-toast{bottom:82px}
}


/* v0.3.42-test4: integração do botão de push à faixa principal no desktop */
@media(min-width:901px){
  body.single-fcn_story .novera-story .nv-story-primary-actions > .nvr-story-notify-row{
    flex:initial!important;
    width:100%!important;
    margin:0!important;
    justify-content:flex-start!important;
    align-items:center!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions .nvr-story-notify{
    width:auto!important;
    min-width:173px!important;
    min-height:44px!important;
    height:100%!important;
    padding:0 18px!important;
  }
}

/* v0.3.43: no mobile o push ocupa a terceira célula da mesma barra de ações. */
@media(max-width:620px){
  body.single-fcn_story .novera-story .nv-story-primary-actions > .nvr-story-notify-row{
    flex:initial!important;
    width:100%!important;
    margin:0!important;
    justify-content:stretch!important;
    align-items:stretch!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions .nvr-story-notify{
    width:100%!important;
    min-height:44px!important;
    height:100%!important;
  }
}


/* v0.3.59 — botão de notificação compacto como no layout 0.3.40.
   Mantém em uma nova linha, mas não estica pela largura inteira. */
body.single-fcn_story .novera-story .nv-story-primary-actions > .nvr-story-notify-row{
  flex:0 0 100%!important;
  width:100%!important;
  margin-top:2px!important;
  justify-content:flex-start!important;
  align-items:center!important;
}
body.single-fcn_story .novera-story .nv-story-primary-actions .nvr-story-notify{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:173px!important;
  max-width:100%!important;
  min-height:42px!important;
  padding:0 15px!important;
}
@media(max-width:620px){
  body.single-fcn_story .novera-story .nv-story-primary-actions > .nvr-story-notify-row{
    justify-content:flex-start!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions .nvr-story-notify{
    width:256px!important;
    min-width:0!important;
    max-width:100%!important;
  }
}


/* v0.3.60 — correção mobile: o botão de notificação sempre ocupa uma linha própria.
   Evita que ele comprima o CTA principal quando só existe "Começar a ler". */
@media(max-width:620px){
  body.single-fcn_story .novera-story .nv-story-primary-actions > .nvr-story-notify-row{
    grid-column:1 / -1!important;
    grid-row:auto!important;
    width:100%!important;
    max-width:100%!important;
    justify-content:flex-start!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions .nv-story-btn{
    white-space:nowrap!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions .nvr-story-notify{
    width:256px!important;
    max-width:100%!important;
  }
}

/* v0.3.61 — mobile: CTA principal em linha inteira; na releitura,
   Notificar + Do início dividem a segunda linha como no mockup aprovado. */
@media(max-width:620px){
  body.single-fcn_story .novera-story .nv-story-primary-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions > .nv-story-btn._primary{
    grid-column:1 / -1!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    order:1!important;
    white-space:nowrap!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions > .nvr-story-notify-row{
    grid-column:1!important;
    grid-row:2!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    order:2!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions > .nvr-story-notify-row .nvr-story-notify{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:42px!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions > .nv-story-btn:not(._primary){
    grid-column:2!important;
    grid-row:2!important;
    width:auto!important;
    min-width:94px!important;
    order:3!important;
    white-space:nowrap!important;
  }
  /* Obra ainda não iniciada: não existe "Do início"; o push ocupa a linha toda. */
  body.single-fcn_story .novera-story .nv-story-primary-actions:not(:has(> .nv-story-btn:not(._primary))) > .nvr-story-notify-row{
    grid-column:1 / -1!important;
  }
}


/* v0.3.62 — hierarquia de ações consistente em desktop e mobile.
   Continuar/Começar + Do início ficam sempre na primeira linha.
   O controle de notificações ocupa uma segunda linha sem deslocar Do início. */
body.single-fcn_story .novera-story .nv-story-primary-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:stretch!important;
  gap:8px!important;
}
body.single-fcn_story .novera-story .nv-story-primary-actions > .nv-story-btn._primary{
  flex:0 1 auto!important;
  min-width:0!important;
  white-space:nowrap!important;
  order:1!important;
}
body.single-fcn_story .novera-story .nv-story-primary-actions > .nv-story-btn:not(._primary){
  flex:0 0 auto!important;
  white-space:nowrap!important;
  order:2!important;
}
body.single-fcn_story .novera-story .nv-story-primary-actions > .nvr-story-notify-row{
  flex:0 0 100%!important;
  width:100%!important;
  margin:0!important;
  order:3!important;
  justify-content:flex-start!important;
}
body.single-fcn_story .novera-story .nv-story-primary-actions .nvr-story-notify{
  width:auto!important;
  min-width:176px!important;
  max-width:100%!important;
}

@media(min-width:621px){
  body.single-fcn_story .novera-story .nv-story-primary-actions > .nv-story-btn._primary{
    min-width:220px!important;
  }
}

@media(max-width:620px){
  body.single-fcn_story .novera-story .nv-story-primary-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions > .nv-story-btn._primary{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions > .nv-story-btn:not(._primary){
    grid-column:2!important;
    grid-row:1!important;
    width:auto!important;
    min-width:94px!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions > .nvr-story-notify-row{
    grid-column:1 / -1!important;
    grid-row:2!important;
    width:100%!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions > .nvr-story-notify-row .nvr-story-notify{
    width:256px!important;
    min-width:0!important;
    max-width:100%!important;
  }

  /* Se ainda não há Do início, o CTA principal usa toda a primeira linha. */
  body.single-fcn_story .novera-story .nv-story-primary-actions:not(:has(> .nv-story-btn:not(._primary))) > .nv-story-btn._primary{
    grid-column:1 / -1!important;
  }
}


/* v0.3.63 — layout definitivo das ações da página da obra.
   Regras:
   1) Continuar/Começar + "Do início" na primeira linha.
   2) Notificar capítulos sempre na linha de baixo.
   3) Sem "Do início", o CTA principal ocupa toda a linha no mobile.
   4) Não depende de :has(), para funcionar de forma consistente. */
body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  column-gap:10px!important;
  row-gap:10px!important;
  align-items:stretch!important;
}
body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify > .nv-story-btn._primary{
  grid-column:1!important;
  grid-row:1!important;
  width:auto!important;
  min-width:220px!important;
  max-width:100%!important;
  white-space:nowrap!important;
  order:initial!important;
}
body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify > .nv-story-btn:not(._primary){
  grid-column:2!important;
  grid-row:1!important;
  width:auto!important;
  min-width:96px!important;
  white-space:nowrap!important;
  order:initial!important;
}
body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify > .nvr-story-notify-row{
  grid-column:1 / -1!important;
  grid-row:2!important;
  width:100%!important;
  margin:0!important;
  justify-content:flex-start!important;
  order:initial!important;
}
body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify .nvr-story-notify{
  width:220px!important;
  min-width:0!important;
  max-width:100%!important;
}

/* Sem botão secundário, o principal usa a largura da área disponível. */
body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify:not(.has-secondary-action) > .nv-story-btn._primary{
  grid-column:1 / -1!important;
}

@media(max-width:620px){
  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify{
    grid-template-columns:minmax(0,1fr) auto!important;
    column-gap:8px!important;
    row-gap:8px!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify > .nv-story-btn._primary{
    width:100%!important;
    min-width:0!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify > .nv-story-btn:not(._primary){
    min-width:94px!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify > .nvr-story-notify-row .nvr-story-notify{
    width:256px!important;
    max-width:100%!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify:not(.has-secondary-action) > .nv-story-btn._primary{
    grid-column:1 / -1!important;
  }
}


/* v0.3.64 — layout conforme referência enviada:
   linha 1: CTA principal em largura total
   linha 2: Notificar (maior) + Do início (menor)
   sem "Do início": Notificar fica sozinho abaixo. */
body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:stretch!important;
}
body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify > .nv-story-btn._primary{
  grid-column:1 / -1!important;
  grid-row:1!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  white-space:nowrap!important;
}
body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify > .nvr-story-notify-row{
  grid-column:1!important;
  grid-row:2!important;
  width:100%!important;
  margin:0!important;
}
body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify > .nvr-story-notify-row .nvr-story-notify{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  white-space:nowrap!important;
}
body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify > .nv-story-btn:not(._primary){
  grid-column:2!important;
  grid-row:2!important;
  width:auto!important;
  min-width:96px!important;
  white-space:nowrap!important;
}

/* Quando não existe botão secundário, notificar não precisa ocupar toda a área.
   No mobile, segue a proporção visual da referência. */
body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify:not(.has-secondary-action) > .nvr-story-notify-row{
  grid-column:1 / -1!important;
  max-width:100%!important;
}

@media(min-width:621px){
  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify{
    max-width:570px!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify:not(.has-secondary-action) > .nvr-story-notify-row{
    width:220px!important;
  }
}

@media(max-width:620px){
  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify{
    grid-template-columns:minmax(0,1fr) auto!important;
    width:100%!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify > .nv-story-btn:not(._primary){
    min-width:84px!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }
  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify:not(.has-secondary-action) > .nvr-story-notify-row{
    width:72%!important;
  }
}


/* v0.3.65 — DESKTOP como referência enviada:
   Continuar lendo | Do início | Notificar capítulos, todos na mesma linha.
   Mobile mantém o layout da v0.3.64. */
@media(min-width:621px){
  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify{
    display:grid!important;
    grid-template-columns:minmax(180px, 1fr) auto auto!important;
    gap:8px!important;
    align-items:stretch!important;
    width:100%!important;
    max-width:610px!important;
  }

  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify > .nv-story-btn._primary{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    white-space:nowrap!important;
  }

  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify > .nv-story-btn:not(._primary){
    grid-column:2!important;
    grid-row:1!important;
    width:auto!important;
    min-width:76px!important;
    white-space:nowrap!important;
  }

  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify > .nvr-story-notify-row{
    grid-column:3!important;
    grid-row:1!important;
    width:auto!important;
    margin:0!important;
  }

  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify > .nvr-story-notify-row .nvr-story-notify{
    width:auto!important;
    min-width:120px!important;
    max-width:none!important;
    white-space:nowrap!important;
  }

  /* Se não houver "Do início", o principal + notificação ocupam duas colunas. */
  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify:not(.has-secondary-action){
    grid-template-columns:minmax(180px, 1fr) auto!important;
    max-width:500px!important;
  }

  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify:not(.has-secondary-action) > .nv-story-btn._primary{
    grid-column:1!important;
  }

  body.single-fcn_story .novera-story .nv-story-primary-actions.has-novera-notify:not(.has-secondary-action) > .nvr-story-notify-row{
    grid-column:2!important;
  }
}
