/* Shared Editor Header (CodeEditorTab, MarkdownTab) */
.header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
  font-size: var(--font-md);
}

.filename {
  font-family: var(--font-ui);
  color: var(--fg-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}


.dirtyDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  background: none;
  border: 1px solid var(--border);
  color: var(--fg-secondary);
  font-size: var(--font-sm);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn:hover {
  background: var(--bg-highlight);
  color: var(--fg-primary);
}

.btn svg {
  flex-shrink: 0;
}

.breadcrumb {
  flex: 1;
  color: var(--fg-muted);
  font-size: var(--font-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.breadcrumbSep {
  margin: 0 2px;
  opacity: 0.5;
}
