.toolbar {
  height: var(--toolbar-height);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

/* A small two-tone block mark — copper face, teal side — standing in for
   a logo. It's built from CSS, not an image asset, and reads as a single
   isometric block: a nod to what the whole app manipulates, without
   pulling in unrelated Minecraft branding. */
.toolbar__mark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 3px;
  background: linear-gradient(
    155deg,
    var(--accent-copper-bright) 0%,
    var(--accent-copper) 55%,
    var(--accent-teal) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -2px 3px rgba(0, 0, 0, 0.25);
}

.toolbar__menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  touch-action: manipulation;
}
.toolbar__menu-btn:hover {
  background: var(--bg-surface-2);
}

.toolbar__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.toolbar__project {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 14px;
  border-left: 1px solid var(--border-subtle);
}

.toolbar__spacer {
  flex: 1;
}

/* Phones: sidebar becomes an off-canvas drawer (Sidebar.css), so the
   hamburger button takes its place; the toolbar wraps instead of
   clipping buttons when the title + project name + actions can't all
   fit on one row. */
@media (max-width: 768px) {
  .toolbar {
    height: auto;
    min-height: var(--toolbar-height);
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 8px 10px;
  }

  .toolbar__menu-btn {
    display: block;
  }

  .toolbar__project {
    display: none;
  }
}
