/* === Main Toolbar === */
#toolbar {
  height: var(--toolbar-height);
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 2px;
  overflow-x: auto;
  z-index: 90;
  scrollbar-width: thin;
}
#toolbar::-webkit-scrollbar { height: 4px; }
#toolbar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Wiring Toolbar (same styling as main toolbar) */
#wiring-toolbar {
  height: var(--toolbar-height);
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 2px;
  z-index: 90;
}

.tool-section {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  position: relative;
  padding-top: 14px;
}

.tool-section-label {
  position: absolute;
  top: 0;
  left: 4px;
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 42px;
  flex-shrink: 0;
}

.tool-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
}

.tool-btn span {
  font-size: 9px;
  white-space: nowrap;
}

.tool-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.tool-btn.active {
  background: var(--accent-dim);
  color: var(--accent-hover);
  border-color: var(--accent);
}

.tool-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  margin: 0 3px;
  flex-shrink: 0;
}
