.admin-editor-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  font-family: inherit;
}

.admin-editor-fab {
  border: 1px solid rgba(14, 73, 65, 0.28);
  border-radius: 999px;
  padding: 12px 16px;
  background: #ffe47a;
  color: #123d36;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(14, 73, 65, 0.22);
  cursor: pointer;
}

.admin-editor-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(980px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 96px));
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(14, 73, 65, 0.22);
  border-radius: 8px;
  background: rgba(248, 255, 249, 0.98);
  color: #123d36;
  box-shadow: 0 22px 72px rgba(14, 73, 65, 0.28);
}

.admin-editor-header,
.admin-editor-toolbar,
.admin-editor-actions,
.admin-editor-checks,
.admin-editor-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-editor-header {
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-editor-header strong {
  display: block;
  font-size: 1.05rem;
}

.admin-editor-header span {
  display: block;
  color: #58736b;
  font-size: 0.86rem;
}

.admin-editor-toolbar {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(14, 73, 65, 0.06);
}

.admin-editor-tabs {
  margin: 0 0 12px;
}

.admin-editor-tabs button.is-selected {
  background: #ffe47a;
  border-color: rgba(14, 73, 65, 0.34);
}

.admin-editor-help {
  margin: 0 0 10px;
  color: #58736b;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-editor-help code {
  font: inherit;
  font-weight: 900;
}

.admin-editor-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(320px, 1.4fr);
  gap: 14px;
}

.admin-editor-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 590px;
  overflow: auto;
}

.admin-editor-item {
  width: 100%;
  display: grid;
  gap: 4px;
  text-align: left;
  border: 1px solid rgba(14, 73, 65, 0.15);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: inherit;
  cursor: pointer;
}

.admin-editor-item span,
.admin-editor-item small,
.admin-editor-empty,
.admin-editor-notice {
  color: #58736b;
}

.admin-editor-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-editor-form label {
  display: grid;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-editor-form textarea,
.admin-editor-form input,
.admin-editor-form select,
.admin-editor-toolbar input,
.admin-editor-toolbar select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(14, 73, 65, 0.2);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: #123d36;
  font: inherit;
}

.admin-editor-form textarea {
  min-height: 88px;
  resize: vertical;
}

.admin-editor-form label:nth-child(4),
.admin-editor-form label:nth-child(5),
.admin-editor-form .admin-editor-wide,
.admin-editor-actions,
.admin-editor-checks {
  grid-column: 1 / -1;
}

.admin-editor-panel button {
  min-height: 40px;
  border: 1px solid rgba(14, 73, 65, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  background: #d9f8ed;
  color: #123d36;
  font-weight: 800;
  cursor: pointer;
}

.admin-editor-panel button.danger {
  background: #ffe3df;
  color: #7c1f16;
}

.admin-editor-notice {
  margin: 0 0 10px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .admin-editor-root {
    right: 10px;
    bottom: 10px;
  }

  .admin-editor-panel {
    right: -4px;
    width: calc(100vw - 20px);
  }

  .admin-editor-grid,
  .admin-editor-form {
    grid-template-columns: 1fr;
  }
}
