.editor { position: relative; }
.editor-barra {
  display: none;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0;
  padding: 0.4rem;
  background: var(--azul-claro);
  border: 1px solid #c5d0e0;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}
.editor-ativo .editor-barra { display: flex; }
.editor-rotulo {
  color: var(--azul);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.campo .editor .editor-tamanho {
  display: inline-flex;
  width: auto;
  margin: 0;
  font-weight: 500;
}
.campo .editor .editor-barra select { width: auto; min-width: 7.2rem; }
.editor-barra button,
.editor-barra select {
  min-height: 2.2rem;
  background: white;
  border: 1px solid #c5d0e0;
  border-radius: 2px;
  padding: 0.2rem 0.55rem;
  color: var(--ink);
}
.editor-barra button { cursor: pointer; font-weight: 500; }
.editor-barra button[data-acao="negrito"] { font-weight: 700; }
.editor-barra button[data-acao="italico"] { font-style: italic; }
.editor-barra button[data-acao="sublinhado"] { text-decoration: underline; }
.editor-barra button[aria-pressed="true"] {
  background: var(--azul);
  color: white;
  border-color: var(--azul);
}
.editor-area {
  display: none;
  width: 100%;
  min-height: 8rem;
  background: white;
  border: 1px solid #c5d0e0;
  border-radius: 2px;
  padding: 0.55rem 0.7rem;
  line-height: 1.55;
}
.editor-ativo .editor-area {
  display: block;
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.editor-area:focus { outline: 2px solid var(--azul); outline-offset: 2px; }
.editor-ativo .editor-fonte {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  min-height: 0;
  white-space: nowrap;
}

.texto .tam-1, .editor-area .tam-1 { font-size: 0.8em; }
.texto .tam-2, .editor-area .tam-2 { font-size: 0.92em; }
.texto .tam-3, .editor-area .tam-3 { font-size: 1.08em; }
.texto .tam-4, .editor-area .tam-4 { font-size: 1.32em; line-height: 1.35; }
.texto .tam-5, .editor-area .tam-5 { font-size: 1.62em; line-height: 1.28; }
.texto .recuo, .editor-area .recuo { margin-left: 1.75rem; }
.texto ul, .texto ol, .editor-area ul, .editor-area ol {
  margin: 0.2rem 0 0.8rem;
  padding-left: 1.4rem;
}
.texto ul, .editor-area ul { list-style: disc; }
.texto ol, .editor-area ol { list-style: decimal; }
.texto li, .editor-area li { margin: 0.15rem 0; }
.texto p, .editor-area p { margin: 0 0 0.8rem; }
.texto p:last-child, .editor-area p:last-child { margin-bottom: 0; }
.texto .obs {
  margin-top: 1.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.texto strong, .editor-area strong { font-weight: 700; }
.texto em, .editor-area em { font-style: italic; }
.texto u, .editor-area u { text-decoration: underline; }
