.envd-editor {
  border: 1px solid #0002;
  border-radius: 12px;
  background: #ffffffca;
  color: #111;
}

.envd-editor:focus-within {
  border-color: #888;
  box-shadow: 0 0 0 3px #0000000f;
}

.envd-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid #0002;
}

.envd-editor-toolbar button,
.envd-editor-toolbar select {
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid #0003;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 0.875rem;
}

.envd-editor-toolbar button[aria-pressed='true'] { background: #e8e0d5; }
.envd-editor-toolbar :disabled { opacity: 0.55; }
.envd-editor-toolbar :focus-visible { outline: 2px solid #1e40af; outline-offset: 2px; }
.envd-editor .ql-container { font: inherit; }
.envd-editor .ql-editor { min-height: 220px; padding: 14px 18px; overflow-wrap: anywhere; }
.envd-editor .ql-editor img { display: inline-block; max-width: 100%; max-height: 480px; }
.envd-editor-notice { padding: 4px 14px 12px; color: #991b1b; font-size: 0.875rem; }
.envd-inline-photo { margin: 0 0 2rem; }
.envd-inline-photo img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.envd-rich-body strong { font-weight: 700; }

.envd-admin-panel { padding: clamp(1rem, 5vw, 2.5rem); }
.envd-manage-posts { margin-bottom: 2rem; }
.envd-manage-posts h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
.envd-admin-form-anchor { scroll-margin-top: 6rem; }
.envd-post-list { list-style: none; padding: 0; margin: 0; }
.envd-post-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  border-top: 1px solid #0002;
  padding-block: 0.7rem;
}
.envd-post-list li > a { overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 0.2em; }
.envd-post-list li > div { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.envd-admin-action { border: 1px solid #0003; border-radius: 6px; padding: 0.35rem 0.7rem; background: #fff; color: #111; }
.envd-admin-action:hover { background: #f5f3ef; }
.envd-admin-action:disabled { opacity: 0.55; }
.envd-admin-delete, .envd-admin-error { color: #991b1b; }
.envd-admin-success { color: #166534; }

.envd-slideshow { margin: 0 0 2rem; }
.envd-slideshow img { display: block; max-width: 100%; max-height: 75vh; width: auto; height: auto; margin-inline: auto; object-fit: contain; }
.envd-slideshow-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: .75rem; }
.envd-slideshow-controls button, .envd-slide-editor button, .envd-emoji-picker button { border: 1px solid #0003; border-radius: 6px; background: #fff; color: #111; padding: .4rem .7rem; }
.envd-slideshow-controls button:focus-visible, .envd-slide-editor button:focus-visible, .envd-emoji-picker button:focus-visible, .envd-editor-slideshow:focus-visible { outline: 2px solid #1e40af; outline-offset: 2px; }
.envd-slideshow-controls button { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; padding: 0; background: #30232bf0; backdrop-filter: blur(12px); color: #fff7e6; font-size: 1.6rem; line-height: 1; }
.envd-slideshow-controls button:hover { background: #513543; }
.envd-editor-slideshow { display: flex; align-items: center; gap: 1rem; padding: .5rem; border: 1px solid #888; cursor: pointer; }
.envd-editor .ql-editor .envd-editor-slideshow img { max-height: 120px; max-width: 160px; }
.envd-slide-editor, .envd-emoji-picker { padding: .75rem; border-bottom: 1px solid #0002; }
.envd-slide-editor ol { display: flex; flex-wrap: wrap; gap: .75rem; padding: 0; list-style: none; }
.envd-slide-editor li { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; max-width: 100%; }
.envd-slide-editor img { width: 70px; height: 70px; object-fit: cover; }
.envd-slide-editor > button { margin: .25rem .5rem 0 0; }
.envd-emoji-picker button { min-width: 40px; min-height: 40px; margin: 2px; font-size: 1.25rem; }
.envd-emoji-picker p { margin: .5rem 0 0; font-size: .875rem; }
