/* Local text editor controls */
#text-editor {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 10000;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100vw - 28px);
  padding: 8px;
  background: #eee9df;
  border: 1px solid #aaa393;
  color: #25251f;
  font: 12px/1.5 sans-serif;
  box-shadow: 0 2px 12px #0001;
}

#text-editor button {
  border: 1px solid #aaa393;
  background: #faf8f2;
  color: #25251f;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}

#text-editor [hidden] {
  display: none !important;
}

body.text-editing [data-text-id] {
  outline: 1px dashed #9c967d;
  outline-offset: 3px;
  cursor: text;
  min-height: 1em;
}

body.text-editing [data-text-id]:focus {
  outline: 2px solid #655f46;
}

#edit-status {
  flex-basis: 100%;
  font-size: 11px;
}

@media print {
  #text-editor {
    display: none;
  }
}
