.tag-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tag-suggestions-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-text-color);
}

.tag-suggestions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-suggestion-button {
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--chip-text);
  border: 1px solid var(--card-border);
}

body[data-theme="dark"] .tag-suggestion-button {
  background: rgba(46, 41, 60, 0.9);
}

.tag-editor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-editor-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  max-width: 180px;
  flex-wrap: wrap;
}

.tag-label {
  font-size: 12px;
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.tag-remove-button {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 12px;
  padding: 0 4px;
  line-height: 1;
}

.tag-remove-button:hover,
.tag-remove-button:focus {
  color: var(--text-color);
}
