/* ── Editor Toolbar ───────────────────────────────────────────────────────── */
#editor-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1e1b4b;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.editor-toolbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.editor-brand {
  color: #e0e7ff;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.editor-brand .fa { color: #818cf8; }
.editor-brand strong { color: #fff; }

.editor-actions { display: flex; align-items: center; gap: .5rem; }
.editor-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  font-family: inherit;
}
.editor-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.editor-btn-primary {
  background: linear-gradient(135deg, #4f46e5, #3b82f6) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.save-status {
  font-size: .8rem;
  padding: .25rem .75rem;
  border-radius: 99px;
  display: none;
}
.save-status.saving  { display:inline; background:#fef3c7; color:#92400e; }
.save-status.saved   { display:inline; background:#d1fae5; color:#065f46; }
.save-status.error   { display:inline; background:#fee2e2; color:#991b1b; }

/* ── Editable elements ────────────────────────────────────────────────────── */
.edit-mode [contenteditable] {
  outline: 2px dashed transparent;
  border-radius: 4px;
  transition: outline-color .15s, background .15s;
  cursor: text;
  min-width: 20px;
  display: inline-block;
}
.edit-mode [contenteditable]:hover {
  outline-color: rgba(79,70,229,.4);
  background: rgba(79,70,229,.04);
}
.edit-mode [contenteditable]:focus {
  outline: 2px solid #4f46e5;
  background: rgba(79,70,229,.06);
  border-radius: 4px;
}

/* Edit mode section hover highlight */
.edit-mode section:hover::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(79,70,229,.2);
  pointer-events: none;
  border-radius: 4px;
  z-index: 0;
}

/* Float save indicator per element */
.edit-mode [contenteditable].is-saving::after {
  content: '⏳';
  font-size: .75rem;
  margin-left: .25rem;
}
.edit-mode [contenteditable].is-saved::after {
  content: '✅';
  font-size: .75rem;
  margin-left: .25rem;
}
