/*
 * Chrome for the admin markdown editor (the split-pane page form), kept apart
 * from prose.css which styles *rendered content*. Colours use the Ekosystem
 * theme variables (`--eko-t-color-*`) so the editor tracks the active theme.
 */

/* Inline status banner shown directly under the editor toolbar — image-upload
 * progress, success and errors. Far more visible than the small top-right
 * status label, and dismissable. Hidden until the controller has something to
 * say. */
.editor-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1.4;
  border-bottom: 1px solid oklch(var(--eko-t-color-border));
}

.editor-banner[hidden] {
  display: none;
}

.editor-banner__message {
  flex: 1;
}

.editor-banner__dismiss {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: var(--eko-t-border-radius-sm);
  font-size: 16px;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
}

.editor-banner__dismiss:hover {
  opacity: 1;
  background: color-mix(in oklch, currentColor 14%, transparent);
}

/* Variants — a solid fill in the status colour with white text; the border
 * matches the background so the banner reads as one solid bar. */
.editor-banner--info {
  background: oklch(var(--eko-t-color-status-info));
  color: #fff;
  border-bottom-color: oklch(var(--eko-t-color-status-info));
}

.editor-banner--success {
  background: oklch(var(--eko-t-color-status-success));
  color: #fff;
  border-bottom-color: oklch(var(--eko-t-color-status-success));
}

.editor-banner--error {
  background: oklch(var(--eko-t-color-status-danger));
  color: #fff;
  border-bottom-color: oklch(var(--eko-t-color-status-danger));
}
