.ga-editor {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.ga-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 8px 8px 0 0;
}

.ga-editor-toolbar button,
.ga-editor-toolbar select,
.ga-editor-toolbar label {
  margin: 0;
}

.ga-editor-toolbar button {
  min-width: 32px;
  height: 32px;
  padding: 4px 8px;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.ga-editor-toolbar button:hover,
.ga-editor-toolbar button.is-active {
  background: #dbeafe;
  border-color: #3b82f6;
}

.ga-editor-toolbar .ga-editor-separator {
  width: 1px;
  height: 24px;
  background: #ccc;
  margin: 0 4px;
}

.ga-editor-surface {
  min-height: 200px;
  max-height: 600px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: #fff;
  line-height: 1.5;
  outline: none;
}

.ga-editor-surface:focus {
  box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.ga-editor-surface.is-empty::before {
  content: attr(data-placeholder);
  color: #888;
  pointer-events: none;
}

.ga-editor-surface img,
.ga-editor-surface video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px 0;
  border-radius: 4px;
}

.ga-editor-surface.is-dragover {
  background: #eff6ff;
  outline: 2px dashed #3b82f6;
}

.ga-editor-emoji-picker {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  margin-bottom: 8px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.ga-editor-emoji-picker.is-open {
  display: flex;
}

.ga-editor-emoji-picker span {
  cursor: pointer;
  font-size: 1.25rem;
  padding: 2px 4px;
  border-radius: 4px;
}

.ga-editor-emoji-picker span:hover {
  background: #e5e7eb;
}

.ga-editor-status {
  min-height: 1.25rem;
  margin-top: 6px;
  font-size: 0.875rem;
  color: #555;
}

.ga-editor-status.is-error {
  color: #b91c1c;
}

.ga-editor-compact .ga-editor-surface {
  min-height: 100px;
  max-height: 300px;
}

.ga-editor-compact .ga-editor-toolbar button {
  min-width: 28px;
  height: 28px;
  font-size: 0.85rem;
}

.ga-post-content img,
.ga-post-content video,
.ga-comment-content img,
.ga-comment-content video {
  max-width: 100%;
  height: auto;
  margin: 8px 0;
  border-radius: 4px;
}
