/* =====================================================================
   edicao.css · modo edição local (v3)
   Só existe com o modo ligado (tecla E, em file:// ou localhost). Nada
   daqui aparece para quem lê o manual publicado.
===================================================================== */
.ed[hidden] { display: none !important; }
.ed__barra {
  position: fixed; left: 50%; bottom: 18px; z-index: 210;
  transform: translateX(-50%);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 18px;
  background: var(--inverso-bg); color: var(--inverso-tx);
  border-radius: var(--r-lg);
  box-shadow: var(--sombra);
  font-size: 12.5px;
}
.ed__txt b { font-weight: 500; }
.ed__txt span { opacity: .6; }
.ed__acoes, .ed__rascunho { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ed__rascunho { flex: 1 0 100%; padding: 4px 0 2px; opacity: .85; }
.ed button {
  height: 30px; padding-inline: 13px;
  border: 1px solid currentColor; border-radius: var(--r-pill);
  font-size: 12px; color: inherit;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ed button:hover { background: var(--inverso-tx); color: var(--inverso-bg); }
.ed button:first-child { background: var(--inverso-tx); color: var(--inverso-bg); }

/* o que se edita, só com o modo ligado */
body.editando [data-ed] { outline: 1px solid var(--linha-2); outline-offset: 2px; border-radius: 2px; cursor: text; }
body.editando [data-ed]:hover { outline-color: var(--tinta-3); }
body.editando [data-ed]:focus { outline: 2px solid var(--tinta); }
body.editando .toast { bottom: 84px; }
@media (max-width: 560px) { .ed__barra { left: 16px; right: 16px; transform: none; max-width: none; } }
